诊断部署上传与异步任务报错,定位失败原因并提供修复建议
复制安装指令,让 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.
…
帮助你将 Power Automate 云端流程接入 Power Pages 站点并生成调用代码
对已部署的 Power Pages 站点执行安全扫描并生成通俗风险摘要。
帮助你快速搭建 Power Platform 管道,实现 Power Pages 自动化部署。
检查并配置 Power Pages 站点安全响应头,定位风险并指导修复设置。
对 Power Pages 站点执行端到端安全审查,并汇总生成完整 HTML 报告。
为 Power Pages 多环境部署生成并执行可审核的 ALM 规划方案。
将现有 Power Pages 代码站点构建并部署到目标环境,完成认证与上传流程。
将 Dataverse 解决方案包导入目标环境,支持分阶段导入与依赖检查。
探测线上 API 故障并给出根因、证据与置信度
让 AI 连接 Microsoft Dataverse,完成记录查询、新增、更新与删除等日常操作
帮助你定位常见故障、兼容性问题并诊断状态机异常
根据数据模型方案为 Power Pages 站点创建 Dataverse 表、字段与关系。