Fix PostgreSQL Flexible Server AadAuthPrincipalCreationFailed after moving tenant
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.