Os modelos de Início Rápido do Azure estão atualmente disponíveis em inglês
This template allows you to connect two VNETs in different regions using Virtual Network Gateways
Este modelo do ARM (Azure Resource Manager) foi criado por um membro da comunidade, e não pela Microsoft. Cada modelo do ARM é licenciado para você de acordo com o contrato de licença de seu proprietário, e não da Microsoft. A Microsoft não é responsável por modelos do ARM fornecidos e licenciado por membros da comunidade e não avalia sua segurança, compatibilidade ou desempenho. Modelos do ARM da comunidade não têm suporte de nenhum programa ou serviço de suporte da Microsoft e são disponibilizados DA FORMA COMO ESTÃO, sem nenhum tipo de garantia.
Parâmetros
Nome do parâmetro | Descrição |
---|---|
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. |
Usar o modelo
PowerShell
New-AzResourceGroup -Name <resource-group-name> -Location <resource-group-location> #use this command when you need to create a new resource group for your deploymentInstale e configure o PowerShell do Azure
New-AzResourceGroupDeployment -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.network/vnet-to-vnet/azuredeploy.json
Linha de comando
az group create --name <resource-group-name> --location <resource-group-location> #use this command when you need to create a new resource group for your deploymentInstalar e configurar a Interface de Linha de Comando de Plataforma Cruzada do Azure
az group deployment create --resource-group <my-resource-group> --template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.network/vnet-to-vnet/azuredeploy.json