Infrastructure as Code (IaC) in Bicep format to show the deployment of a few useful Azure resources.
- Download Visual Studio Code
- Install Bicep extension
- 'Open folder' at repository root
- Create a resource group named
birdatlasiac
in your subscription.
You can test locally running following command in Visual Studio Code shell (or any CLI tool):
az deployment group what-if --name 'TestLocal' --resource-group birdatlasiac --template-file .\templates\main.bicep --parameters .\templates\parameters\DEV.parameters.json
If you're not logged in yet, run az login
first and use az account set --subscription "SubName"
to set the default subscription to work on.
Deployment can be done through Azure DevOps or GitHub actions (or any other CI/CD tooling). To deploy from your machine, use following command:
az deployment group create --name 'TestLocal' --resource-group birdatlasiac --template-file .\templates\main.bicep --parameters .\templates\parameters\DEV.parameters.json