export-solution

Exports a Dataverse solution containing Power Pages site components as a verified zip file.

808|167|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/microsoft/power-platform-skills --skill export-solution
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: export-solution
Source: https://github.com/microsoft/power-platform-skills/tree/main/plugins/power-pages/skills/export-solution
Command: npx skills add https://github.com/microsoft/power-platform-skills --skill export-solution

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Moving a Power Pages site between environments requires packaging its Dataverse solution correctly, and manual exports often miss components, ship stale version numbers, or produce corrupt zips that fail on import. This Skill automates the full export workflow with completeness checks and verification so the package is ready for deployment.

Core Features & Use Cases

  • Async export orchestration: Triggers ExportSolutionAsync, polls until completion, downloads the zip via DownloadSolutionExportData, and verifies Solution.xml integrity inside the archive.
  • Pre-export completeness check: Compares live site components (cloud flows, environment variables, custom tables, site components) against the solution and offers to sync missing items before exporting.
  • Managed vs unmanaged packaging: Prompts for export type, automatically bumps the solution version, and writes a docs/alm/last-export.json marker for downstream import and pipeline skills.
  • Use Case: After finishing a Power Pages site in a dev environment, run this Skill to produce a managed solution zip with all site components included, then hand it to import-solution for deployment to staging.

Quick Start

Ask the agent to export the current Power Pages solution as a managed zip file for deployment to the staging environment.

Frequently Asked Questions about export-solution

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export a Power Pages solution to a zip file?

Run the export-solution skill, which reads .solution-manifest.json to identify the solution, triggers ExportSolutionAsync against the Dataverse environment, polls until the job completes, and downloads the zip to your project directory.

What is the difference between managed and unmanaged solution export?

Managed solutions cannot be edited in the target environment and support clean upgrade and delete cycles, making them right for staging and production. Unmanaged solutions remain editable in the target and suit dev-to-dev deployments.

Why does my exported solution miss components from my Power Pages site?

Components created after the solution was set up, such as cloud flows or environment variables, are not automatically added. The skill's pre-export completeness check detects these gaps and offers to sync them into the solution before exporting.

Does export-solution require PAC CLI and Azure CLI?

Yes, both are prerequisites. PAC CLI must be installed and authenticated, and Azure CLI must be logged in so the skill can acquire a token for Dataverse Web API calls.

How does the skill verify the exported solution zip is valid?

It confirms the zip exists on disk, checks the file size exceeds 1000 bytes, and verifies Solution.xml is present inside the archive. A validation script also parses the zip structure and checks CRC integrity of the Solution.xml entry.