Skip to content

This is part of a demo series on Infrastructure-as-code. In this project, we are focused on how to write conditions and loops in bicep.

License

Notifications You must be signed in to change notification settings

seekdavidlee/az-bicep-conditions-and-loops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

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.

Architecture

Steps

We have created a bicep file and we are ready to deploy. Let's launch CloudShell and clone this repo there.

  1. Create resource group with the following command az group create --name bicep-demo --location centralus
  2. Configure your variables $SourceIP="<Office Source IP>";$prefix=<Some prefix value for your resource names>"
  3. 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

About

This is part of a demo series on Infrastructure-as-code. In this project, we are focused on how to write conditions and loops in bicep.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages