如何使用ARM模板在一个资源组中创建应用程序网关,在其他资源组中创建vnet

问题描述 投票:0回答:1

我想在一个资源组中创建一个具有两个vm的应用程序网关,并使用另一个资源组来构建网络组件

arm arm-template azure-application-gateway
1个回答
0
投票

像往常一样,只需在该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

© www.soinside.com 2019 - 2024. All rights reserved.