共用方式為


RoleAssignmentHelper Class

Definition

A utility class to operate on role assignments for a resource with service principal (object id). the method signature and behaviour can change in future releases.

public class RoleAssignmentHelper : Microsoft.Azure.Management.ResourceManager.Fluent.Core.IBeta
type RoleAssignmentHelper = class
    interface IBeta
Public Class RoleAssignmentHelper
Implements IBeta
Inheritance
RoleAssignmentHelper
Derived
Implements

Constructors

RoleAssignmentHelper(IGraphRbacManager, IIdProvider)

Creates RoleAssignmentHelper.

Properties

HasPendingRoleAssignments

True if there is role assigments pending to be commited.

Methods

CommitsRoleAssignmentsPendingActionAsync(CancellationToken)

Commit pending RBAC role assignment creation and removal.

WithAccessTo(String, BuiltInRole)

Specifies that applications running on an Azure service with this identity requires the access role with scope of access limited to an ARM resource.

WithAccessTo(String, String)

Specifies that applications running on an Azure service with this identity requires the access described in the given role definition with scope of access limited to an ARM resource.

WithAccessToCurrentResourceGroup(BuiltInRole)

Specifies that applications running on an Azure service with this identity requires the given access role with scope of access limited to the current resource group that the identity resides.

WithAccessToCurrentResourceGroup(String)

Specifies that applications running on an Azure service with this identity requires the given access role with scope of access limited to the current resource group that the identity resides.

WithoutAccessTo(IRoleAssignment)

Specifies that an access role assigned to the identity should be removed.

WithoutAccessTo(String, BuiltInRole)

Specifies that an access role assigned to the identity should be removed.

Applies to