NetworkSecurityGroupOperationsExtensions.GetForSubnet Method (INetworkSecurityGroupOperations, String, String)

 

Gets the Network Security Group applied to a specific subnet.

Namespace:   Microsoft.WindowsAzure.Management.Network
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.NetworkSecurityGroupGetForSubnetResponse

The Network Security Group associated with a subnet.

Return to top
Show: