Unraveling Azure Bicep Assets


Whats up everybody! We’ve been on an thrilling journey exploring Azure Bicep. We’ve seen what it’s, and the way it compares to ARM templates, arrange our surroundings, dived into its syntax, and explored parameters. At present, we’re going to take one other step ahead. We’ll discover one of many key parts of Azure Bicep – Assets. So, let’s get began.

Logging in to Azure

Earlier than we begin, let’s guarantee we’re logged into Azure. Right here’s how you are able to do it.

  1. Open your terminal or command immediate: You should use any terminal or command immediate that you simply’re comfy with.
  2. Log in to Azure: Use the az login command to log in to Azure.
    # Login to Azure
    az login
  3. Set your subscription: Use the az account set command to set your subscription.
    # Set your subscription
    az account set --subscription "YourSubscriptionName"

Azure Bicep Assets

Assets in Azure Bicep are the Azure assets that you simply need to deploy. They’re outlined utilizing the useful resource key phrase. Right here’s an instance,

param storageAccountName string = 'mystorageaccount'

useful resource storageAccount 'Microsoft.Storage/storageAccounts@2021-04-01' = {
  identify = storageAccountName
  location = resourceGroup().location
  sku = {
  sort = 'StorageV2'

On this instance, storageAccount is a useful resource of kind Microsoft.Storage/storageAccounts@2021-04-01. The identify property of the useful resource is about to the storage account identify parameter, the placement property is about to the placement of the useful resource group, and the SKU and type properties are set to ‘Standard_LRS’ and ‘StorageV2’, respectively.


Nicely achieved! You’ve simply realized find out how to use assets in Azure Bicep. Assets are a robust function that means that you can outline and deploy Azure assets. In our subsequent session, we’ll discover variables in Azure Bicep. So, keep tuned and continue learning!

Know extra about our firm at Skrots. Know extra about our companies at Skrots Providers, Additionally checkout all different blogs at Weblog at Skrots

Show More

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button