below is the Arm Json that I am using to deploy the Consumption plan on Azure. Works perfectly. I want to how can we parameterize nested object in Arm:
{
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2022-03-01",
"name": "[variables('hostingPlanName')]",
"location": "[parameters('location')]",
"sku": {
"name": "Y1",
"tier": "Dynamic",
"size": "Y1",
"family": "Y",
"capacity": 0
},
"properties": {
"computeMode": "Dynamic"
}
}
For Example, If I want to parameterize sku property? It contains name, tier, size, family and capacity. I know how to parameterize each one separately for example:
"name": "[parameter('sku_name')]",
"tier": "[parameter('sku_tier')]"
But is it possible to parameterize the complete sku property in one go? Like:
"sku": "[parameter('sku')]"
But how it will be assigned in parameters section then?