This is my trigger typeProperties,
"type": "ScheduleTrigger",
"typeProperties": {
"recurrence": {
"frequency": "Day",
"interval": 1,
"startTime": "2023-07-07T05:28:00",
"timeZone": "W. Europe Standard Time",
"schedule": {
"minutes": [
10
],
"hours": [
16
]
}
}
}
I want to change the hours 16 to 18 through the azure cli. I tried the multiple update statement but I couldn't able to do so.
To update schedule time using the Azure CLI You can use az datafactory trigger update
Azure CLI command with --set parameter specifying a property as path and value for updating an existing trigger.
az datafactory trigger update --resource-group "resourcegroup name" --factory-name "Datafactory name" --name "Trigger name" --set properties.recurrence.schedule.minutes=[29] --set properties.recurrence.schedule.hours=[29]
Initial properties of my trigger:
After executing CLI command: