Share via


PolicyAssignmentsOperationsExtensions.Get Method

Definition

Retrieves a policy assignment.

public static Microsoft.Azure.Management.ResourceManager.Models.PolicyAssignment Get (this Microsoft.Azure.Management.ResourceManager.IPolicyAssignmentsOperations operations, string scope, string policyAssignmentName);
static member Get : Microsoft.Azure.Management.ResourceManager.IPolicyAssignmentsOperations * string * string -> Microsoft.Azure.Management.ResourceManager.Models.PolicyAssignment
<Extension()>
Public Function Get (operations As IPolicyAssignmentsOperations, scope As String, policyAssignmentName As String) As PolicyAssignment

Parameters

operations
IPolicyAssignmentsOperations

The operations group for this extension method.

scope
String

The scope of the policy assignment. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'

policyAssignmentName
String

The name of the policy assignment to get.

Returns

Remarks

This operation retrieves a single policy assignment, given its name and the scope it was created at.

Applies to