Share via


IWithSubnet<ParentT>.WithSubnet(String, String) Method

Definition

Sets the virtual network ID and the subnet name for the SQL server Virtual Network Rule.

public Microsoft.Azure.Management.Sql.Fluent.SqlVirtualNetworkRule.Definition.IWithServiceEndpoint<ParentT> WithSubnet (string networkId, string subnetName);
abstract member WithSubnet : string * string -> Microsoft.Azure.Management.Sql.Fluent.SqlVirtualNetworkRule.Definition.IWithServiceEndpoint<'ParentT>
Public Function WithSubnet (networkId As String, subnetName As String) As IWithServiceEndpoint(Of ParentT)

Parameters

networkId
String

The virtual network ID to be used.

subnetName
String

The name of the subnet within the virtual network to be used.

Returns

Applies to