A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.
PCF deployment reference
Use this reference with /pcf deploy flow. Microsoft Learn covers PCF import and solution ALM at https://learn.microsoft.com/en-us/power-apps/developer/component-framework/import-custom-controls and https://learn.microsoft.com/en-us/power-platform/alm/.
Push vs release package
| Path | Use for | Writes | Notes |
|---|---|---|---|
pcf-push.js |
Developer verification in a safe environment | Registers the control and publishes all pending customizations | Requires consent for env origin, solution/prefix and publish-all side effect. |
| Managed solution package | Test/prod release | Imports the solution package | Use pipeline secrets/service connections and explicit solution versions. |
Development push:
node "${PLUGIN_ROOT}/scripts/pcf-push.js" --project <dir> --env <url> (--solution <uniqueName> | --publisher-prefix <p>) [--incremental] [--verbosity minimal|normal|detailed|diagnostic] [--allow-dev-bundle] [--no-verify]
pcf-push.js wraps pac pcf push --environment; the skill obtains consent because pac pcf push publishes all pending customizations in the environment.
When the push fails only because its final publish-all step was chosen as a SQL deadlock victim (SQL 1205), the import has already succeeded, so pcf-push.js sends that publish again (Web API PublishAllXml) at most twice, 5 and 15 seconds apart. It never re-runs pac, never re-sends after another error (a 401 or a 429 included) or a lost answer, sends each attempt exactly once, and reports publishAttempts (pac's attempt plus the publishes it actually sent) whenever it tried. See pcf-troubleshooting.md.
Boolean switches are bare. Use --allow-dev-bundle only when intentionally deploying a development bundle, and --no-verify only when intentionally skipping registration read-back; valued forms such as --allow-dev-bundle=false and --no-verify=false fail as usage errors.
Versions and cache busting
- PCF manifest versions are
x.y.zand identify the control bundle. - Solution versions are
a.b.c.dand identify the package. - Bump the manifest before each deploy and bump the solution before release import.
- If old code still runs: publish the target form/app, verify the registered and bound versions, hard refresh the browser, and confirm the user is on the intended form/app.
Managed vs unmanaged
Use unmanaged solutions in development and managed packages for downstream release. Do not directly edit managed controls/forms in target environments; update the source solution and import a new managed version.
Publisher prefix consistency
The registered control name includes publisher prefix plus namespace and constructor. Use a consistent solution publisher across environments. Changing prefixes creates a distinct control and existing bindings will not automatically follow it.
Packaging commands
pac solution init --publisher-name <PublisherName> --publisher-prefix <prefix>
pac solution add-reference --path <pcf-project-dir>
dotnet build -c Release -p:SolutionPackageType=Managed
For component-only packages, only the control travels. For component plus bindings, include the forms/views/apps that own the bindings in the solution. Microsoft Learn solution ALM guidance applies: https://learn.microsoft.com/en-us/power-platform/alm/solution-concepts-alm.
Pipeline examples
The full examples are committed as files and should be kept as the source of truth:
plugins/pcf/pipelines/github-actions.ymlplugins/pcf/pipelines/azure-devops.yml
They are examples to adapt, not drop-in pipelines. Both follow the same stage shape:
- Install Power Platform tooling first.
- Build the PCF project.
- Run tests/gates.
- Pack the managed solution.
- Publish the solution artifact.
- Import the artifact into the target environment.
Short excerpts:
# GitHub Actions
- uses: microsoft/powerplatform-actions/actions-install@v1
# Azure DevOps
- task: microsoft-IsvExpTools.PowerPlatform-BuildTools.tool-installer.PowerPlatformToolInstaller@2
Power Platform GitHub Actions are documented at https://learn.microsoft.com/en-us/power-platform/alm/devops-github-actions and available actions at https://learn.microsoft.com/en-us/power-platform/alm/devops-github-available-actions. Power Platform Build Tools are documented at https://learn.microsoft.com/en-us/power-platform/alm/devops-build-tools and task names at https://learn.microsoft.com/en-us/power-platform/alm/devops-build-tool-tasks.
The import step needs the user's own service connection or credentials stored in the pipeline's secret store. Do not commit credentials, tenant ids, environment-specific URLs, or organization-specific service connection names.
Verification after release
Run verify-pcf.js, then browser smoke where possible. Inventory where-used output is registered solution dependencies only — not proof of Liquid or text references; an empty result is not "safe to delete".