Share via


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IWithRoleAssignment 接口

定义

允许添加角色分配的服务主体定义。

public interface IWithRoleAssignment : Microsoft.Azure.Management.Graph.RBAC.Fluent.ServicePrincipal.Definition.IWithRoleAssignmentBeta, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IBeta
type IWithRoleAssignment = interface
    interface IWithRoleAssignmentBeta
    interface IBeta
Public Interface IWithRoleAssignment
Implements IBeta, IWithRoleAssignmentBeta
派生
实现

方法

WithNewRole(BuiltInRole, String)

为服务主体分配新角色。

(继承自 IWithRoleAssignmentBeta)
WithNewRoleInResourceGroup(BuiltInRole, IResourceGroup)

为服务主体分配新角色。

(继承自 IWithRoleAssignmentBeta)
WithNewRoleInSubscription(BuiltInRole, String)

为服务主体分配新角色。

(继承自 IWithRoleAssignmentBeta)

适用于