Passing the .bicep file to New-AzResourceGroupDeployment #1816
-
Hi Folks, I'm having trouble with this. Each time I try to pass the .bicep file instead of the .json file, I get this error: PS C:\NWM\DevOps\ARM\learn_bicep_1> New-AzResourceGroupDeployment -ResourceGroupName johntest-rg -TemplateFile ".\main.bicep"
If I compile the main.bicep file into main.json and pass that to the above command, everything works. What am I doing wrong? The tutorial makes it look like I pass the .bicep file where the .json would normally be expected. Thanks much John |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Just wanted to confirm - are you using You should be able to check with: Get-InstalledModule -Name Az |
Beta Was this translation helpful? Give feedback.
Just wanted to confirm - are you using
PowerShell Az module version 5.6.0+
as mentioned in https://github.com/Azure/bicep/blob/main/docs/tutorial/02-deploying-a-bicep-file.md#deploying-a-bicep-file?You should be able to check with: