Deploy and manage your Azure infrastructures with Azure native IaC framework Bicep.
Bicep is a domain-specific language and an Azure-native IaC framework for deploying and managing Azure infrastructures in automation way, rathar than manually on Azure Portal. Unlike ARM JSON template, Bicep use it's own domain-specific language for provisioning Azure resources which makes a template very simple and human-readable.
- Simpler syntax for writing templates
- Reference parameters and variables directly, without using complicated functions
- Break down complex template deployments into smaller module files and reference them in a main template
- You can directly deploy newly released or in preview Azure resources
... and much more.
Behind the scenes, Bicep still operates with ARM JSON templates. When you submit a Bicep template to Resource Manager, the template going to be converted in JSON template. This propcess is called transpilation. But typically the template author doesn't come in touch with this process unless he wants to see the JSON template.
Download from the VS Code homepage
Download and install Azure CLI. After that check your installation:
az version
Log in to your Azure account:
az login
List the available subscriptions in your directory:
az account list -o table
Choose the right subscription:
az account set --subscription "<your-subscription-id>"
Install Bicep extension in VS Code or type the folowing command in VS Code terminal:
az bicep install && az bicep upgrade
Set the defaults resource group for the deployment:
az configure --defaults group=<resource-group-name>
Deploy the resources:
az deployment group create --template-file main.bicep