Interface VirtualMachine.DefinitionStages.WithPublicIPAddress

All Known Subinterfaces:
VirtualMachine.DefinitionManaged, VirtualMachine.DefinitionManagedOrUnmanaged, VirtualMachine.DefinitionShared, VirtualMachine.DefinitionUnmanaged
Enclosing interface:
VirtualMachine.DefinitionStages

public static interface VirtualMachine.DefinitionStages.WithPublicIPAddress
The stage of a virtual machine definition allowing to associate a public IP address with its primary network interface.
  • Method Details

    • withNewPrimaryPublicIPAddress

      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

      VirtualMachine.DefinitionStages.WithProximityPlacementGroup 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
    • withExistingPrimaryPublicIPAddress

      VirtualMachine.DefinitionStages.WithProximityPlacementGroup 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
    • withoutPrimaryPublicIPAddress

      Specifies that the VM should not have a public IP address.
      Returns:
      the next stage of the definition