IWithSubnet<ParentT>.WithExistingSubnet Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WithExistingSubnet(ISubnet) |
Specifies an existing subnet the virtual network gateway should be part of and get its private IP address from. |
WithExistingSubnet(INetwork, String) |
Specifies an existing subnet the virtual network gateway should be part of and get its private IP address from. |
WithExistingSubnet(ISubnet)
Specifies an existing subnet the virtual network gateway should be part of and get its private IP address from.
public Microsoft.Azure.Management.Network.Fluent.VirtualNetworkGatewayIPConfiguration.Definition.IWithAttach<ParentT> WithExistingSubnet (Microsoft.Azure.Management.Network.Fluent.ISubnet subnet);
abstract member WithExistingSubnet : Microsoft.Azure.Management.Network.Fluent.ISubnet -> Microsoft.Azure.Management.Network.Fluent.VirtualNetworkGatewayIPConfiguration.Definition.IWithAttach<'ParentT>
Public Function WithExistingSubnet (subnet As ISubnet) As IWithAttach(Of ParentT)
Parameters
- subnet
- ISubnet
An existing subnet.
Returns
Applies to
WithExistingSubnet(INetwork, String)
Specifies an existing subnet the virtual network gateway should be part of and get its private IP address from.
public Microsoft.Azure.Management.Network.Fluent.VirtualNetworkGatewayIPConfiguration.Definition.IWithAttach<ParentT> WithExistingSubnet (Microsoft.Azure.Management.Network.Fluent.INetwork network, string subnetName);
abstract member WithExistingSubnet : Microsoft.Azure.Management.Network.Fluent.INetwork * string -> Microsoft.Azure.Management.Network.Fluent.VirtualNetworkGatewayIPConfiguration.Definition.IWithAttach<'ParentT>
Public Function WithExistingSubnet (network As INetwork, subnetName As String) As IWithAttach(Of ParentT)
Parameters
- network
- INetwork
An existing virtual network.
- subnetName
- String
The name of a subnet within the selected network.