az account get-access-token command issue

Mittapelli, S (Sathishkumar) 0 Reputation points
2024-07-05T12:54:08.7733333+00:00

Hi All,

We are using below command to get the JWT token for login to Postgres single server.

az account get-access-token --resource-type oss-rdbms -o tsv --query accessToken

However this command earlier returing the all groups of the lodded in user but now its only giving the link to the groups.

Can someone advise how can we get all groups of the user in access token for above command.

Thanks in advance!

Azure Database for PostgreSQL
{count} votes

1 answer

Sort by: Most helpful
  1. Oury Ba-MSFT 19,581 Reputation points Microsoft Employee
    2024-07-08T22:26:16.5333333+00:00

    @Mittapelli, S (Sathishkumar) I haven't heard back from you since my last comment.

    Please do also check this link https://learn.microsoft.com/en-us/azure/mysql/flexible-server/how-to-azure-ad#2---retrieve-microsoft-entra-access-token

    I would suggest migrating to Azure PostgreSQL flexible server. Single server is in retirement phase. https://learn.microsoft.com/en-us/azure/postgresql/single-server/whats-happening-to-postgresql-single-server

    Please do let me know if that works.

    Regards,

    Oury

    0 comments No comments

Your answer

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