0
0
Azurecloud~10 mins

Azure Resource Manager (ARM) concept - Interactive Code Practice

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

Complete the code to define the resource group location in an ARM template.

Azure
{
  "location": "[1]"
}
Drag options to blanks, or click blank then click option'
Avariables('location')
BresourceGroup()
Ceastus
Dparameters('location')
Attempts:
3 left
💡 Hint
Common Mistakes
Using a function like resourceGroup() instead of a string.
Leaving the location blank or misspelling the region name.
2fill in blank
medium

Complete the code to reference a parameter named 'storageAccountName' in an ARM template.

Azure
"name": "[1]"
Drag options to blanks, or click blank then click option'
Aparameters('storageAccountName')
Bvariables('storageAccountName')
CresourceGroup().storageAccountName
Doutputs('storageAccountName')
Attempts:
3 left
💡 Hint
Common Mistakes
Using variables() instead of parameters().
Trying to access parameters as properties of resourceGroup().
3fill in blank
hard

Fix the error in the ARM template snippet to correctly define a resource type.

Azure
"type": "[1]"
Drag options to blanks, or click blank then click option'
AstorageAccounts/Microsoft.Storage
BMicrosoft.Storage/storageAccounts
CMicrosoft.Storage:storageAccounts
DstorageAccounts
Attempts:
3 left
💡 Hint
Common Mistakes
Reversing the order of provider and resource type.
Using a colon instead of a slash.
Using only the resource type without the provider namespace.
4fill in blank
hard

Fill both blanks to create a resource with a name from parameters and a location from variables.

Azure
{
  "name": "[1]",
  "location": "[2]"
}
Drag options to blanks, or click blank then click option'
Aparameters('vmName')
Bvariables('location')
Cparameters('location')
Dvariables('vmName')
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing parameters and variables for name and location.
Using parameters for location when it is stored in variables.
5fill in blank
hard

Fill all three blanks to define a resource with type, apiVersion, and dependsOn properties.

Azure
{
  "type": "[1]",
  "apiVersion": "[2]",
  "dependsOn": ["[3]"]
}
Drag options to blanks, or click blank then click option'
AMicrosoft.Compute/virtualMachines
B2021-07-01
CMicrosoft.Network/networkInterfaces/myNic
D2020-06-01
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong API version strings.
Incorrect resource type format.
Not specifying dependsOn or using wrong resource ID.