Execute Azure Synapse Pipeline using REST API

Prashant Meshram 41 Reputation points
2022-10-04T07:37:38.577+00:00

Hi Team,

I am trying to execute Azure Synapse Pipeline using REST API.
I am able to authenticate using Client Credentials and Bearer token is also generated successfully and getting the expected response.

By referring the azure synapse docs I created the below URL and using a POST request to this URL I am trying to execute the pipeline through POSTMAN. I tried below 2 URLs:-

1) https://myworkspace.dev.azuresynapse.net/pipelines/ResumeDB/createRun?api-version=2020-12-01 --- Could not send request error

2) https://management.azure.com/subscriptions/{mysub_id}/resourceGroups/{myresourcegroupname}/providers/Microsoft.Synapse/workspaces/{mysynapseworkspacename}/pipelines/ResumeDB/createRun?api-version=2021-06-01 -- 404 Not found (my pipeline is present at the same given location)

could you please suggest me what would be the expected URL that I need to pass along with the generated Bearer token to re-run my pipeline through API

Regards,
Prashant.

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,472 questions
{count} votes

1 answer

Sort by: Most helpful
  1. HimanshuSinha-msft 19,381 Reputation points Microsoft Employee
    2022-10-05T22:06:06.827+00:00

    Hello @Prashant Meshram ,
    Thanks for the question and using MS Q&A platform.

    As we understand the ask here is how to use the Synapse API to run a pipeline , please do let us know if its not accurate.
    The below blog from the PG does call out the steps ( though here they are using the powershell , but the overall idea remains same )
    https://techcommunity.microsoft.com/t5/azure-synapse-analytics-blog/how-to-start-synapse-pipeline-from-rest-api/ba-p/1684836

    Please do let me if you have any queries.
    Thanks
    Himanshu


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
      • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators