Azure Synapse RESTAPI - Audience validation failed

Sangilimurugan S 51 Reputation points
2021-04-10T13:00:33.287+00:00

Hi,

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
86479-request1.png86440-request2.png

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,935 questions
{count} vote

Accepted answer
  1. PRADEEPCHEEKATLA-MSFT 89,816 Reputation points Microsoft Employee
    2021-04-14T05:40:20.153+00:00

    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.