I'm doing some initial ADF deployment from my adf-dev to adf-staging environment. In the MS docs it says:
Deployment can fail if you try to update active triggers. To update active triggers, you need to manually stop them and then restart them after the deployment.
Does this mean I need to turn off my dev or staging triggers pre/post deployment?
2nd issue. I need to schedule the same set of triggers to run on different days in dev (sat) vs staging (sun). Do I need to make a separate set of triggers for each environment then or can I rewrite the trigger schedules for the existing triggers during deployment?
Sample Trigger:
{
"name": "[concat(parameters('factoryName'), '/Parts_Central_Cube_Data_Tables')]",
"type": "Microsoft.DataFactory/factories/triggers",
"apiVersion": "2018-06-01",
"properties": {
"annotations": [],
"runtimeState": "Started",
"pipelines": [
{
"pipelineReference": {
"referenceName": "DARTT_Master_Parallel",
"type": "PipelineReference"
},
"parameters": {
"PipelineScheduleName": "[parameters('Parts_Central_Cube_Data_Tables_properties_DARTT_Master_Parallel_parameters_PipelineScheduleName')]",
"TestMode": "[parameters('Parts_Central_Cube_Data_Tables_properties_DARTT_Master_Parallel_parameters_TestMode')]",
"DtuScaleOn": "[parameters('Parts_Central_Cube_Data_Tables_properties_DARTT_Master_Parallel_parameters_DtuScaleOn')]"
}
}
],
"type": "ScheduleTrigger",
"typeProperties": {
"recurrence": {
"frequency": "Week",
"interval": 1,
"startTime": "2021-04-23T13:35:00",
"timeZone": "Eastern Standard Time",
"schedule": {
"minutes": [
0
],
"hours": [
22
],
"weekDays": [
"Sunday"
]
}
}
}
},
"dependsOn": [
"[variables('factoryId')]",
"[concat(variables('factoryId'), '/pipelines/DARTT_Master_Parallel')]"
]
},