Azure 点到站点 VPN 资源管理器 powershell

Azure Point-to-Site VPN Resource Manager powershell

我找到了 link、https://azure.microsoft.com/en-us/documentation/articles/vpn-gateway-howto-point-to-site-rm-ps/,其中详细说明了如何在新的 Azure 资源管理器中使用 powershell 创建点到站点 VPN 连接。

在尝试创建 运行 此脚本时,我收到了错误消息。 “术语 'Add-AzureRmVpnClientRootCertificate' 未被识别为 cmdlet 的名称”

我目前 运行正在使用 Azure Powershell 版本 1.0.1,此参考 https://msdn.microsoft.com/en-us/library/mt653593.aspx 表明它应该在版本 1.0 中可用。

我做错了什么?

看来您至少需要 Azure PowerShell 1.0.4 才能获取此 cmdlet。如果您在 https://github.com/Azure/azure-powershell/blob/master/src/ResourceManager/Network/Commands.Network/VirtualNetworkGateway/AddAzureVpnClientRootCertificateCommand.cs, it looks like it was added with the commit for 1.0.4: https://github.com/Azure/azure-powershell/commit/09b5f57ff798ca90aeb84e73fbd88f406d7edd7c 查看此 cmdlet 的 GitHub 源代码。