Recover environment

You can recover a recently deleted environment (within 7 days of deletion), by using the Microsoft Power Platform admin center or the Power Apps cmdlet Recover-AdminPowerAppEnvironment.

Note

Available storage capacity might be required in order to successfully recover an environment depending on the type of environment being recovered. For information on viewing your current storage capacity, see Microsoft Dataverse storage capacity.

Please review the following topics that discuss how environments could become marked for deletion and how to restore environments.

Power Platform admin center

An administrator can recover a recently deleted environment by using the Power Platform admin center.

  1. Sign in to the Power Platform admin center as an admin (Dynamics 365 admin, Global admin, or Power Platform admin).

  2. In the navigation pane, select Environments, and then select Recover deleted environments.

    Restore deleted environments.

  3. Select an environment to recover, and then select Recover.

    Select Recover.

  4. Select Continue to confirm the recovery.

    Select Continue.

It could take several hours for the environment to be recovered. During this period, the environment to be recovered will continue to show in the list of deleted environments. Once recovered, you'll see the environment in the Environments page.

PowerShell

An administrator can recover a recently deleted environment by using the following PowerShell cmdlet.

## List soft-deleted environments
Get-AdminPowerAppSoftDeletedEnvironment
 
## Attempt a recover operation on a soft-deleted environment
Recover-AdminPowerAppEnvironment -EnvironmentName $environmentName -WaitUntilFinished $true

To learn more on using PowerShell cmdlets for environments, see Power Apps cmdlets for administrators.

Next steps after recovering an environment

  • Flows - Solution flows will be disabled so enable flows as needed.

See also

Back up and restore environments
Automatic environment cleanup
Manage sandbox environments
Environments overview
Microsoft.PowerApps.Administration.PowerShell
Licensing overview for Microsoft Power Platform