NetworkSecurityGroupOperationsExtensions.GetForSubnet 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 NetworkSecurityGroupGetForSubnetResponse GetForSubnet( 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: Microsoft.WindowsAzure.Management.Network.Models.NetworkSecurityGroupGetForSubnetResponseThe Network Security Group associated with a subnet.
Show: