Azure Reserved IP

扫码查看

Azure PowerShell

> Add-AzureAccount
> Select-AzureSubscription "SubscriptionName"
> New-AzureReservedIP -ReservedIPName "projectname-development-ip" -Label "projectname-development-ip-label" -Location "West Europe"
> Get-AzureReservedIP

Add the below NetworkConfiguration section into ServiceConfiguration.Development.cscfg

<NetworkConfiguration>
<AddressAssignments>
<ReservedIPs>
<ReservedIP name="projectname-development-ip" />
</ReservedIPs>
</AddressAssignments>
</NetworkConfiguration>

Azure VM: Adding a Reserved IP address to an existing VM

At Build 2015 they announced this is now possible and VERY easy. Simply open Azure powershell and run this:

New-AzureReservedIP -ReservedIPName "ipname" -Location "West US" -ServiceName "somevm"

If you run this it will reserve an IP named "ipname" and associate it with the already deployed instance "somevm.cloudapp.net"

04-25 23:02
查看更多