Modifying an Existing Bicep Template
In the previous section, you created a Bicep template for a storage account that closely resembles the ARM storage account template you created previously. You realize that you forgot to add a description for the storage account name and would like to add that now, as well as adding an output from the template. Follow these steps to update your existing template from the previous section:
- Open VS Code.
- Open your
Storage_Account_Bicep.bicep
file. - Insert a new line above line 3 and add the following code:
@description('Enter a unique storage account name between 5 and 15 characters in length.')
- Lines 3 to 6 should look as follows:
Figure 11.6: Storage account name parameter
- On lines 28 and 29, add the following code to output the name of your storage account and the SKU chosen:
output name string = storageAccountName output sku string = storageSKU
You have just successfully...