如何使用资源管理器(而不是经典的 azure 门户)在新的 azure 门户中保留 ip 地址?
How can I reserve ip address in new azure portal with resource manager (and not classic azure portal)?
我知道在查看此 link 后,我可以在经典的 Azure 门户中使用 New-AzureReservedIP commandlet 保留 IP 地址:
https://azure.microsoft.com/en-us/documentation/articles/virtual-networks-reserved-public-ip/
但我的资源在新的资源管理器门户中,在经典门户中没有对应资源。
我想我会在看到这个 link 后在新的 azure 门户中找到类似的命令:
https://azure.microsoft.com/en-us/documentation/articles/virtual-network-ip-addresses-overview-arm/#public-ip-addresses
我找不到与上述命令 let 等效的命令。然后我在上面找到了下面的文字 link:
注:
即使将分配方法设置为静态,也无法指定分配给 public IP 资源的实际 IP 地址。相反,它是从创建资源的 Azure 位置的可用 IP 地址池中分配的。
这是否意味着我无法使用资源管理器在新的 Azure 门户中保留 IP 地址?如果可能,请列出 azure commandlet 序列。
下面link讲的是在经典门户中保留ip地址,让他们在新门户中工作。但这不是我的用例,因此我不能使用它:
您可以使用 New-AzureRmPublicIpAddress PowerShell 命令。
New-AzureRmPublicIpAddress -ResourceGroupName GroupName -Name IPName -AllocationMethod Static/Dynamic
MSDN link, you can also do it as part of an ARM template, I have examples here.
使用 New-AzureRmNetworkInterface 命令创建 NIC 时,通过指定 -PublicIpAddress IPName 参数将 IP 附加到 NIC。
MSDN link.
我知道在查看此 link 后,我可以在经典的 Azure 门户中使用 New-AzureReservedIP commandlet 保留 IP 地址: https://azure.microsoft.com/en-us/documentation/articles/virtual-networks-reserved-public-ip/
但我的资源在新的资源管理器门户中,在经典门户中没有对应资源。
我想我会在看到这个 link 后在新的 azure 门户中找到类似的命令: https://azure.microsoft.com/en-us/documentation/articles/virtual-network-ip-addresses-overview-arm/#public-ip-addresses
我找不到与上述命令 let 等效的命令。然后我在上面找到了下面的文字 link:
注: 即使将分配方法设置为静态,也无法指定分配给 public IP 资源的实际 IP 地址。相反,它是从创建资源的 Azure 位置的可用 IP 地址池中分配的。
这是否意味着我无法使用资源管理器在新的 Azure 门户中保留 IP 地址?如果可能,请列出 azure commandlet 序列。
下面link讲的是在经典门户中保留ip地址,让他们在新门户中工作。但这不是我的用例,因此我不能使用它:
您可以使用 New-AzureRmPublicIpAddress PowerShell 命令。
New-AzureRmPublicIpAddress -ResourceGroupName GroupName -Name IPName -AllocationMethod Static/Dynamic
MSDN link, you can also do it as part of an ARM template, I have examples here.
使用 New-AzureRmNetworkInterface 命令创建 NIC 时,通过指定 -PublicIpAddress IPName 参数将 IP 附加到 NIC。
MSDN link.