AADSTS700016 encounter on Azure python SDK

Ronald Allan Coros 20 Reputation points
2023-07-12T09:51:29.4766667+00:00

I was developing a script to get the list of blobs on a container and encountered the issue. I already follow the recommendation in the GitHub issue: https://github.com/Azure/azure-sdk-for-python/issues/26602 but still getting the same results.
Added code snippet:
User's image

Added the error message:

User's image

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,192 questions
Microsoft Security Microsoft Entra Microsoft Entra ID
{count} votes

Accepted answer
  1. Yuvaraj Madheswaran 390 Reputation points
    2023-07-16T22:15:10.34+00:00

    Hi @Ronald Allan Coros ,

    As per the error message as "Authentication failed" occurred due to the Application id incorrect. I suspect that in your application, you have specified Client Secret instead of Client ID (aka App ID). This is why the authentication request contains incorrect Client ID and Azure AD fails to find the app, resulting in this error. Search for your app under Azure AD > App registrations and make sure you are using its client ID.

    In Azure AD, the Client ID is always in GUID format, as highlighted below:

    164348-image.png

    In case, after configuring the correct Client ID you still get this error, you need to construct the below URL and provide it to the Global administrator of your tenant, who will have to consent after successfully signing in.

    Copy

    https://login.microsoftonline.com/common/adminconsent?client_id=your_client_id  
    

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.