list-connections
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese📋 Shared Instructions: shared-instructions.md - Cross-cutting concerns (Windows CLI compatibility, memory bank, etc.).
📋 通用说明:shared-instructions.md - 跨领域注意事项(Windows CLI兼容性、内存库等)。
List Connections
列出连接
Lists all Power Platform connections in the default environment using the Power Platform CLI ().
pac使用Power Platform CLI()列出默认环境中的所有Power Platform连接。
pacWorkflow
工作流程
- Fetch Connections → 2. Present Results
- 获取连接 → 2. 展示结果
Step 1: Fetch Connections
步骤1:获取连接
bash
pwsh -NoProfile -Command "pac connection list"If is not authenticated, tell the user to run and try again.
pacpwsh -NoProfile -Command "pac auth create"Other failures:
- Non-zero exit for any reason other than auth: Report the exact output. STOP.
- No output or timeout: Run to verify pac can reach the environment, then retry once.
pwsh -NoProfile -Command "pac env list"
bash
pwsh -NoProfile -Command "pac connection list"如果未通过身份验证,请告知用户运行后重试。
pacpwsh -NoProfile -Command "pac auth create"其他故障处理:
- 除身份验证外的任何原因导致非零退出:报告确切输出。停止操作。
- 无输出或超时:运行以验证pac是否能连接到环境,然后重试一次。
pwsh -NoProfile -Command "pac env list"
Step 2: Present Results
步骤2:展示结果
Show the connection list to the user. The Connection ID is what goes into when adding a data source.
-c <connection-id>If the needed connector is missing:
- Share the direct Connections URL using the active environment ID from context (from or a prior step):
power.config.json→ + New connectionhttps://make.powerapps.com/environments/<environment-id>/connections - Search for and create the connector, then complete the sign-in/consent flow
- Re-run to get the new connection ID
/list-connections
向用户展示连接列表。在添加数据源时,Connection ID需要填入参数中。
-c <connection-id>若所需连接器缺失:
- 使用上下文(来自或之前步骤)中的活动环境ID分享连接的直接URL:
power.config.json→ + 新建连接https://make.powerapps.com/environments/<environment-id>/connections - 搜索并创建连接器,然后完成登录/授权流程
- 重新运行以获取新的连接ID
/list-connections