Share via


RoleManagementPolicyAssignmentCollection.CreateOrUpdate Method

Definition

Create a role management policy assignment

  • Request Path: /{scope}/providers/Microsoft.Authorization/roleManagementPolicyAssignments/{roleManagementPolicyAssignmentName}
  • Operation Id: RoleManagementPolicyAssignments_Create
  • Default Api Version: 2020-10-01
  • Resource: RoleManagementPolicyAssignmentResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Authorization.RoleManagementPolicyAssignmentResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string roleManagementPolicyAssignmentName, Azure.ResourceManager.Authorization.RoleManagementPolicyAssignmentData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Authorization.RoleManagementPolicyAssignmentData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Authorization.RoleManagementPolicyAssignmentResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Authorization.RoleManagementPolicyAssignmentData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Authorization.RoleManagementPolicyAssignmentResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, roleManagementPolicyAssignmentName As String, data As RoleManagementPolicyAssignmentData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of RoleManagementPolicyAssignmentResource)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

roleManagementPolicyAssignmentName
String

The name of format {guid_guid} the role management policy assignment to upsert.

data
RoleManagementPolicyAssignmentData

Parameters for the role management policy assignment.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

roleManagementPolicyAssignmentName is an empty string, and was expected to be non-empty.

roleManagementPolicyAssignmentName or data is null.

Applies to