0
0
Azurecloud~10 mins

Template deployment methods 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 deploy an ARM template using Azure CLI.

Azure
az deployment group create --resource-group myResourceGroup --template-file [1]
Drag options to blanks, or click blank then click option'
Aconfig.yaml
Bdeploy.ps1
Cscript.sh
Dtemplate.json
Attempts:
3 left
💡 Hint
Common Mistakes
Using a script file instead of the ARM template JSON file.
Confusing the template file with configuration or script files.
2fill in blank
medium

Complete the code to deploy a Bicep template using Azure CLI.

Azure
az deployment group create --resource-group myResourceGroup --template-file [1]
Drag options to blanks, or click blank then click option'
Amain.bicep
Btemplate.json
Cdeploy.ps1
Dconfig.yaml
Attempts:
3 left
💡 Hint
Common Mistakes
Using a JSON template file instead of the Bicep file.
Trying to deploy script or config files as templates.
3fill in blank
hard

Fix the error in the Azure PowerShell command to deploy an ARM template.

Azure
New-AzResourceGroupDeployment -ResourceGroupName myResourceGroup -TemplateFile [1]
Drag options to blanks, or click blank then click option'
Adeploy.ps1
Bscript.sh
Ctemplate.json
Dconfig.yaml
Attempts:
3 left
💡 Hint
Common Mistakes
Using script or config files instead of the ARM template JSON file.
Confusing deployment scripts with template files.
4fill in blank
hard

Fill both blanks to deploy a Bicep template with parameters using Azure CLI.

Azure
az deployment group create --resource-group myResourceGroup --template-file [1] --parameters [2]
Drag options to blanks, or click blank then click option'
Amain.bicep
Bparameters.json
Ctemplate.json
Dconfig.yaml
Attempts:
3 left
💡 Hint
Common Mistakes
Using a JSON template file instead of a Bicep file for the template.
Using a config or script file as parameters.
5fill in blank
hard

Fill all three blanks to deploy an ARM template with inline parameters using Azure PowerShell.

Azure
New-AzResourceGroupDeployment -ResourceGroupName myResourceGroup -TemplateFile [1] -TemplateParameterObject @{ [2] = '[3]' }
Drag options to blanks, or click blank then click option'
Atemplate.json
BstorageAccountName
Cmystorage123
Dparameters.json
Attempts:
3 left
💡 Hint
Common Mistakes
Using a parameters file instead of inline parameters.
Mixing up parameter names and values.