Hello Varma,
It has been identified that the provided 'Template schema' is currently not supported.
The schema 'https://schema.management.azure.com/schemas/2019-11-01/subscriptionDeploymentTemplate.json#'
Please use one of the supported versions instead: '2015-01-01', '2018-05-01', '2019-04-01', or '2019-08-01'. For your convenience, we have added the supported version. Kindly use the API below.
"$schema": "https://schema.management.azure.com/schemas/2019-08-01/subscriptionDeploymentTemplate.json#",
And also identified that you are trying to create a RG inside another resource group, which is incorrect. Microsoft.Resources/resourceGroups
For your ease of reference, please use below template
{
"$schema": "https://schema.management.azure.com/schemas/2019-08-01/subscriptionDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"resourceGroupName": {
"type": "string"
},
"location": {
"type": "string"
},
"acrName": {
"type": "string"
},
"keyVaultName": {
"type": "string"
}
},
"resources": [
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2021-04-01",
"name": "nestedDeployment",
"resourceGroup": "[parameters('resourceGroupName')]",
"dependsOn": [],
"properties": {
"mode": "Incremental",
"template": {
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"acrName": {
"type": "string"
},
"keyVaultName": {
"type": "string"
},
"location": {
"type": "string"
}
},
"resources": [
{
"type": "Microsoft.ContainerRegistry/registries",
"apiVersion": "2019-05-01",
"name": "[parameters('acrName')]",
"location": "[parameters('location')]",
"sku": {
"name": "Standard"
},
"properties": {}
},
{
"type": "Microsoft.KeyVault/vaults",
"apiVersion": "2019-09-01",
"name": "[parameters('keyVaultName')]",
"location": "[parameters('location')]",
"properties": {
"sku": {
"family": "A",
"name": "standard"
},
"tenantId": "[subscription().tenantId]",
"accessPolicies": [],
"enabledForDeployment": true,
"enabledForTemplateDeployment": true,
"enabledForDiskEncryption": false
}
}
]
},
"parameters": {
"acrName": {
"value": "[parameters('acrName')]"
},
"keyVaultName": {
"value": "[parameters('keyVaultName')]"
},
"location": {
"value": "[parameters('location')]"
}
}
}
}
]
}
Please try and let us know the results. If the provided answer helps your query, please click Upvote it.
Thanks