You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

为AppService授予Bing资源访问权限应配置的IAM角色咨询

为AppService授予Bing资源权限的IAM角色及ARM模板配置

要给AppService授予访问Microsoft.Bing/accounts@2020-06-10类型Bing资源的权限,需根据实际需求选择以下内置角色,对应的角色ID如下:

  • Bing Search Service Contributor(读写权限):角色ID为 b99c2118-1f07-4f25-9562-013d4873b3d9
  • Bing Search Service Reader(只读权限):角色ID为 24f8edb6-1668-4659-b5e2-40bb5f3a7d7e

将ARM模板中的xxx-xxx-xxx-xxx-xxx替换为上述对应ID即可,示例如下(以Contributor角色为例):

var role = subscriptionResourceId(
  'Microsoft.Authorization/roleDefinitions',
  'b99c2118-1f07-4f25-9562-013d4873b3d9'
)

resource searchServiceIndexAppPermissions 'Microsoft.Authorization/roleAssignments@2020-04-01-preview' = {
  name: guid(bingSearch.id, webApp.name, role)
  scope: bingSearch
  properties: {
    principalId: webApp.identity.principalId
    principalType: 'ServicePrincipal'
    roleDefinitionId: role
  }
}

内容的提问来源于stack exchange,提问作者Kuniyoshi KAMIMURA

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.22 06:54:57