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

RoleAssignmentHelper.WithAccessToCurrentResourceGroup 方法

定义

重载

WithAccessToCurrentResourceGroup(BuiltInRole)

指定在具有此标识的 Azure 服务上运行的应用程序需要给定的访问角色,其访问范围仅限于标识所在的当前资源组。

WithAccessToCurrentResourceGroup(String)

指定在具有此标识的 Azure 服务上运行的应用程序需要给定的访问角色,其访问范围仅限于标识所在的当前资源组。

WithAccessToCurrentResourceGroup(BuiltInRole)

指定在具有此标识的 Azure 服务上运行的应用程序需要给定的访问角色,其访问范围仅限于标识所在的当前资源组。

public Microsoft.Azure.Management.Graph.RBAC.Fluent.RoleAssignmentHelper WithAccessToCurrentResourceGroup (Microsoft.Azure.Management.Graph.RBAC.Fluent.BuiltInRole role);
member this.WithAccessToCurrentResourceGroup : Microsoft.Azure.Management.Graph.RBAC.Fluent.BuiltInRole -> Microsoft.Azure.Management.Graph.RBAC.Fluent.RoleAssignmentHelper
Public Function WithAccessToCurrentResourceGroup (role As BuiltInRole) As RoleAssignmentHelper

参数

role
BuiltInRole

要分配给标识的访问角色。

返回

适用于

WithAccessToCurrentResourceGroup(String)

指定在具有此标识的 Azure 服务上运行的应用程序需要给定的访问角色,其访问范围仅限于标识所在的当前资源组。

public Microsoft.Azure.Management.Graph.RBAC.Fluent.RoleAssignmentHelper WithAccessToCurrentResourceGroup (string roleDefinitionId);
member this.WithAccessToCurrentResourceGroup : string -> Microsoft.Azure.Management.Graph.RBAC.Fluent.RoleAssignmentHelper
Public Function WithAccessToCurrentResourceGroup (roleDefinitionId As String) As RoleAssignmentHelper

参数

roleDefinitionId
String

要分配给标识的访问角色定义。

返回

适用于