How to authenticate to Azure App Service using DefaultAzureCredential

Matthew Jensen 55 Reputation points
2024-08-30T17:11:50.3533333+00:00

I've created an application in Azure App Service, currently it's accessible via the browser using Entra ID Easy Authentication.

I'd like to access the application via my Default Azure Credential in Python but I run into the error: DefaultAzureCredential failed to retrieve a token. I have no issue getting a management.azure.com token.

I don't want to be create more app registrations I just want to use my own Entra ID account to access the web app, how is this possible?

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.

Microsoft Security | Microsoft Entra | Microsoft Entra ID

Locked Question. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.