Restore an environment from a backup
cs_admin_restore_environmentRestore a Power Platform environment backup into the same or a different environment, overwriting target data and customizations. Requires explicit confirmation to apply changes.
Instructions
Restore a backup into the same or another environment. Overwrites the target's data and customisations: requires confirm: true. Runs 'pac admin restore' with the active pac auth profile. Mutates a live environment: requires confirm: true (a dry run otherwise).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for pac (for project commands: the solution project folder) | |
| name | No | Name for the restored environment | |
| async | No | Run the operation asynchronously | |
| confirm | No | Required to actually perform a change in a live environment. Without it the tool returns a dry run. | |
| profile | No | pac auth profile to run as: the admin account for tenant commands. Defaults to CPS_ADMIN_PROFILE for admin commands and CPS_PAC_PROFILE otherwise, then the active profile. cs_init lists the profiles. | |
| background | No | Run in the background and return a jobId immediately, for a command that takes longer than the client will wait. Poll cs_job_status. | |
| skipAuditData | No | Do not restore audit data | |
| selectedBackup | Yes | Backup date as mm/dd/yyyy hh:mm, or 'latest' | |
| timeoutSeconds | No | Default 14400 | |
| maxAsyncWaitTime | No | Max asynchronous wait time in minutes (default 60) | |
| sourceEnvironment | No | Environment the backup came from | |
| targetEnvironment | No | Environment to restore into (defaults to the source) |