0
0
Azurecloud~10 mins

Bicep as ARM simplification in Azure - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to declare a resource group in Bicep.

Azure
resource myResourceGroup '[1]' = {
  name: 'myResourceGroup'
}
Drag options to blanks, or click blank then click option'
AMicrosoft.Storage/storageAccounts@2021-06-01
BMicrosoft.Compute/virtualMachines@2022-01-01
CMicrosoft.Resources/resourceGroups@2021-04-01
DMicrosoft.Network/virtualNetworks@2021-05-01
Attempts:
3 left
💡 Hint
Common Mistakes
Using a resource type for virtual machines or storage accounts instead of resource groups.
Omitting the API version.
2fill in blank
medium

Complete the code to declare a storage account resource in Bicep.

Azure
resource storageAccount '[1]' = {
  name: 'mystorageaccount',
  location: 'westus',
  sku: {
    name: 'Standard_LRS'
  },
  kind: 'StorageV2'
}
Drag options to blanks, or click blank then click option'
AMicrosoft.Storage/storageAccounts@2021-06-01
BMicrosoft.Network/virtualNetworks@2021-05-01
CMicrosoft.Resources/resourceGroups@2021-04-01
DMicrosoft.Compute/virtualMachines@2022-01-01
Attempts:
3 left
💡 Hint
Common Mistakes
Using resource types for virtual machines or virtual networks instead of storage accounts.
Forgetting to specify the API version.
3fill in blank
hard

Fix the error in the Bicep code by completing the resource type for a virtual machine.

Azure
resource vm '[1]' = {
  name: 'myVM',
  location: 'centralus',
  properties: {}
}
Drag options to blanks, or click blank then click option'
AMicrosoft.Storage/storageAccounts@2021-06-01
BMicrosoft.Compute/virtualMachines@2022-01-01
CMicrosoft.Network/virtualNetworks@2021-05-01
DMicrosoft.Resources/resourceGroups@2021-04-01
Attempts:
3 left
💡 Hint
Common Mistakes
Using storage account or resource group resource types for a VM.
Omitting the API version.
4fill in blank
hard

Fill both blanks to declare a virtual network with an address prefix and a subnet.

Azure
resource vnet '[1]' = {
  name: 'myVnet',
  location: 'eastus2',
  properties: {
    addressSpace: {
      addressPrefixes: [ '[2]' ]
    },
    subnets: [
      {
        name: 'default',
        properties: {
          addressPrefix: '10.0.0.0/24'
        }
      }
    ]
  }
}
Drag options to blanks, or click blank then click option'
AMicrosoft.Network/virtualNetworks@2021-05-01
BMicrosoft.Compute/virtualMachines@2022-01-01
C10.0.0.0/16
DStandard_LRS
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong resource type for virtual networks.
Using a subnet prefix as the main address prefix.
5fill in blank
hard

Fill all three blanks to create a storage account with a SKU, kind, and access tier.

Azure
resource storage '[1]' = {
  name: 'storageacct',
  location: 'westus2',
  sku: {
    name: '[2]'
  },
  kind: '[3]',
  properties: {
    accessTier: 'Hot'
  }
}
Drag options to blanks, or click blank then click option'
AMicrosoft.Storage/storageAccounts@2021-06-01
BStandard_LRS
CStorageV2
DMicrosoft.Compute/virtualMachines@2022-01-01
Attempts:
3 left
💡 Hint
Common Mistakes
Using virtual machine resource types for storage accounts.
Mixing SKU names with kind values.