Azure Classroomnotes 29/Oct/2022

Azure Bicep

az group create --name exampleRG --location eastus

az deployment group create --resource-group exampleRG --template-file main.bicep
  • Lets uses loops to create subnets Refer Here for the changes

Linked Template

  • Linked template allows us to reuse the existing template.
  • In the changeset we have reused already available template and called it from a new template, so there was no need to write vnet and subnets again as resources.
  • Refer Here for the changeset
  • Same stuff can be acheived in bicep using modules
param location string = 'eastus'

module ntiervnet 'main.bicep' = {
  name: 'moduledemo'
  params: {
    region: location
  }

}
  • Note: Refer Here for the git repo with sample templates used and created by microsoft
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%