Programmatic Deployment - SAABOLImpactVenture/enterprise-azure-governance-template-specs-deployment-stacks GitHub Wiki


Programmatic Deployment

Prerequisites

  • Azure CLI & Bicep CLI installed

  • Service principal with Contributor rights

Deployment Steps

  1. Authenticate and select subscription:

    az login
    az account set --subscription <SUBSCRIPTION_ID>
    
  2. Deploy at subscription scope:

    az deployment sub create \
      --location <region> \
      --template-file bicep/main.bicep \
      --parameters @bicep/params.json
    
  3. Preview changes (what-if):

    az deployment sub what-if ...
    
  4. Automate via GitHub Actions:

    - uses: azure/CLI@v1
      with:
        inlineScript: |
          az deployment sub create \
            --template-file bicep/main.bicep \
            --parameters @bicep/params.json
    

⚠️ **GitHub.com Fallback** ⚠️