Deploy a solution to another environment (1:1)
cs_deploy_solutionDeploy a solution into a target environment using a settings file, then publish all Copilot Studio agents from it. Supports zip or source folder; confirmation required for live changes.
Instructions
pac solution import into the target environment using the deployment settings file, then publish every Copilot Studio agent from the solution. Source: a zip, or a solutionDir from cs_pull_solution (managed zip preferred when present unless unmanaged: true), or an unpacked srcFolder (packed first). Blocks when connection references or environment variables are unmapped unless allowUnmapped. Requires confirm: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zip | No | ||
| confirm | No | Required to actually perform a change in a live environment. Without it the tool returns a dry run. | |
| srcFolder | No | Unpacked solution folder to pack and deploy | |
| unmanaged | No | With solutionDir: deploy the unmanaged zip instead of the managed one | |
| solutionDir | No | ||
| settingsFile | No | ||
| allowUnmapped | No | ||
| publishAgents | No | Default true: pac copilot publish for each agent after import | |
| forceOverwrite | No | ||
| stageAndUpgrade | No | ||
| skipLowerVersion | No | ||
| targetEnvironment | Yes | Environment id or URL to deploy into | |
| maxAsyncWaitMinutes | No |