IWithSubnet<ReturnT>.WithExistingSubnet(String, String) Method

Definition

Assigns the specified subnet to this resource.

C#
public ReturnT WithExistingSubnet(string parentNetworkResourceId, string subnetName);

Parameters

parentNetworkResourceId
String

parentNetworkResourceId the resource ID of the virtual network the subnet is part of

subnetName
String

subnetName the name of the subnet

Returns

ReturnT

the next stage of the definition

Applies to

Продукт Версії
Azure SDK for .NET Legacy