Interface VirtualNetworkGateway.DefinitionStages.WithNetwork

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

public static interface VirtualNetworkGateway.DefinitionStages.WithNetwork
The stage of the virtual network gateway definition allowing to specify the virtual network.
  • Method Details

    • withNewNetwork

      Create a new virtual network to associate with the virtual network gateway, based on the provided definition.
      Parameters:
      creatable - a creatable definition for a new virtual network
      Returns:
      the next stage of the definition
    • withNewNetwork

      VirtualNetworkGateway.DefinitionStages.WithGatewayType withNewNetwork(String name, String addressSpace, String subnetAddressSpaceCidr)
      Creates a new virtual network to associate with the virtual network gateway. the virtual network will be created in the same resource group and region as of parent virtual network gateway, it will be created with the specified address space and a subnet for virtual network gateway.
      Parameters:
      name - the name of the new virtual network
      addressSpace - the address space for the virtual network
      subnetAddressSpaceCidr - the address space for the subnet
      Returns:
      the next stage of the definition
    • withNewNetwork

      VirtualNetworkGateway.DefinitionStages.WithGatewayType withNewNetwork(String addressSpaceCidr, String subnetAddressSpaceCidr)
      Creates a new virtual network to associate with the virtual network gateway. the virtual network will be created in the same resource group and region as of parent virtual network gateway, it will be created with the specified address space and a default subnet for virtual network gateway.
      Parameters:
      addressSpaceCidr - the address space for the virtual network
      subnetAddressSpaceCidr - the address space for the subnet
      Returns:
      the next stage of the definition
    • withExistingNetwork

      Associate an existing virtual network with the virtual network gateway.
      Parameters:
      network - an existing virtual network
      Returns:
      the next stage of the definition