但是,既然我们现在可以通过Azure门户创建保留的IP,是否也可以通过门户将其分配给经典的云服务?我找不到任何关于它的文档。
答案 0 :(得分:2)
您无法使用azure门户网站。您可以使用azure powershell cmdlet。
对于现有的云服务 -
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"
您可以在此处参考标准文档 - https://azure.microsoft.com/en-us/documentation/articles/virtual-networks-reserved-public-ip/