【发布时间】:2015-07-31 03:34:42
【问题描述】:
亚马逊有弹性 IP,您可以将其分配给实例,
如何使用 Azure 为现有 VM 做到这一点?
(如果 IP 更改,我不想更改所有 DNS 条目)
我发现了一些关于运行 power shell 命令的文章 1.http://michaelwasham.com/windows-azure-powershell-reference-guide/using-reserved-ip-addresses-with-microsoft-azure-virtual-machines/ 2.http://azure.microsoft.com/blog/2014/05/14/reserved-ip-addresses/ 3.http://azure.microsoft.com/blog/2014/04/22/static-internal-ip-address-for-virtual-machines/
但是我的服务器上无法识别这些命令(Windows server 2012 R2)
知道我该怎么做吗?
这是我在 Power Shell 上遇到的错误:
PS C:\> New-AzureReservedIP – ReservedIPName "137.117.11.18" –Label "people-dns-ip" –Location "US West"
New-AzureReservedIP : The term 'New-AzureReservedIP' 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.
At line:1 char:1
+ New-AzureReservedIP – ReservedIPName "137.117.11.18" –Label "people-dns-ip" –Loc ...
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (New-AzureReservedIP:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
【问题讨论】:
标签: powershell azure