In this project, we are focused on designing two Virtual Networks (VNETs) which are paired. The first represents the primary VNET and the other for DR purposes. We will learn about the concepts of how to write conditions and perform iterative loops to build subnets for example.
We have created a bicep file and we are ready to deploy. Let's launch CloudShell and clone this repo there.
- Create resource group with the following command
az group create --name bicep-demo --location centralus
- Configure your variables
$SourceIP="<Office Source IP>";$prefix=<Some prefix value for your resource names>"
- Next, let's deploy this into the resource group
az deployment group create -n deploy-1 -g bicep-demo --template-file deploy.bicep --parameters stackPrefix=$prefix stackEnvironment=dev sourceIP=$SourceIP stackOwner=team1@contoso.com