0
0
Azurecloud~10 mins

ARM template resources section 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 a resource type in the ARM template resources section.

Azure
"resources": [ { "type": "[1]", "apiVersion": "2021-04-01", "name": "myStorageAccount" } ]
Drag options to blanks, or click blank then click option'
AMicrosoft.Network/virtualNetworks
BMicrosoft.Compute/virtualMachines
CMicrosoft.Storage/storageAccounts
DMicrosoft.Web/sites
Attempts:
3 left
💡 Hint
Common Mistakes
Using a compute or network resource type instead of storage account type.
Misspelling the resource type string.
2fill in blank
medium

Complete the code to specify the API version for the resource.

Azure
"resources": [ { "type": "Microsoft.Storage/storageAccounts", "apiVersion": "[1]", "name": "myStorageAccount" } ]
Drag options to blanks, or click blank then click option'
A2020-01-01
B2019-06-01
C2018-02-01
D2021-04-01
Attempts:
3 left
💡 Hint
Common Mistakes
Using outdated or unsupported API versions.
Using API versions for other resource types.
3fill in blank
hard

Fix the error in the resource name property to correctly reference a parameter named 'storageName'.

Azure
"resources": [ { "type": "Microsoft.Storage/storageAccounts", "apiVersion": "2021-04-01", "name": "[1]" } ]
Drag options to blanks, or click blank then click option'
A'storageName'
B[parameters('storageName')]
Cparameters.storageName
D[variables('storageName')]
Attempts:
3 left
💡 Hint
Common Mistakes
Using dot notation instead of expression syntax.
Using variable syntax instead of parameter syntax.
Using quotes without expression brackets.
4fill in blank
hard

Fill both blanks to define the location and sku name for the storage account resource.

Azure
"resources": [ { "type": "Microsoft.Storage/storageAccounts", "apiVersion": "2021-04-01", "name": "[parameters('storageName')]", "location": "[1]", "sku": { "name": "[2]" } } ]
Drag options to blanks, or click blank then click option'
A[parameters('location')]
Beastus
CStandard_LRS
DPremium_LRS
Attempts:
3 left
💡 Hint
Common Mistakes
Hardcoding location instead of using a parameter.
Using an invalid sku name.
5fill in blank
hard

Fill all three blanks to add tags with environment and department to the storage account resource.

Azure
"resources": [ { "type": "Microsoft.Storage/storageAccounts", "apiVersion": "2021-04-01", "name": "[parameters('storageName')]", "location": "[parameters('location')]", "sku": { "name": "Standard_LRS" }, "tags": { "environment": "[1]", "department": "[2]", "owner": "[3]" } } ]
Drag options to blanks, or click blank then click option'
A[parameters('envTag')]
Bproduction
C[parameters('ownerTag')]
Dfinance
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing parameter syntax and hardcoded strings incorrectly.
Using quotes incorrectly around parameters.