I'm currently using Azure.ResourceManager
in C# to delete resources such as app services and databases in Azure. This works fine. See NuGet for reference. https://www.nuget.org/packages/Azure.ResourceManager/1.0.0-beta.4
However, I want to do the same for deleting App Registrations from Azure, and cannot seem to find any documentation or examples online for how to do this. Do I require a separate library, or have I misunderstood something here?
Writing this in C#, using .NET 5.0
You can try with using Microsoft Graph Rest API
When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted
DELETE https://graph.microsoft.com/v1.0/applications/{id}
Example:
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
await graphClient.Applications["{application-id}"]
.Request()
.DeleteAsync();
Response: HTTP/1.1 204 No Content
For more details refer this document
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.