Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powershell 第二对Azure VNet网关安装失败_Powershell_Azure - Fatal编程技术网

Powershell 第二对Azure VNet网关安装失败

Powershell 第二对Azure VNet网关安装失败,powershell,azure,Powershell,Azure,我正在尝试在Azure中设置多个VNet到VNet连接,如下所述: 我有4个VNET VNet北 VNet南部 VNet东 维内特西部 我一直在尝试使用中心的域控制器设置星形拓扑,如下所示: 我已经成功地在两个方向上设置了VNet北到VNet南 当我尝试使用此PoewerShell命令将VNet North连接到VNet East时: PS C:\> Set-AzureVNetGatewayKey -VNetName VNet-North -LocalNetworkSiteName VN

我正在尝试在Azure中设置多个VNet到VNet连接,如下所述:

我有4个VNET

VNet北 VNet南部 VNet东 维内特西部

我一直在尝试使用中心的域控制器设置星形拓扑,如下所示:

我已经成功地在两个方向上设置了VNet北到VNet南

当我尝试使用此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

星型拓扑是否可行?

也有同样的问题,通过针对所有有问题的方发出重置AzureVNetGateway-VNetName“Name”来解决。此命令将暂时删除给定VPN网关上的所有连接,请谨慎使用