帮助用户在 Power Platform 环境中激活并开通 Power Pages 网站。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "activate-site" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/power-platform-skills/main/plugins/power-pages/skills/activate-site/SKILL.md 2. 保存为 ~/.claude/skills/activate-site/SKILL.md 3. 装好后重载技能,告诉我可以用了
请在指定的 Power Platform 环境中激活并开通这个 Power Pages 网站,返回执行状态、网站标识和后续访问建议。
返回网站激活与开通结果,包括状态、关键标识信息及后续操作建议。
帮我检查这个 Power Pages 网站是否已启用;如果没有,请执行激活与开通,并说明结果。
说明站点当前状态,并在需要时完成启用与开通,反馈最终结果。
在目标 Power Platform 环境中为该 Power Pages 网站执行开通流程,并输出是否成功、可能的前置条件和错误信息。
提供开通执行结果,包含成功与否、前置条件提示及错误详情。
Plugin check: Run
node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"— if it outputs a message, show it to the user before proceeding.
Provision a new Power Pages website in a Power Platform environment via the Power Platform REST API.
Prerequisite: This skill expects an existing Power Pages code site created via
/create-site. Run that skill first if the site does not exist yet.
pac auth who.Initial request: $ARGUMENTS
Goal: Ensure PAC CLI is installed and authenticated, and verify the user is logged in to Azure CLI (scripts handle token acquisition internally).
Run pac help to check if the PAC CLI is installed and available on the system PATH.
pac help
If the command fails (command not found / not recognized):
Tell the user: "PAC CLI is not installed. You can install it by running:"
dotnet tool install --global Microsoft.PowerApps.CLI.Tool
If dotnet is also not available, direct the user to https://aka.ms/PowerPlatformCLI for full installation instructions.
After installation, verify by running pac help again.
Run pac auth who to check current authentication status.
pac auth who
If authenticated: Extract these values from the output:
Environment ID:Organization ID: (this is the Dataverse org ID)Cloud: (e.g., Public, UsGov, UsGovHigh, UsGovDod, China)If not authenticated: Follow the same authentication flow as deploy-site — ask the user for their environment URL and run pac auth create --environment "<URL>".
Verify the user is logged in to Azure CLI (the activation scripts acquire tokens internally):
az account show
If az is not installed or not logged in: Instruct the user to install Azure CLI and run az login --allow-no-subscriptions (this form works whether or not the user has an Azure subscription — the activation flow only needs an AAD token).
Before gathering parameters, check whether the site is already activated by running the shared activation status script:
node "${CLAUDE_PLUGIN_ROOT}/scripts/check-activation-status.js" --projectRoot "<PROJECT_ROOT>"
Where <PROJECT_ROOT> is the directory containing powerpages.config.json or .powerpages-site folder.
Evaluate the JSON result:
activated is true: Inform the user their site is already activated at websiteUrl. Suggest next steps (Phase 5.3) and stop — do NOT proceed to Phase 2.activated is false: Proceed to Phase 2.error is present: Proceed to Phase 2 (do not block the activation flow).…
为 Power Apps 代码应用接入 Azure DevOps 连接器,便于查询工单、提报缺陷与管理流水线。
帮助你从需求梳理到部署上线,快速创建全新的 Power Pages 代码网站。