Fix PostgreSQL Flexible Server AadAuthPrincipalCreationFailed after moving tenant

Jakob Pedersen 0 Reputation points
2025-10-27T11:13:10.1466667+00:00

We had all our resources moved to a new Directory/tenant in Azure. However this did not migrate any tenantId properties in any resources, including our Azure PostgreSQL Flexible Server authConfig. This means I cannot change Microsoft Entra ID admin groups for my database servers. How can I get the authConfig.tenantId property updated without having to drop and recreate my database server resource? Additionally we also had an issue with the Key Vaults however there is documentation on how to fix that specifically (https://free.blessedness.top/en-gb/azure/key-vault/general/move-subscription#additional-steps-when-subscription-is-in-a-new-tenant) but I'm missing that same documentation for PostgreSQL Flexible servers.

Azure Database for PostgreSQL
{count} votes

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.