Interface VirtualNetworkGateway.DefinitionStages.WithNetwork

    • Method Detail

      • 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