诊断部署上传与异步任务报错,定位失败原因并提供修复建议
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "diagnose-deployment" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/power-platform-skills/main/plugins/power-pages/skills/diagnose-deployment/SKILL.md 2. 保存为 ~/.claude/skills/diagnose-deployment/SKILL.md 3. 装好后重载技能,告诉我可以用了
请帮我诊断这次部署失败,汇总 PAC CLI 上传错误和 Dataverse 异步操作错误,并指出最可能的原因。
返回错误汇总、命中的已知问题模式,以及按优先级排序的排查建议。
这是我的部署上传日志,请分析其中的报错,匹配已知失败目录,并告诉我下一步该怎么修复。
输出日志中的关键报错、对应问题类型、可能成因与具体修复步骤。
如果这些部署错误属于可自动修复的问题,请直接执行修复;否则列出我需要手动处理的事项。
说明已自动修复的项目、未修复项及其原因,并给出后续处理清单。
Plugin check: Run
node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"— if it outputs a message, show it to the user before proceeding.
Surfaces and pattern-matches deployment errors against a known failure catalog. For each identified error with an available auto-fix, asks explicit user permission before applying any changes. Never auto-applies fixes without confirmation.
powerpages.config.jsonCreate all tasks upfront at the start of this phase.
Tasks to create:
Steps:
powerpages.config.json in cwd and parent directoriespac --version (report version or "not installed")pac env who (report environment URL or "not authenticated")az account show (report subscription or "not logged in")Auth failures are non-blocking — report them as findings, continue collecting other artifacts.
Reference:
${CLAUDE_PLUGIN_ROOT}/references/alm-docs-grounding.md
Cap this step at ~30 seconds. If MCP search / fetch errors out, log a one-line note and continue — this skill must remain runnable offline.
microsoft_docs_search with the query: Power Pages deployment errors solution import troubleshooting.https://learn.microsoft.com/en-us/power-platform/alm/solution-concepts-alm (and at most one sister page on troubleshooting or known import errors) in parallel via microsoft_docs_fetch.${CLAUDE_PLUGIN_ROOT}/references/deployment-error-catalog.md and flag any new error patterns not yet captured in the catalog.Gather all available context:
powerpages.config.json — extract siteName, websiteRecordId, compiledPath.powerpages-site/ folder exists.powerpages-site/*-manifest.yml — list all found, note their environment hostnames.solution-manifest.json exists (for solution-related diagnostics)docs/alm/last-import.json exists (for recent import failures){compiledPath}/ exists and is non-emptyReport: "Found project: {siteName}. Artifacts collected."
Re-run pac pages upload-code-site in capture mode to get fresh error output:
pac pages upload-code-site --rootPath "." 2>&1
Note: This intentionally triggers the upload to capture any errors. If the upload succeeds cleanly, that is also a valid diagnostic result ("no errors found").
Capture stdout+stderr as a single string. Pass to scripts/parse-deployment-errors.js:
echo "{escaped-output}" | node "${CLAUDE_PLUGIN_ROOT}/scripts/parse-deployment-errors.js"
Parse the JSON findings array. If the upload succeeded with no errors, note this and skip to Phase 5 with an empty findings list.
Only run if .solution-manifest.json exists.
…
帮助你为当前协作会话配置 Canvas Authoring MCP 服务器并排查连接问题
帮助用户将 canvas-apps 插件问题整理并提交为规范的 GitHub issue。
为 Power Apps 代码应用接入 Azure DevOps 连接器,便于查询工单、提报缺陷与管理流水线。
帮助你为 Power Apps 代码应用添加数据源或连接器,并引导到合适操作流程。
为 Power Apps 代码应用快速接入任意 Power Platform 连接器。
为 Power Apps 代码应用添加 Excel Online 连接器,便于读写 OneDrive 或 SharePoint 中的表格数据。
将现有 Power Pages 代码站点构建并部署到目标环境,完成认证与上传流程。
将 Dataverse 解决方案包导入目标环境,支持分阶段导入与依赖检查。
帮助诊断 Microsoft Fabric 中 Spark 作业失败、会话异常与性能瓶颈。
帮助你定位常见故障、兼容性问题并诊断状态机异常
根据数据模型方案为 Power Pages 站点创建 Dataverse 表、字段与关系。
帮助你将 Power Pages Web API 集成到前端,并完成权限配置与部署上线。