What it is
A PowerShell toolkit that inventories agents, maps owner departments to existing environments, and copies classic Copilot Studio agents through Dataverse solutions.
Why use it
- Plan environment redistribution from a tenant-wide inventory before making changes.
- Preserve agent ownership and record-level sharing on a best-effort basis.
- Run a full dry-run migration plan with
-WhatIfbefore importing solutions.
How to use it
- Optionally generate and review
department-environment-mapping.json. - Run
Inventory-PowerPlatformAgents.ps1to produce the raw inventory JSON. - Run
Migrate-CopilotStudioAgents.ps1with the inventory and mapping paths plus-WhatIf. - Review
migration-plan.csv, rerun without-WhatIf, then reconfigure connections and validate each migrated agent.
Prerequisites
- Power Platform CLI and MSAL.PS
- Power Platform or reader admin role
- Microsoft Graph User.Read.All delegated access
- Dataverse access in source and target environments
- Pre-created target environments and target-user access