第二对Azure VNet Gateway安装失败

时间:2014-10-16 17:26:56

标签: powershell azure

我正在尝试在Azure中设置多个VNet到VNet连接,如下所述:https://azure.microsoft.com/en-us/documentation/articles/virtual-networks-configure-vnet-to-vnet-connection/

我有4个VNets

互联星空北 互联星空 - 南 互联星空东 互联星空方

我一直在尝试在中心设置一个带有域控制器的星型拓扑,如下所示:

Star Topology

我已成功将VNet-North设置为VNet-South两个方向。

当我尝试使用此PoewerShell命令将VNet-North连接到VNet-East时:

PS C:\> Set-AzureVNetGatewayKey -VNetName VNet-North -LocalNetworkSiteName VNet-East -SharedKey A1b2C3D4

它返回成功

但是当我尝试时:

PS C:\> Set-AzureVNetGatewayKey -VNetName VNet-East -LocalNetworkSiteName VNet-North -SharedKey A1b2C3D4

Set-AzureVNetGatewayKey : BadRequest: The specified local network site name 'VNet-North' is not    valid or could not be found.
At line:1 char:1
+ Set-AzureVNetGatewayKey -LocalNetworkSiteName VNet-North -SharedKey AaBaCaDa -VNetN ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Set-AzureVNetGatewayKey], CloudException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.SetAzureVNetGatewayKey

星型拓扑是否可行?

1 个答案:

答案 0 :(得分:0)

遇到同样的问题,通过向遇到问题的各方发出Reset-AzureVNetGateway -VNetName "Name"来解决问题。此命令将暂时删除给定VPN网关上的所有连接,请谨慎使用。