RoleAssignmentsOperationsExtensions.ValidateByIdAsync 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.
Validate a role assignment create or update operation by ID.
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Authorization.Models.ValidationResponse> ValidateByIdAsync(this Microsoft.Azure.Management.Authorization.IRoleAssignmentsOperations operations, string roleAssignmentId, Microsoft.Azure.Management.Authorization.Models.RoleAssignmentCreateParameters parameters, System.Threading.CancellationToken cancellationToken = default);
static member ValidateByIdAsync : Microsoft.Azure.Management.Authorization.IRoleAssignmentsOperations * string * Microsoft.Azure.Management.Authorization.Models.RoleAssignmentCreateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Authorization.Models.ValidationResponse>
<Extension()>
Public Function ValidateByIdAsync (operations As IRoleAssignmentsOperations, roleAssignmentId As String, parameters As RoleAssignmentCreateParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ValidationResponse)
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>
- parameters
- RoleAssignmentCreateParameters
Parameters for the role assignment.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Applies to
Azure SDK for .NET