Learn modules for Bicep – Azure Resource Manager | Microsoft Learn
PowerShell 7.0.6 LTS, PowerShell 7.1.3, or higher is the recommended version of PowerShell for use with the Azure Az PowerShell module on all platforms.
update ps1
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force
Connect-AzAccount
Bicep with Powershell
Windows Installer
Set up Bicep development and deployment environments – Azure Resource Manager | Microsoft Learn
bicep --version
$PSVersionTable
Bicep documentation | Microsoft Learn
main.bicep
param location string = 'West Europe'
resource storageAccount 'Microsoft.Storage/storageAccounts@2022-05-01' = {
name: 'testbicepstaccount'
location: location
sku: {
name: 'Standard_LRS'
}
kind: 'StorageV2'
properties: {
accessTier: 'Hot'
}
}
deploy.ps1
Set-AzDefault -ResourceGroupName test-it4
New-AzResourceGroupDeployment -TemplateFile main.bicep