Resource group=A
Resource group=B
A has a Vnet
B trying to create a subnet under A's Vnet
Tried using the below code, but it is failing
{
"apiVersion": "2018-04-01",
"comments": "AppGatewaySubnet_Creation",
"dependsOn": [
//"[resourceId('Microsoft.Network/virtualNetworks', parameters('VNET_Name'))]"
//"[resourceId('Microsoft.Network/applicationGateways', parameters('AppGateWay_Name'))]"
],
"type": "Microsoft.Network/virtualNetworks/subnets",
"name": "[concat(parameters('virtualNetworkName'), '/', parameters('subnetNameAppgateway'))]",
"location": "[parameters('location')]",
"properties": {
"addressPrefix": "[parameters('subnetNameAppgatewayaddressPrefix')]"
}
}