Skip to content

Commit f7da286

Browse files
authored
Merge pull request #207291 from FaithOmbongi/restoreDeteledAppFix
Restore deleted extensions app - hide Portal steps
2 parents 0943713 + 478edc5 commit f7da286

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

articles/active-directory-b2c/extensions-app.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ If you accidentally deleted the `b2c-extensions-app`, you have 30 days to recove
3636
> [!NOTE]
3737
> An application can only be restored if it has been deleted within the last 30 days. If it has been more than 30 days, data will be permanently lost. For more assistance, file a support ticket.
3838
39+
<!--Hide portal steps until SP bug is fixed
3940
### Recover the extensions app using the Azure portal
4041
4142
1. Sign in to your Azure AD B2C tenant.
@@ -44,18 +45,18 @@ If you accidentally deleted the `b2c-extensions-app`, you have 30 days to recove
4445
1. Select **Restore app registration**.
4546
4647
You should now be able to [see the restored app](#verifying-that-the-extensions-app-is-present) in the Azure portal.
47-
48+
-->
4849
### Recover the extensions app using Microsoft Graph
49-
To restore the app using Microsoft Graph, you must restore both the application and the service principal.
50+
To restore the app using Microsoft Graph, you must restore both the application object and the service principal. For more information, see the [Restore deleted item](/graph/api/directory-deleteditems-restore) API.
5051

51-
To restore the application:
52+
To restore the application object:
5253
1. Browse to [https://developer.microsoft.com/en-us/graph/graph-explorer](https://developer.microsoft.com/en-us/graph/graph-explorer).
5354
1. Log in to the site as a global administrator for the Azure AD B2C directory that you want to restore the deleted app for. This global administrator must have an email address similar to the following: `username@{yourTenant}.onmicrosoft.com`.
5455
1. Issue an HTTP GET against the URL `https://graph.microsoft.com/v1.0/directory/deleteditems/microsoft.graph.application`. This operation will list all of the applications that have been deleted within the past 30 days. You can also use the URL `https://graph.microsoft.com/v1.0/directory/deletedItems/microsoft.graph.application?$filter=displayName eq 'b2c-extensions-app. Do not modify. Used by AADB2C for storing user data.'` to filter by the app's **displayName** property.
5556
1. Find the application in the list where the name begins with `b2c-extensions-app` and copy its `id` property value.
5657
1. Issue an HTTP POST against the URL `https://graph.microsoft.com/v1.0/directory/deleteditems/{id}/restore`. Replace the `{id}` portion of the URL with the `id` from the previous step.]
5758

58-
To restore the service principal:
59+
To restore the service principal object:
5960
1. Issue an HTTP GET against the URL `https://graph.microsoft.com/v1.0/directory/deleteditems/microsoft.graph.servicePrincipal`. This operation will list all of the service principals that have been deleted within the past 30 days. You can also use the URL `https://graph.microsoft.com/v1.0/directory/deletedItems/microsoft.graph.servicePrincipal?$filter=displayName eq 'b2c-extensions-app. Do not modify. Used by AADB2C for storing user data.'` to filter by the app's **displayName** property.
6061
1. Find the service principal in the list where the name begins with `b2c-extensions-app` and copy its `id` property value.
6162
1. Issue an HTTP POST against the URL `https://graph.microsoft.com/v1.0/directory/deleteditems/{id}/restore`. Replace the `{id}` portion of the URL with the `id` from the previous step.

0 commit comments

Comments
 (0)