Creating a Bicep Template
You are now ready to start working on your first Bicep template. For this exercise, you will create a storage account using Bicep, which you can compare to working on ARM:
- Open VS Code.
- Create a new file named
Storage_Account_Bicep.bicep
. - Paste in the code from your previous ARM storage account template, and it will automatically convert your code to Bicep. Your code should resemble the following:
@description('Enter a unique storage account name.') param storageAccountName string param location string = resourceGroup().location @description('Select the storage account type.') @allowed([ 'Standard_LRS' 'Standard_GRS' 'Standard_RAGRS' 'Standard_ZRS' ]) param accountType string = 'Standard_LRS' resource storageAccount 'Microsoft.Storage/storageAccounts@2021-04-01' = { name: storageAccountName location...