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

托管标识创建Service Bus API连接的ARM模板配置NamespaceEndpoint

NamespaceEndpoint需要配置在API连接资源的properties.parameterValueSet.values字段下,对应键名是namespaceEndpoint。

你当前用的managedIdentityAuth认证模式不会自动读取Service Bus命名空间的端点地址,必须显式传入这个值,部署后连接才会完整可用,修正后的资源配置代码如下:

"resources": [
  {
    "type": "MICROSOFT.WEB/CONNECTIONS",
    "apiVersion": "2018-07-01-preview",
    "name": "[parameters('connections_servicebus_name')]",
    "location": "[parameters('connections_servicebus_location')]",
    "kind": "V1",
    "properties": {
      "alternativeParameterValues": {},
      "displayName": "[parameters('connections_servicebus_displayname')]",
      "api": {
        "name": "servicebus",
        "displayName": "[parameters('connections_servicebus_displayname')]",
        "id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', parameters('connections_servicebus_location'), '/managedApis/servicebus')]",
        "type": "Microsoft.Web/locations/managedApis"
      },
      "customParameterValues": {},
      "parameterValueSet": {
        "name": "managedIdentityAuth",
        "values": {
          "namespaceEndpoint": {
            "value": "[parameters('servicebus_namespace_endpoint')]"
          }
        }
      }
    }
  }
]

注意事项:

  • 建议把Service Bus端点单独定义为模板参数传入,格式为sb://<你的Service Bus命名空间名>.servicebus.windows.net/,不要漏了地址末尾的斜杠
  • 用这个模板部署完成后,Azure Portal里的连接配置页会自动填充命名空间端点字段,绑定该连接的Logic App不需要手动补配置就能正常运行

内容的提问来源于stack exchange,提问作者Mad Druid

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.08.27 15:06:21