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

IWithSystemAssignedIdentityBasedAccess<FluentT>.WithSystemAssignedIdentityBasedAccessTo 方法

定义

重载

WithSystemAssignedIdentityBasedAccessTo(String, BuiltInRole)

指定 (本地) 标识分配的 Web 应用的系统应具有由资源 ID 标识的 ARM 资源上的角色) 描述的给定访问权限 (。 在 Web 应用上运行的应用程序将具有相同的权限 (角色) ARM 资源。

WithSystemAssignedIdentityBasedAccessTo(String, String)

指定 (本地) 标识分配的 Web 应用的系统应具有资源 ID 标识的 ARM 资源上的角色定义) 描述的访问权限 (。 在 Web 应用上运行的应用程序将具有相同的权限 (角色) ARM 资源。

WithSystemAssignedIdentityBasedAccessTo(String, BuiltInRole)

指定 (本地) 标识分配的 Web 应用的系统应具有由资源 ID 标识的 ARM 资源上的角色) 描述的给定访问权限 (。 在 Web 应用上运行的应用程序将具有相同的权限 (角色) ARM 资源。

public Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Update.IUpdate<FluentT> WithSystemAssignedIdentityBasedAccessTo (string resourceId, Microsoft.Azure.Management.Graph.RBAC.Fluent.BuiltInRole role);
abstract member WithSystemAssignedIdentityBasedAccessTo : string * Microsoft.Azure.Management.Graph.RBAC.Fluent.BuiltInRole -> Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Update.IUpdate<'FluentT>
Public Function WithSystemAssignedIdentityBasedAccessTo (resourceId As String, role As BuiltInRole) As IUpdate(Of FluentT)

参数

resourceId
String

资源的 ARM 标识符。

role
BuiltInRole

要分配给 Web 应用的本地标识的访问角色。

返回

适用于

WithSystemAssignedIdentityBasedAccessTo(String, String)

指定 (本地) 标识分配的 Web 应用的系统应具有资源 ID 标识的 ARM 资源上的角色定义) 描述的访问权限 (。 在 Web 应用上运行的应用程序将具有相同的权限 (角色) ARM 资源。

public Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Update.IUpdate<FluentT> WithSystemAssignedIdentityBasedAccessTo (string resourceId, string roleDefinitionId);
abstract member WithSystemAssignedIdentityBasedAccessTo : string * string -> Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Update.IUpdate<'FluentT>
Public Function WithSystemAssignedIdentityBasedAccessTo (resourceId As String, roleDefinitionId As String) As IUpdate(Of FluentT)

参数

resourceId
String

以 ARM 资源 ID 格式表示的访问范围。

roleDefinitionId
String

要分配给 Web 应用的本地标识的访问角色定义。

返回

适用于