你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

VirtualMachine.DefinitionStages.WithPrivateIP Interface

public interface WithPrivateIP

The stage of a virtual machine definition allowing to specify a private IP address within a virtual network subnet.

Method Summary

Modifier and Type Method and Description
VirtualMachine.DefinitionStages.WithPublicIPAddress withPrimaryPrivateIPAddressDynamic()

Enables dynamic private IP address allocation within the specified existing virtual network subnet for the VM's primary network interface.

VirtualMachine.DefinitionStages.WithPublicIPAddress withPrimaryPrivateIPAddressStatic(String staticPrivateIPAddress)

Assigns the specified static private IP address within the specified existing virtual network subnet to the VM's primary network interface.

Method Details

withPrimaryPrivateIPAddressDynamic

public WithPublicIPAddress withPrimaryPrivateIPAddressDynamic()

Enables dynamic private IP address allocation within the specified existing virtual network subnet for the VM's primary network interface.

Returns:

the next stage of the definition

withPrimaryPrivateIPAddressStatic

public WithPublicIPAddress withPrimaryPrivateIPAddressStatic(String staticPrivateIPAddress)

Assigns the specified static private IP address within the specified existing virtual network subnet to the VM's primary network interface.

Parameters:

staticPrivateIPAddress - a static IP address within the specified subnet

Returns:

the next stage of the definition

Applies to