0
0
Azurecloud~10 mins

ARM vs Bicep vs Terraform decision in Azure - Interactive 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 using ARM template syntax.

Azure
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/subscriptionDeploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "resources": [
    {
      "type": "Microsoft.Resources/resourceGroups",
      "apiVersion": "2021-04-01",
      "name": "[1]",
      "location": "eastus"
    }
  ]
}
Drag options to blanks, or click blank then click option'
Aeastus
BresourceGroupName
Clocation
DmyResourceGroup
Attempts:
3 left
💡 Hint
Common Mistakes
Using a property name instead of a string value.
Confusing location with name.
2fill in blank
medium

Complete the Bicep code to create a storage account with the correct resource type.

Azure
resource storageAccount '[1]@2021-04-01' = {
  name: 'mystorageacct'
  location: 'eastus'
  kind: 'StorageV2'
  sku: {
    name: 'Standard_LRS'
  }
}
Drag options to blanks, or click blank then click option'
AMicrosoft.Compute/virtualMachines
BMicrosoft.Storage/storageAccounts
CMicrosoft.Network/virtualNetworks
DMicrosoft.Web/sites
Attempts:
3 left
💡 Hint
Common Mistakes
Using a resource type for virtual machines or networks instead of storage.
Omitting the resource type version.
3fill in blank
hard

Fix the error in this Terraform resource block by completing the provider declaration.

Azure
provider "[1]" {
  features {}
}
Drag options to blanks, or click blank then click option'
Aaws
Bazure
Cazurerm
Dgoogle
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'azure' instead of 'azurerm' as provider name.
Using providers for other clouds like AWS or Google.
4fill in blank
hard

Fill both blanks to define a Bicep parameter with a default value and a type.

Azure
param [1] [2] = 'eastus'
Drag options to blanks, or click blank then click option'
Alocation
Bstring
Cint
Dbool
Attempts:
3 left
💡 Hint
Common Mistakes
Using a type that does not match the default value.
Confusing parameter name with type.
5fill in blank
hard

Fill all three blanks to create a Terraform resource with a name, type, and location attribute.

Azure
resource [1] "[2]" {
  name     = "myResource"
  location = "[3]"
}
Drag options to blanks, or click blank then click option'
Aazurerm_resource_group
Bresource_group
Ceastus
Dwestus
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect resource type names.
Using invalid location names.