This cheatsheet provides over 10 examples for working with ARM templates and Bicep files for resource creation, management, and troubleshooting using Azure CLI.
az deployment group validate –resource-group MyRG –template-file template.json
az deployment group create –resource-group MyRG –template-file template.json –parameters @params.json
az deployment group what-if –resource-group MyRG –template-file template.json
az group export –name MyRG
az bicep build –file main.bicep
az bicep build –file main.bicep –out-file temp.json
az deployment group create –resource-group MyRG –template-file main.bicep –parameters @params.json
az deployment group what-if –resource-group MyRG –template-file main.bicep
az deployment group list –resource-group MyRG
az deployment operation group list –resource-group MyRG –name