我想在由模板创建的虚拟网络网关的“点到站点”部分中设置“地址池”属性。这里是 Azure 门户中的设置 这里是模板
{
"apiVersion": "2015-06-15",
"name": "[variables('gateway').name]",
"type": "Microsoft.Network/virtualNetworkGateways",
"location": "[parameters('aseLocation')]",
"dependsOn": [
"[variables('virtualNetworkSubnet').name]",
"[variables('publicIpVnGateway').name]"
],
"properties": {
"gatewayType": "Vpn",
"ipConfigurations": [
{
"name": "default",
"properties": {
"privateIPAllocationMethod": "Dynamic",
"subnet": {
"id": "[resourceId(resourceGroup().name, 'Microsoft.Network/virtualNetworks/subnets', variables('virtualNetwork').name, variables('virtualNetworkSubnet').name)]"
},
"publicIpAddress": {
"id": "[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/publicIPAddresses/', variables('publicIpVnGateway').name)]"
}
}
}
],
"enableBgp": false,
"vpnType": "RouteBased",
"sku": {
"name": "Standard",
"tier": "Standard"
}
}
}