question

ArundhatiSen-2766 avatar image
0 Votes"
ArundhatiSen-2766 asked MartinJaffer-MSFT answered

auto trigger azure data share using rest api

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-factoryazure-data-share
image.png (41.6 KiB)
· 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.

Hello and welcome to Microsoft Q&A @ArundhatiSen-2766 .

You say you "unable to do it". Can you give me details of what is going wrong? Is there an error message?

0 Votes 0 ·

In Azure Data Share Received Share side there is a facility to trigger the snapshot in the real time as highlighted in the screenshot below. This similar functionality I wanted to achieve using Rest API or powershell , but only schedule trigger I can create and can't start adhoc trigger. Can you please help with it


164168-image.png



0 Votes 0 ·
image.png (61.1 KiB)

1 Answer

MartinJaffer-MSFT avatar image
0 Votes"
MartinJaffer-MSFT answered

Okay, I did some poking around, and have some preliminary findings @ArundhatiSen-2766 .

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.


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.