我想在一个资源组中创建一个具有两个vm的应用程序网关,并使用另一个资源组来构建网络组件
像往常一样,只需在该vnet中给它一个子网?
resourceId('resource_group_name', 'Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworkName'), parameters('subnetName'))
参考: https://github.com/Azure/azure-quickstart-templates/blob/master/101-application-gateway-create/azuredeploy.json#L118 https://github.com/Azure/azure-quickstart-templates/blob/master/101-application-gateway-create/azuredeploy.json#L171