相关文章推荐

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.

 
推荐文章