Azure Bicep
- Refer Here for the official docs of bicep
- Refer Here for comparision of syntaxes b/w ARM Templates (json) vs Bicep
- Sample Bicep using VSCode Refer Here
- Ensure Bicep Extension is installed

- For vnet resource Refer Here
- For Datatypes Refer Here
- For the bicep sample Refer Here

- Ensure Bicep Extension is installed
- Deployment commands:
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
