Questions? Feedback? powered by Olark live chat software
Hoppa över navigering

Create a VNET to VNET connection across two regions

Senast uppdaterad: 2015-11-07

This template allows you to connect two VNETs in different regions using Virtual Network Gateways

Den här ARM-mallen (Azure Resource Manager) skapades av en community-medlem, inte av Microsoft. Varje ARM-mall licensieras till dig enligt ett licensavtal av respektive ägare, inte Microsoft. Microsoft ansvarar inte för ARM-mallar som erbjuds och licensieras av community-medlemmar och undersöker inte mallarnas säkerhet, kompatibilitet eller prestanda. Microsofts supportprogram och supporttjänster omfattar inte support för ARM-mallar från community-medlemmar, och dessa mallar tillhandahålls i BEFINTLIGT SKICK utan någon form av garanti.

Parametrar

Parameternamn Beskrivning
location1 Location where first VNET, Gateway, PublicIP and Connection will be deployed.
location2 Location where second VNET, Gateway, PublicIP and Connection will be deployed.
virtualNetworkName1 Name of the first VNET.
addressPrefix1 Address space for the first VNET.
subnet1Name1 Name of the first subnet in the first VNET. Please note, an additional subnet called GatewaySubnet will be created where the VirtualNetworkGateway will be deployed. The name of that subnet must not be changed from GatewaySubnet.
subnet1Prefix1 The prefix for the first subnet in the first VNET.
gatewaySubnetPrefix1 The prefix for the GatewaySubnet where the first VirtualNetworkGateway will be deployed. This must be at least /29.
gatewayPublicIPName1 The name of the PublicIP attached to the first VirtualNetworkGateway.
gatewayName1 The name of the first VirtualNetworkGateway.
connectionName1 The name of the first connection, connecting the first VirtualNetworkGateway to the second VirtualNetworkGateway.
virtualNetworkName2 Name of the second VNET.
addressPrefix2 Address space for the second VNET.
subnet1Name2 Name of the first subnet in the second VNET. Please note, an additional subnet called GatewaySubnet will be created where the VirtualNetworkGateway will be deployed. The name of that subnet must not be changed from GatewaySubnet.
subnet1Prefix2 The prefix for the first subnet in the second VNET.
gatewaySubnetPrefix2 The prefix for the GatewaySubnet where the second VirtualNetworkGateway will be deployed. This must be at least /29.
gatewayPublicIPName2 The name of the PublicIP attached to the second VirtualNetworkGateway.
gatewayName2 The name of the second VirtualNetworkGateway.
connectionName2 The name of the second connection, connecting the second VirtualNetworkGateway to the first VirtualNetworkGateway.
sharedKey The shared key used to establish connection between the two VirtualNetworkGateways.

Använda mallen

PowerShell
New-AzureRmResourceGroupDeployment -Name <deployment-name> -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/201-vnet-to-vnet/azuredeploy.json
Installera och konfigurera Azure PowerShell
Kommandoraden
azure config mode arm
azure group deployment create <my-resource-group> <my-deployment-name> --template-uri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/201-vnet-to-vnet/azuredeploy.json
Installera och konfigurera Azures plattformsoberoende kommandoradsgränssnitt