Azure / azure-rest-api-specs-examples

SDK examples for azure-rest-api-specs
MIT License
20 stars 13 forks source link

API rerun trigger is giving the Invalid trigger type: ScheduleTrigger when i run the Scheduled triggers is there any restriction on schedule trigger #4371

Open mahidharkolla opened 6 months ago

mahidharkolla commented 6 months ago

Link to sample

https://learn.microsoft.com/en-us/rest/api/datafactory/trigger-runs/rerun?view=rest-datafactory-2018-06-01&tabs=Python#code-try-0

Library name and version

2018-06-01

Language of the Sample

Sample Issue Type

Issue details

when i do rerun of trigger through post man with following API , i get reponse as below: POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/triggerRuns/{runId}/rerun?api-version=2018-06-01

Reponse: { "error": { "code": "BadRequest", "message": "Invalid trigger type: ScheduleTrigger", "target": "TestTrigger", "details": null } }

Expected behavior

No response

Actual behavior

No response

Reproduction Steps

No response

Environment

No response

msyyc commented 3 months ago

Hi @mahidharkolla You need to pass right value for variables wrapped by {}: image