亚马逊提供弹性IP,您可以为实例分配IP地址,
在Azure上如何为现有VM执行此操作?
(如果IP更改,我不想更改所有DNS条目)
我找到了一些关于运行PowerShell命令的文章: 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)。
有什么想法吗?
这是我在PowerShell上得到的错误:
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