问题
Originally I deleted an Azure AD B2C directory, which according to the MSDN guide included removing the b2c-extensions-app. When I thereafter created a new Azure AD B2C directory with the same name, the b2c-extensions-app was not created automatically.
Following this, I tried to create a new Azure AD B2C directory with a different name, which also missed the b2c-extensions-app.
How come both of them misses the b2c-extensions-app? And what can be done to fix this?
EDIT:
To answer the second question. When creating an Azure AD B2C directory the b2c-extensions-app might not be created right away. In my case it appeared after a while, which can be good to know.
回答1:
If the app was deleted less than 30 days ago, you can restore it using Azure AD Graph's /deletedApplications/{application_id}/restore api.
If the application was deleted longer than that, there is no way to restore it, which, in the case of b2c-extensions-app, means that you need to create a new Azure AD B2C directory with a new name. If you create a new directory but do so with the same name, the b2c-extensions-app will not be re-created in that new directory.
来源:https://stackoverflow.com/questions/44653397/missing-azure-ad-b2c-b2c-extensions-app