How to delete a Microsoft Entra ID

Marco Molica 0 Reputation points
2025-05-23T08:51:34.06+00:00

Hi! I've create a web-app, and activated a System Identity Assigned

User's image

After that, i added the EntraID assigned to the authentication of database.

After a while, i tried to move the app to a new service plan, so i deleted the application in order to recreate it. I tried to add again a System Identity Assigned, but i'm not able to add it to the authentication of database as there is the previous identity (with different objectid, but same name).

If i try to delete the entra id, i got

User's image

but i didn't found a way to enable Include Error Detail, as the connection string is managed by portal (same result by using CLI).

I tried to remove the role from postgres itself, but i don't have the permission to drop the role cause it was created by admin_pg_user. I also tried to add another role and grant admin_pg_user to new role, but still no luck.

Is there a way to remove the previous EntraID? Otherwise i'm not able to deploy the webapp with previous name, as the database authentication will throw an error.

Thank you

Azure Database for PostgreSQL
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.