Share via


RoleAssignmentsOperationsExtensions.DeleteByIdAsync Method

Definition

Delete a role assignment by ID.

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

Parameters

operations
IRoleAssignmentsOperations

The operations group for this extension method.

roleAssignmentId
String

The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>

tenantId
String

Tenant ID for cross-tenant request

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to