Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Hi @awf09j ,
I spoke with the PG and took a look at the documentation on this here: Connect with Managed Identity - Azure Database for PostgreSQL - Single Server | Microsoft Learn
We managed to test using Postman. Passing this scope<https://ossrdbms-aad.database.windows.net/> returns the same error as what you are getting (AuthenticationRequiredError: invalid_scope). For the managed Identity, you need to add the /.default scope as shown in the example. Tested on postman and we were able to get an access token.
Let me know if this helps and if you have further questions.
If the information helped you, please Accept the answer. This will help us as well as others in the community who may be researching similar information.