Downloading a new version of Python and putting it in my path mucked up some of the az features like "az bicep install" and "az install". When I figured that out, I removed the new python from my path and was able to install the Azure CLI and bicep. And then I added the python back into my path and everything seems to be working. I just need to remember to remove python from my path every time I want upgrade bicep.
How to create deployment group from command line
Siegfried Heintze
1,906
Reputation points
Shucks, I've tried to resolve this myself by reinstalling bicep and "azure cli" and rebooting and nothing seems to help.
I want to deploy my bicep file with azure cli
export name=WDFWPugetSoundCreelReportsFuncs
export rg=rg_GeneralPurposeCosmos
export loc=westus
az deployment group create --name $name --resource-group $rg --template-file deploy-WDFWPugetSoundCreelReportsFuncs-gddocumentdb-exists.bicep
I get this error:
ERROR: [WinError 193] %1 is not a valid Win32 application
When I deploy with powershell
New-AzResourceGroupDeployment -ResourceGroupName "rg_CrewTaskMgt" -TemplateFile deploy-WDFWPugetSoundCreelReportsFuncs-gddocumentdb-exists.bicep
I get this error:
New-AzResourceGroupDeployment:
Line |
9 | New-AzResourceGroupDeployment -ResourceGroupName "rg_CrewTaskMgt" -Te .
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot retrieve the dynamic parameters for the cmdlet. Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
OK, this is a new bicep file... But I get the same errors for old bicep files that used to work!
Here is winver