Share via

How to pass variable to REST API call in synapse analytics

BalwinderKaur-5937 41 Reputation points
2021-07-27T20:31:12.633+00:00

I have created a pipeline in Synapse Analytics with web activity and I will be using it to call REST API. Before I make REST API POST Call , In the Post call body I need to pass user credentials that I already saved in Azure Key Vault. I am able to retrieve the credentials using a web and set variable activity. But the issue is when I pass those variables to the Rest API Post call-body section it gives an error “Authentication failed for User” . How can I pass those variable in the Rest API call in the web activity.
Thank you

Azure Key Vault
Azure Key Vault

An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.

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.

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.

0 comments No comments
{count} votes

Answer accepted by question author
  1. PRADEEPCHEEKATLA 91,846 Reputation points
    2021-07-28T08:16:25.37+00:00

    Hello anonymous user,

    Welcome to the Microsoft Q&A platform.

    The only easy was as of now is using a web activity to connect to key vault REST API via MSI and fetch the secret value and pass it to the web activity.

    You can store credentials or secret values in an Azure Key Vault and use them during pipeline execution to pass to your activities.

    For more details, refer to Use Azure Key Vault secrets in pipeline activities.

    And also, you may refer to the SO thread (Retrieve key vault in web activity in Azure Data Factory) which addressing similar issue.

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

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

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


0 additional answers

Sort by: Most helpful

Your answer

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