auto trigger azure data share using rest api

Arundhati Sen 151 Reputation points
2022-01-11T09:59:03.89+00:00

I would like to create auto trigger using rest api which will trigger the azure data synchronization. I am trying to invoke the rest api call using ADF web activiy but unable to do it. Please help

URL : https://management.azure.com/subscriptions/d7e381be-0ae9-40d8-a133-11e7c9af2b4d/resourceGroups/poc-as/providers/Microsoft.DataShare/accounts/pocdatashare/shareSubscriptions/Visual%20Studio%20Professional%20Subscription/triggers/Trigger1?api-version=2020-09-01

Method : PUT

Body : {
"kind": "ScheduleBased",
"properties": {
"synchronizationTime": "2021-01-10T04:00:52.9614956Z",
"recurrenceInterval": "Hour",
"synchronizationMode": "Incremental"
}
}

163893-image.png

Azure Data Share
Azure Data Share
An Azure service that is used to share data from multiple sources with other organizations.
44 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,545 questions
{count} votes

Accepted answer
  1. MartinJaffer-MSFT 26,026 Reputation points
    2022-01-13T21:20:43.343+00:00

    Okay, I did some poking around, and have some preliminary findings @Arundhati Sen .

    I went to the page you showed, in my browser and turned on browser developer mode. After I clicked the Trigger Snapshot -- Incremental , I noticed the browser made a call to the Share Subscriptions -- Synchronize part of the API instead of the Create Trigger part of the API. I thing the wording led you astray.

    The Trigger is for setting up a recurring schedule to start snapshots.

    API call to start a synch, what I think you really want.

    0 comments No comments

0 additional answers

Sort by: Most helpful