[英]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.我正在使用 REST API 列出我的 azure 数据湖存储帐户中的所有队列。
But I am getting this error:但我收到此错误:
"Audience validation failed. Audience did not match"
“受众验证失败。受众不匹配”
Per my understanding, you are using Azure AD for the authentication .根据我的理解,您使用Azure AD 进行身份验证。 Please find the steps as below.
请找到以下步骤。
1. Register an application 1. 注册一个应用程序
2. Assign a build-in RBAC role to this application. 2. 为该应用程序分配一个内置的 RBAC 角色。 It depends on you which role to be assigned to the application.
这取决于您要为应用程序分配哪个角色。
3.get access token. 3.获取访问令牌。 Please note to use https://storage.azure.com/ as resource
请注意使用https://storage.azure.com/作为资源
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.