Looking for a tool to help you create content that ranks?
Prompts for researched writing
Create Content that Drives More Traffic and Revenue to your Website
How to Recover a Deleted App in Microsoft Power Apps Using MS Powershell
If you have ever accidentally deleted an app in Microsoft Power Apps, you know how frustrating it can be. Thankfully, there is a way to recover your app using MS Powershell. This blog post will walk you through the steps necessary to recover your deleted app.
Let’s get started!
It has happened to me as well, and my first thought is, wait, there must be a recycle bin or a way to recover the power app. A quick Google search shows no way to undelete a power app using the Power App Dashboard. Powershell is required.
I have found some guides on using Powershell to recover a deleted power app. Unfortunately, most instructions were missing some steps, so I decided to write a blog post about it, including all the necessary steps.
Meet Charlie AI
The Marketing Assistant you deserve
The Alternative to ChatGPT
I use Powershell ISE instead of Powershell. The split-screen is super convenient to work with. You can copy in commands and run them line by line. Very easy to correct commands. I highly recommend it.
Follow four easy steps to undelete your Power App.
Step One: Install PowerShell Cmdlets for Power Apps
A prerequisite is to install the PowerShell Cmdlets for Power Apps first
Install-PackageProvider -Name NuGet -MinimumVersion 220.127.116.11 -Force -scope CurrentUser Install-Module -Name Microsoft.PowerApps.Administration.PowerShell -Scope CurrentUser –Force Install-Module -Name Microsoft.PowerApps.PowerShell -Scope CurrentUser -AllowClobber –Force Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned –Force
Execute each line separately and reply with ‘Yes to All.’ This can take a few moments. The last command sets the ExecutionPolicy
Beelink SEI8 Mini PC, Windows 11 Pro
8th gen Intel i5-8279U(Up to 4.1GHz),16GB RAM 500G NVMe M.2 SSD
Laptop power – incredible Touchscreen
Microsoft Surface Pro 9 (2022), 13″ 2-in-1 Tablet & Laptop
Step Two: Login to Power Apps environment
After installing the cmdlets, we may log into our Power Apps environment in PowerShell.
Here’s the command to authenticate to a Power Apps. It is the usual Microsoft login prompt for Office 365. It will launch a new window where you have to enter the credentials. Remember, you need to have admin rights for the Power Apps environment.
Step Three: Getting a list of deleted Power Apps
To get a list of recoverable Power Apps, use the following command.
Get-AdminDeletedPowerAppsList -EnvironmentName Default-b693953a-95e6-42ab-83a0-58745720bf90
How do I know my environment name? Log in to your Power App Admin Center Dashboard with the browser. In the URL address, you can see your environment name.
It displays the GUID AppNames of all the app(s) that can be recovered.
Step Four: Recover the deleted Power App
Get-AdminRecoverDeletedPowerApp -EnvironmentName Default-b693953a-95e6-42ab-83a0-95705720bf90 -AppName 0b3ac42a-e5f4-4945-aba2-798e0d1ee9ff
The above command will undelete the Power app.
If you get the result code 200, then your app was recovered successfully.
Go back to your Azure Power App dashboard and you will see the app again. Hooray!!
‘Restored_with current date’ was added to the name of your app. To rename the app to its original name, click the three dots next to the app name, settings, pencil icon.
Does Power Apps have a recycle bin?
No, there is no recycle bin available. If you delete the app, the only way to recover it is using MS Powershell.
What is the retention time to undelete a Power app?
It is 28 days, according to Microsoft. After that, there is no way to recover it with MS Powershell.
This blog post shows you how to recover a deleted app in Microsoft Power Apps using MS Powershell. I have included all the necessary steps, so you can quickly recover your deleted app.
Did it work? Please let me know in the comment section below? I would love to get some feedback from you.
Thanks for reading!
Any purchases made from clicks on links to products on this page may result in an affiliate commission for me.
Please keep in mind that the quantity or price of items can change at any time.
As an Amazon Associate, I earn from qualifying purchases.
As an Aliexpress Associate, I earn from qualifying purchases.
Als Amazon-Partner verdiene ich an qualifizierten Verkäufen