MDFT Pro, a well-known training agency, has standardized their Azure infrastructure deployment using ARM templates for consistent resource group creation across their educational environments. As the newly hired cloud operations manager for MDFT Pro, you have deployed an ARM template that automatically creates three resource groups (RG0, RG1, RG2) with appropriate security controls for different purposes under direction from Mark, the Technology Integration Manager:
As their training programs expand, the company needs additional resource groups for specialized training environments, pilot programs, and temporary educational events that require isolated infrastructure. The development team wants to know if they can create additional resource groups beyond those defined in the ARM template.
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {},
"resources": [
{
"type": "Microsoft.Resources/resourceGroups",
"apiVersion": "2018-05-01",
"location": "eastus",
"name": "[concat('RG', copyIndex())]",
"copy": {
"name": "copy",
"count": 3
}
},
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2021-04-01",
"name": "lockDeployment",
"resourceGroup": "RG1",
"dependsOn": ["[resourceId('Microsoft.Resources/resourceGroups/', 'RG1')]"],
"properties": {
"mode": "Incremental",
"template": {
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {},
"resources": [
{
"type": "Microsoft.Authorization/locks",
"apiVersion": "2016-09-01",
"name": "rgLock",
"properties": {
"level": "CanNotDelete"
}
}
]
}
}
},
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2021-04-01",
"name": "lockDeployment",
"resourceGroup": "RG2",
"dependsOn": ["[resourceId('Microsoft.Resources/resourceGroups/', 'RG2')]"],
"properties": {
"mode": "Incremental",
"template": {
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {},
"resources": [
{
"type": "Microsoft.Authorization/locks",
"apiVersion": "2016-09-01",
"name": "rgLock",
"properties": {
"level": "ReadOnly"
}
}
]
}
}
}
],
"outputs": {}
}
After deploying this template using New-AzDeployment -Location westus -TemplateFile "deploy.json"
, can you manually create a resource group named RG3?
Choose the correct answer from the options below.
Explanations for each answer: