Skip to main content

Technical GuideTechnical Guides

Technical Guide: Deploying an Azure Landing Zone with Bicep

A step-by-step walkthrough for standing up a policy-governed landing zone using Bicep and Azure DevOps.

C7T Engineering 1 min read Intermediate

Before you begin

  • An Azure subscription with Owner rights
  • Azure CLI 2.60 or later
  • An Azure DevOps project

Step 1: Create the management group hierarchy

Management groups let you apply policy once and inherit it everywhere.

bash
az deployment tenant create \
  --location eastus2 \
  --template-file infra/mg.bicep

Step 2: Assign baseline policies

Start with required tags, allowed regions, HTTPS-only, and TLS 1.2 minimum.

bicep
resource tagPolicy 'Microsoft.Authorization/policyAssignments@2024-04-01' = {
  name: 'require-env-tag'
  properties: {
    policyDefinitionId: requireTagDefinitionId
    parameters: { tagName: { value: 'env' } }
  }
}

Step 3: Wire up the pipeline

Run what-if on every pull request and deploy on merge, with approvals on production.

Keep reading

Related posts

Stay ahead with the C7T newsletter

Monthly insights on cloud, cybersecurity, and modernization. Confirm by email, and unsubscribe any time.