Compare a DTAP chain
cs_compare_environmentsDetect drift between adjacent Copilot Studio environments by snapshotting every stage in an ordered chain and returning per-pair reports with the first stage where differences appear.
Instructions
Snapshot every environment in an ordered chain (e.g. DEV, TEST, ACC, PROD) and compare each adjacent pair. Returns one report per pair plus the first stage where drift appears. Snapshots go to /, reports to /reports.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | ||
| chain | Yes | ||
| agents | No | Agent schema names or ids to clone; default: every agent pac copilot list returns | |
| clientId | No | Entra app (client) id for MSAL. Defaults to CPS_CLIENT_ID, then the first-party VS Code id. | |
| solution | No | Solution unique name to record version/managed state for | |
| tenantId | No | Entra tenant id. Defaults to the workspace sync metadata, then CPS_TENANT_ID. | |
| maxAgents | No | Default 20 | |
| failOnDrift | No | ||
| includeDiffs | No | ||
| strictVariables | No | ||
| includeDataverse | No | Default true: flows, connection references, environment variables and publish state via Dataverse (needs cs_login; skipped silently otherwise) |