I need to parameterise the timeout value for a particular SQL Server Stored Procedure activity and a Copy activity within Azure Data Factory using the ARM Template Parameters Definition file, so the values can be specified during deployment to another environment.
How do I structure the JSON correctly in order to be able to do this? I've tried following the guidance in the Microsoft article here but it doesnt parameterise them.
I've tried it as per the below and a number of variations of this (with the below example being for the stored procedure activity):
"Microsoft.DataFactory/factories/pipelines": {
"properties": {
"activities": {
"name": "ActivityName",
"type": "SqlServerStoredProcedure",
"policy": {
"timeout": "="
},
To parameterize the timeout property for SQL stored procedure or a copy activity, you need to define a user defined parameter called
storedProcedureTimeoutunderparametersblock. Once it is defined, reference it in theactivity propertiesas detailed below.Referring to the MSDoc, for deploying a data factory containing datasets and pipeline activities including your specific requirement for parameterizing timeout values. The deployment process was successful as shown below.
Deployment succeded:
Note: If you need timeout to be applied for other copy related activities, follow the same procedure as above.