【问题标题】:Azure the reserved IP does not existAzure 保留的 IP 不存在
【发布时间】:2015-11-02 06:53:58
【问题描述】:

我使用以下 powershell cmdlet 创建了一个保留 IP 地址:

New-AzureReservedIP “dmz-live” –Label “be-dmz-ip” –Location “North Europe”

我之前创建了一个名为“be-dmz”的虚拟机和一个云服务“be-dmz”,我将其删除并保留了附加的磁盘。

然后我尝试重新创建 VM 并为其分配静态保留 ip,如下所示:

New-AzureVMConfig -Name "be-dmz" -InstanceSize "Standard_D11" –ImageName "be-dmz-be-dmz-0-201508101027470734" | New-AzureVM -ServiceName "be-dmz" –ReservedIPName " be-dmz-ip " -Location "North Europe”

但我得到了错误:

The reserved IP dmz-live does not exist

如果我使用 powershell cmdlet 显示保留的 IP,如下所示:

ReservedIPName: dmz-live
Address: xxx.xxx.xxx.xxx
Label: be-dmz-ip
Location: North Europe

【问题讨论】:

  • 尝试删除 ReservedIPName " be-dmz-ip "中的空格

标签: azure azure-virtual-machine azure-cloud-services azure-powershell reserved


【解决方案1】:

有点晚了:

您已命名保留 ip dmz-live标记be-dmz-ip

链接时,你需要使用名称而不是标签(以及删除空格):

New-AzureVMConfig -Name "be-dmz" -InstanceSize "Standard_D11" 
                  –ImageName "be-dmz-be-dmz-0-201508101027470734" | 
                  New-AzureVM -ServiceName "be-dmz" 
                  –ReservedIPName "dmz-live" -Location "North Europe”

【讨论】:

    猜你喜欢
    • 2020-11-02
    • 2014-08-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多