Programmatic Deployment - SAABOLImpactVenture/enterprise-azure-governance-template-specs-deployment-stacks GitHub Wiki
-
Azure CLI & Bicep CLI installed
-
Service principal with Contributor rights
-
Authenticate and select subscription:
az login az account set --subscription <SUBSCRIPTION_ID>
-
Deploy at subscription scope:
az deployment sub create \ --location <region> \ --template-file bicep/main.bicep \ --parameters @bicep/params.json
-
Preview changes (what-if):
az deployment sub what-if ...
-
Automate via GitHub Actions:
- uses: azure/CLI@v1 with: inlineScript: | az deployment sub create \ --template-file bicep/main.bicep \ --parameters @bicep/params.json