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

Bicep with Powershell

Windows Installer

Set up Bicep development and deployment environments – Azure Resource Manager | Microsoft Learn

bicep --version

Bicep documentation | Microsoft Learn


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'


Set-AzDefault -ResourceGroupName test-it4
New-AzResourceGroupDeployment -TemplateFile main.bicep