Compartir vía


VirtualMachine.DefinitionStages.WithPublicIPAddress Interface

public interface WithPublicIPAddress

The stage of a virtual machine definition allowing to associate a public IP address with its primary network interface.

Method Summary

Modifier and Type Method and Description
VirtualMachine.DefinitionStages.WithOS withExistingPrimaryPublicIPAddress(PublicIPAddress publicIPAddress)

Associates an existing public IP address with the VM's primary network interface.

VirtualMachine.DefinitionStages.WithOS withNewPrimaryPublicIPAddress(Creatable<PublicIPAddress> creatable)

Creates a new public IP address to associate with the VM's primary network interface.

VirtualMachine.DefinitionStages.WithOS withNewPrimaryPublicIPAddress(String leafDnsLabel)

Creates a new public IP address in the same region and resource group as the resource, with the specified DNS label and associates it with the VM's primary network interface.

The internal name for the public IP address will be derived from the DNS label.

VirtualMachine.DefinitionStages.WithOS withoutPrimaryPublicIPAddress()

Specifies that the VM should not have a public IP address.

Method Details

withExistingPrimaryPublicIPAddress

public WithOS withExistingPrimaryPublicIPAddress(PublicIPAddress publicIPAddress)

Associates an existing public IP address with the VM's primary network interface.

Parameters:

publicIPAddress - an existing public IP address

Returns:

the next stage of the definition

withNewPrimaryPublicIPAddress

public WithOS withNewPrimaryPublicIPAddress(Creatable creatable)

Creates a new public IP address to associate with the VM's primary network interface.

Parameters:

creatable - a creatable definition for a new public IP

Returns:

the next stage of the definition

withNewPrimaryPublicIPAddress

public WithOS withNewPrimaryPublicIPAddress(String leafDnsLabel)

Creates a new public IP address in the same region and resource group as the resource, with the specified DNS label and associates it with the VM's primary network interface.

The internal name for the public IP address will be derived from the DNS label.

Parameters:

leafDnsLabel - a leaf domain label

Returns:

the next stage of the definition

withoutPrimaryPublicIPAddress

public WithOS withoutPrimaryPublicIPAddress()

Specifies that the VM should not have a public IP address.

Returns:

the next stage of the definition

Applies to