Interface NetworkInterface.DefinitionStages.WithPrimaryNetwork

All Known Subinterfaces:
NetworkInterface.Definition
Enclosing interface:
NetworkInterface.DefinitionStages

public static interface NetworkInterface.DefinitionStages.WithPrimaryNetwork
The stage of the network interface definition allowing to specify the virtual network for primary IP configuration.
  • Method Details

    • withNewPrimaryNetwork

      Create a new virtual network to associate with the network interface's primary IP configuration, based on the provided definition.
      Parameters:
      creatable - a creatable definition for a new virtual network
      Returns:
      the next stage of the definition
    • withNewPrimaryNetwork

      NetworkInterface.DefinitionStages.WithPrimaryPrivateIP withNewPrimaryNetwork(String name, String addressSpace)
      Creates a new virtual network to associate with the network interface's primary IP configuration.

      The virtual network will be created in the same resource group and region as of network interface, it will be created with the specified address space and a default subnet covering the entirety of the network IP address space.

      Parameters:
      name - the name of the new virtual network
      addressSpace - the address space for rhe virtual network
      Returns:
      the next stage of the definition
    • withNewPrimaryNetwork

      Creates a new virtual network to associate with the network interface's primary IP configuration.

      The virtual network will be created in the same resource group and region as of network interface, it will be created with the specified address space and a default subnet covering the entirety of the network IP address space.

      Parameters:
      addressSpace - the address space for the virtual network
      Returns:
      the next stage of the definition
    • withExistingPrimaryNetwork

      Associate an existing virtual network with the network interface's primary IP configuration.
      Parameters:
      network - an existing virtual network
      Returns:
      the next stage of the definition