Unable to add new Microsoft Entra admin

Tim Miller 0 Reputation points
2025-04-04T04:09:03.8966667+00:00

Hi,

We have a flexible server that I am trying to add some new accounts in. To do this I need to be a Microsoft Entra admin. However, whenever I try to add myself as an admin I get this error:

{

  "status": "Failed",

  "error": {
"code": "ResourceDeploymentFailure",

"message": "The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.",

"details": [

  {

    "code": "AadAuthPrincipalCreationFailed",

    "message": "Failed to create Azure AD Principal. Reason - Updating existing principal is not supported yet. Please drop the given principal first."

  }

]
}

}

We do however have a dev instance, and I was able to add myself as an admin on that one. Could someone please explain:

  • Why I was able to add myself as a Microsoft Entra admin in one instance, but not the other?
  • How can I add myself as a Microsoft Entra admin in our prod instance?
Azure Database for PostgreSQL

Your answer

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