相关文章推荐
坚强的烤地瓜  ·  srand | Microsoft Learn·  2 年前    · 
飞奔的苦咖啡  ·  MongoError: connect ...·  2 年前    · 
瘦瘦的洋葱  ·  内网渗透 | ...·  2 年前    · 
微醺的墨镜  ·  vs2019 找不到.net core ...·  2 年前    · 
大力的椰子  ·  greenplum(postgresql) ...·  2 年前    · 

I am trying to run a Azure synapse pipeline using RESTAPI. I have generated the bearer token in the first request and using the bearer token in the second request to run the pipeline.

I am facing the below error:

"code": "InvalidTokenAuthenticationAudience",
"message": "Token Authentication failed with SecurityTokenInvalidAudienceException - IDX10214: Audience validation failed. Audiences: '[PII is hidden]'. Did not match: validationParameters.ValidAudience: '[PII is hidden]' or validationParameters.ValidAudiences: '[PII is hidden]'."

Can you please guide me to solve this issue?.

RESTAPI reference link: https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/pipeline/createpipelinerun#createrunresponse

Hello @Sangilimurugan S ,

You may checkout the common parameters and headers to all tasks that you might do related to Azure Synapse: https://learn.microsoft.com/en-us/rest/api/synapse/#common-parameters-and-headers .

Hope this helps. Do let us know if you any further queries.

Hi @PRADEEPCHEEKATLA-MSFT

I am able to fix the issue after setting audience as shown in the screenshot.
Appreciate you help.

Hello @Sangilimurugan S ,

Glad to know that your issue has resolved.

----------------------------------------------------------------------------------------

Do click on Accept Answer and Up-Vote on the post that helps you, this can be beneficial to other community members.