Skip to content

dcox79/Azure-IaC-LZ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Bicep IaC Landing Zones

This repository contains basic Azure Bicep IaC code for a tenant's Sandbox environment. It is not intended for production use, it deploys to a single subscription that is a dedicated sandbox.

This deployment does not need policies and management groups because they are already deployed using Azure's Cloud Adoption Framework's landing zone accelerator.

Modify parameters files

.\landing-zones\default-landing-zone<###>-product<#>.parameters.json

[Optional Step] Prep Subscription: Verify your in the correct Subscription and Delete all resources in the current subscription using Azure CLI

az group list --query "[].name" -o tsv | ForEach-Object { az group delete -n $_ -y }

copy subscription ID and Create ENV variable

az account show --query "[name,id]" -o tsv

$SUBSCRIPTIONID="<Subscription ID>"

Deploy the platform Deploys log analytics workspace, firewall, route table, and virtual network.

az deployment sub create --location centralus --parameters .\platform\platform.bicepparam

[Create Template Spec] Create reusable landing zone template

az ts create --name default-landing-zone --version "1.0"--location centralus --resource-group management --template-file .\landing-zones\default-landing-zone.bicep

Deploy the First landing zone

az stack sub create --location centralus --deny-settings-mode None --name landingZoneProduct1 --template-spec /subscriptions/$SUBSCRIPTIONID/resourceGroups/management/providers/Microsoft.Resources/templateSpecs/default-landing-zone/versions/1.0 --parameters .\landing-zones\default-landing-zone\101-product1.parameters.json --action-on-unmanage detachAll

Deploy the Second landing zone

az stack sub create --location centralus --deny-settings-mode None --name landingZoneProduct2 --template-spec /subscriptions/$SUBSCRIPTIONID/resourceGroups/management/providers/Microsoft.Resources/templateSpecs/default-landing-zone/versions/1.0 --parameters .\landing-zones\default-landing-zone\102-product2.parameters.json --action-on-unmanage deleteAll

Deploy the Third landing zone

az stack sub create --location centralus --deny-settings-mode None --name landingZoneProduct3 --template-spec /subscriptions/$SUBSCRIPTIONID/resourceGroups/management/providers/Microsoft.Resources/templateSpecs/default-landing-zone/versions/1.0 --parameters .\landing-zones\default-landing-zone\103-product3.parameters.json --action-on-unmanage detachAll

Connectivity

The Connectivity Landing Zone contains the virtual network, bastion host, and firewall.

Management

The Management Landing Zone contains the Log Analytics workspace and diagnostic settings.

About

Azure landing zones

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors