Azure PowerShell中不存在Set-AzureVNetGatewayKey cmdlet

背景我正尝试在Azure中将多个VNets连接起来。 为此,我正在学习本教程:

VNet到VNet:在不同地区的Azure中连接虚拟networking

我还发现另外一个参考,大致相同:

Azure VNET到VNET VPN跨地区和数据中心:不那么复杂

问题这两个教程都声明我必须通过cmdlet“Set-AzureVNetGatewayKey”设置网关密钥。 这似乎是一个不存在的cmdlet。 一切都很成功,直到这一点。

PS C:\> Set-AzureVNetGatewayKey -VNetName NETONE-LocalNetworkSiteName NETONE SharedKey ********* Set-AzureVNetGatewayKey : The term 'Set-AzureVNetGatewayKey' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. 

我也无法在Azure Cmdlet参考中find上述命令

有谁知道另一种方式?

更新您的azure色PowerShell安装。 它是一个新的cmdlet。