如何通过门户将保留的IP分配给经典云服务 [英] How to assign a reserved IP to a classic cloud service through Portal

查看:58
本文介绍了如何通过门户将保留的IP分配给经典云服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是使用PowerShell的轻松的任务.

This is an easy task with PowerShell.

但是,由于我们现在可以通过Azure门户创建保留的IP,是否还可以通过门户将其分配给传统的云服务?我找不到有关它的任何文档.

But since we can now create reserved IP's through the Azure Portal, is it also possible to assign it to a classic cloud service through the portal? I can't find any documentation about it.

推荐答案

您不能使用Azure门户.您可以使用azure powershell cmdlet.

You can't using azure portal. You can using azure powershell cmdlets.

对于现有的云服务-

New-AzureReservedIP –ReservedIPName "MyReservedIP" –Location "YourLocation"
New-AzureReservedIP –ReservedIPName "MyReservedIP" –Location "YourLocation" -ServiceName "TestService"

对于新的云服务-

New-AzureReservedIP –ReservedIPName "MyReservedIP" –Location "Central US"
$image = Get-AzureVMImage|?{$_.ImageName -like "*RightImage-Windows-2012R2-x64*"}
New-AzureVMConfig -Name "TestVM" -InstanceSize "Small" -ImageName $image.ImageName `
| Add-AzureProvisioningConfig -Windows -AdminUsername "adminuser" -Password "MyP@ssw0rd!!" `
| New-AzureVM -ServiceName "TestService" -ReservedIPName "MyReservedIP" -Location "Central US"

您可以在此处参考标准文档-

You can refer to the standard documentaion here- https://azure.microsoft.com/en-us/documentation/articles/virtual-networks-reserved-public-ip/

这篇关于如何通过门户将保留的IP分配给经典云服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆