Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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"

like image 272
Souvik Dutta Choudhury Avatar asked Nov 26 '25 18:11

Souvik Dutta Choudhury


1 Answers

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

like image 62
Tony Ju Avatar answered Nov 29 '25 20:11

Tony Ju



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!