Add Azure Active Directory Administrators fails

Solnar, David 76 Reputation points
2023-03-06T13:39:19.1066667+00:00

Hi, I constantly failing with Adding Azure Active Directory Administrators (Azure AD Admins) on PostgreSQL Flexible Server.

{ "status": "Failed", "error": { "code": "DeploymentFailed", "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.", "details": [ { "code": "Conflict", "message": "{\r\n "status": "Failed",\r\n "error": {\r\n "code": "ResourceDeploymentFailure",\r\n "message": "The 'AzureAsyncOperationWaiting' resource operation completed with terminal provisioning state 'Failed'.",\r\n "details": [\r\n {\r\n "code": "AadAuthPrincipalCreationFailed",\r\n "message": "Failed to create Azure AD Principal. Reason - 0LP01: An unexpected error occurred while trying to validate user."\r\n }\r\n ]\r\n }\r\n}" } ] } }

enter image description here

Azure Database for PostgreSQL
0 comments No comments
{count} votes

Accepted answer
  1. Joachim Løe 85 Reputation points
    2023-03-07T15:27:56+00:00

    If you have NSG/Firewall configured for the PostgreSQL subnet, you need to allow the connectivity to the AzureActiveDirectory service tag

    https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-configure-sign-in-azure-ad-authentication#prerequisites

    That solved it for me when I got this error message.

    /Joachim

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful