Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
The new and improved Power Platform admin center is now generally available. We're currently updating the documentation to reflect these changes, so check back to ensure that you're getting the latest updates.
You can recover a recently deleted environment (within seven days of deletion by using the Microsoft Power Platform admin center or the Recover-AdminPowerAppEnvironment Power Apps cmdlet. Production environments with Dynamics 365 applications are available for up to 28 days.
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.
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 following these steps:
- Sign in to the Power Platform admin center.
- In the navigation pane, select Manage.
- In the Manage pane, select Environments.
- On the Environments page, select Recently deleted environments in the command bar.
- On the Deleted page, select the ellipsis (...) next to the environment you want to recover.
- Select Continue from the dropdown selection to confirm the recovery.
- Select Ok to proceed with the recovery.
It may take several hours for the environment to be restored. During this period, the environment remains visible in the list of deleted environments. Once recovery is complete, the environment reappear on 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 are disabled so be sure to 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