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

无法找到密钥,如何连接Azure Cosmos DB(Postgres)与Azure AI搜索服务数据源?

解决Azure Cosmos DB (PostgreSQL) 连接Azure AI搜索服务的密钥问题
  • Azure Cosmos DB for PostgreSQL不使用账户级密钥,它采用PostgreSQL原生认证机制,所以你找不到NoSQL类型Cosmos DB的账户密钥入口是正常的。
  • 连接Azure AI搜索服务数据源时,需使用PostgreSQL的数据库用户密码,而非Cosmos DB账户密钥或搜索服务密钥,具体操作步骤:
    1. 进入Azure Cosmos DB for PostgreSQL账户的「连接字符串」页面,获取PostgreSQL格式的连接字符串(示例:postgres://<username>:<password>@<hostname>:<port>/<dbname>)
    2. 从连接字符串中提取出用户名(<username>,默认是citus或自定义创建的用户)、密码(<password>)、服务器地址(<hostname>)、端口(<port>)和数据库名(<dbname>)
    3. 在Azure AI搜索服务创建数据源时,选择「Azure Cosmos DB for PostgreSQL」类型,填入以下信息:
      • 服务器名称:提取的<hostname>
      • 数据库名称:提取的<dbname>
      • 用户名:提取的<username>
      • 密码:提取的<password>
      • 端口号:默认5432,与连接字符串内一致
    4. 测试连接通过后,即可创建索引器同步PostgreSQL数据库的数据

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.05 21:57:03