REST API call to Azure Data lake Storage Gen 2 not working. Giving me error "Audience validation failed. Audience did not match"

I'm using the REST API to list all the queues in my azure data lake storage account.

But I am getting this error:

"Audience validation failed. Audience did not match"

Upvotes: 3

Views: 907

Answers (1)

Tony Ju
Tony Ju

Reputation: 15639

Per my understanding, you are using Azure AD for the authentication. Please find the steps as below.

1.Register an application

2.Assign a build-in RBAC role to this application. It depends on you which role to be assigned to the application.

3.get access token. Please note to use https://storage.azure.com/ as resource

enter image description here

  1. call the rest api.

enter image description here

Upvotes: 3

Related Questions