Share via


DenyAssignmentsOperationsExtensions.GetByIdAsync Method

Definition

Gets a deny assignment by ID.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Authorization.Models.DenyAssignment> GetByIdAsync (this Microsoft.Azure.Management.Authorization.IDenyAssignmentsOperations operations, string denyAssignmentId, System.Threading.CancellationToken cancellationToken = default);
static member GetByIdAsync : Microsoft.Azure.Management.Authorization.IDenyAssignmentsOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Authorization.Models.DenyAssignment>
<Extension()>
Public Function GetByIdAsync (operations As IDenyAssignmentsOperations, denyAssignmentId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DenyAssignment)

Parameters

operations
IDenyAssignmentsOperations

The operations group for this extension method.

denyAssignmentId
String

The fully qualified deny assignment ID. For example, use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for subscription level deny assignments, or /providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for tenant level deny assignments.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to