NetworkSecurityGroupOperationsExtensions.GetForSubnetAsync Method (INetworkSecurityGroupOperations, String, String)
Gets the Network Security Group applied to a specific subnet.
Assembly: Microsoft.WindowsAzure.Management.Network (in Microsoft.WindowsAzure.Management.Network.dll)
public static Task<NetworkSecurityGroupGetForSubnetResponse> GetForSubnetAsync( this INetworkSecurityGroupOperations operations, string virtualNetworkName, string subnetName )
Parameters
- operations
-
Type:
Microsoft.WindowsAzure.Management.Network.INetworkSecurityGroupOperations
Reference to the Microsoft.WindowsAzure.Management.Network.INetworkSecurityGroupOperations.
- virtualNetworkName
-
Type:
System.String
Required.
- subnetName
-
Type:
System.String
Required.
Return Value
Type: System.Threading.Tasks.Task<NetworkSecurityGroupGetForSubnetResponse>The Network Security Group associated with a subnet.
Show: