question

SangilimuruganS-8968 avatar image
0 Votes"
SangilimuruganS-8968 asked PRADEEPCHEEKATLA-MSFT edited

Azure Synapse RESTAPI - Audience validation failed

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://docs.microsoft.com/en-us/rest/api/synapse/data-plane/pipeline/createpipelinerun#createrunresponse
86479-request1.png86440-request2.png


azure-synapse-analytics
request1.png (66.6 KiB)
request2.png (41.0 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @SangilimuruganS-8968,

Thanks for bringing this to our attention.

We are reaching out to the internal team to get more help on this, I will update you once we hear back from them.

0 Votes 0 ·

1 Answer

PRADEEPCHEEKATLA-MSFT avatar image
1 Vote"
PRADEEPCHEEKATLA-MSFT answered PRADEEPCHEEKATLA-MSFT edited

Hello @SangilimuruganS-8968,

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

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


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @PRADEEPCHEEKATLA-MSFT

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

88438-image.png





1 Vote 1 ·
image.png (31.7 KiB)

Hello @SangilimuruganS-8968,

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.

0 Votes 0 ·