NetworkSecurityGroupOperationsExtensions.GetForRoleAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the Network Security Group applied to a specific role.
public static System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Network.Models.NetworkSecurityGroupGetAssociationResponse> GetForRoleAsync (this Microsoft.WindowsAzure.Management.Network.INetworkSecurityGroupOperations operations, string serviceName, string deploymentName, string roleName);
static member GetForRoleAsync : Microsoft.WindowsAzure.Management.Network.INetworkSecurityGroupOperations * string * string * string -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Network.Models.NetworkSecurityGroupGetAssociationResponse>
<Extension()>
Public Function GetForRoleAsync (operations As INetworkSecurityGroupOperations, serviceName As String, deploymentName As String, roleName As String) As Task(Of NetworkSecurityGroupGetAssociationResponse)
Parameters
- operations
- INetworkSecurityGroupOperations
Reference to the Microsoft.WindowsAzure.Management.Network.INetworkSecurityGroupOperations.
- serviceName
- String
Required.
- deploymentName
- String
Required.
- roleName
- String
Required.
Returns
The Network Security Group associated with an entity: subnet, network interface or role.