An Azure managed PostgreSQL database service for app development and deployment.
Thank you for reaching on Microsoft Q&A!
Can you please give the error screenshot and the query you have executed so that we can guide in right direction.
Can you try running the following command to get the details.
az postgres flexible-server microsoft-entra-admin list --resource-group <YourResourceGroup> --server-name <YourServerName> --output table
if you can see the old object ID you can try deleting that by executing the command let me know if you are getting any issues.
az postgres flexible-server microsoft-entra-admin delete --resource-group <YourResourceGroup> --server-name <YourServerName> --object-id <OldStaleObjectID> --yes