0
0
Azurecloud~10 mins

ARM template structure 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 define the ARM template schema.

Azure
{
  "$schema": "[1]",
  "contentVersion": "1.0.0.0",
  "resources": []
}
Drag options to blanks, or click blank then click option'
Ahttps://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#
Bhttps://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#
Chttps://schema.management.azure.com/schemas/2017-05-01/deploymentTemplate.json#
Dhttps://schema.management.azure.com/schemas/2018-02-01/deploymentTemplate.json#
Attempts:
3 left
💡 Hint
Common Mistakes
Using a schema URL for a different Azure service
Using a schema URL with an incorrect version
2fill in blank
medium

Complete the code to specify the ARM template content version.

Azure
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  "contentVersion": "[1]",
  "resources": []
}
Drag options to blanks, or click blank then click option'
A1.0.0.0
B2020-01-01
Clatest
Dv1
Attempts:
3 left
💡 Hint
Common Mistakes
Using a date format instead of a version number
Using keywords like 'latest' instead of a version string
3fill in blank
hard

Fix the error in the ARM template by completing the missing key for resources.

Azure
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "[1]": []
}
Drag options to blanks, or click blank then click option'
Aparameters
Bvariables
Cresources
Doutputs
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'parameters' or 'variables' instead of 'resources'
Omitting the 'resources' key entirely
4fill in blank
hard

Fill both blanks to define parameters and variables sections in the ARM template.

Azure
{
  "[1]": {
    "location": {
      "type": "string",
      "defaultValue": "eastus"
    }
  },
  "[2]": {
    "storageAccountName": "mystorageaccount"
  }
}
Drag options to blanks, or click blank then click option'
Aparameters
Bresources
Cvariables
Doutputs
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping 'parameters' and 'variables' keys
Using 'resources' or 'outputs' in these places
5fill in blank
hard

Fill both blanks to define an output that returns the storage account name.

Azure
{
  "outputs": {
    "storageAccountNameOutput": {
      "type": "string",
      "value": "[[1]('[2]')]"
    }
  }
}
Drag options to blanks, or click blank then click option'
Areference
BstorageAccountName
C)
D(
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong function names like 'get' or 'output'
Incorrect parentheses placement