A trigger on our Synapse workspace needs different trigger times on different environments. During deployment the times are overriden by the default value that's part of the TemplateForWorkspace.sjon file in the workspace_publish branch.
},
"Load from FTP_properties_typeProperties_recurrence_schedule": {
"type": "object",
"defaultValue": {
"minutes": [
0
],
"hours": [
3
]
}
},
To override parameters during deployment, we use the OverrideArmParameters option of the Synapse workspace deployment@2 taks.
- task: Synapse workspace deployment@2
displayName: Synapse workspace deployment
inputs:
operation: 'deploy'
TemplateFile: $(Pipeline.Workspace)/synapse_template/TemplateForWorkspace.json
ParametersFile: $(Pipeline.Workspace)/synapse_template/TemplateParametersForWorkspace.json
azureSubscription: ${{ parameters.serviceConnection }}
ResourceGroupName: ${{ parameters.deploymentResourceGroupName }}
TargetWorkspaceName: '$(DeployWorkspaceName)'
DeleteArtifactsNotInTemplate: true
DeployManagedPrivateEndpoints: false
OverrideArmParameters: |
KeyVault_properties_typeProperties_baseUrl: xxxx${{ parameters.environment }}xxx
Datalake_properties_typeProperties_url: xxxx${{ parameters.environment }}xxxx.dfs.core.windows.net
How to override the hours of the trigger? I've tried some things like:
Load from FTP_properties_typeProperties_recurrence_schedule: 0,9