SALG : 1-800-867-1389
Dette indhold er ikke tilgængeligt på dit sprog, men her er den engelske version.

Instance-level Public IP Addresses

Updated: November 11, 2014

An instance-level public IP (PIP) is an IP address that you can assign directly to your VM, rather than to the cloud service that your VM resides within. This doesn’t take the place of the VIP that is assigned to your cloud service. Rather, it’s additional IP address that you can use to connect to your VM. You can assign one PIP for each VM. You can use up to 5 PIPs per subscription.

Azure PIP

If you want to be able to connect to your VM or role instance by an IP address assigned directly to it, rather than using the cloud service VIP:<portnumber>, request a PIP for your VM or your role instance.

  • Passive FTP - By having a PIP on your VM, you can receive traffic on just about any port, you will not have to open up an endpoint to receive traffic. This enables scenarios like passive FTP where the ports are chose dynamically.

  • Outbound IP - Outbound traffic originating from the VM goes out with PIP as the source and this uniquely identifies the VM to external entities.

  <VirtualNetworkSite name="VNet"/>
    <InstanceAddress roleName="VMRolePersisted">
        <Subnet name="Subnet1"/>
        <Subnet name="Subnet2"/>
        <PublicIP name="public-ip-name"/>

You can use either Windows PowerShell or Rest APIs to create an instance-level PIP. Use the Windows PowerShell cmdlet samples below to work with PIPs.

New-AzureVMConfig -Name "FTPInstance" -InstanceSize Small -ImageName $images[50].ImageName | Add-AzureProvisioningConfig -Windows -AdminUsername narayan -Password abcd123 | Set-AzurePublicIP -PublicIPName "ftpip" | New-AzureVM -ServiceName "FTPinAzure" -Location "North Central US"

Get-AzureVM -ServiceName FTPInAzure -Name FTPInstance | Set-AzurePublicIP -PublicIPName ftpip | Update-AzureVM

Get-AzureRole -ServiceName FTPInAzure -Slot Production -InstanceDetails

Get-AzureVM -ServiceName FTPInAzure -Name FTPInstance | Remove-AzurePublicIP | Update-AzureVM

See Also

Syntes du, dette var nyttigt?
(1500 tegn tilbage)
Tak for din feedback
© 2014 Microsoft