In the Pipeline properties, add a new parameter:
"parameters": {
"IntegrationRuntimeName": {
"type": "string",
"defaultValue": "shir-test-sample" // this is optional
}
}
In the connectVia section of your pipeline activity JSON, replace the hardcoded referenceName with the parameter reference.
"connectVia": {
"referenceName": {
"value": "@pipeline().parameters.IntegrationRuntimeName",
"type": "Expression"
},
"type": "IntegrationRuntimeReference"
}
Here’s how the entire activity JSON might look after parameterization:
{
"name": "MyCopyActivity",
"type": "Copy",
"dependsOn": [],
"policy": {},
"userProperties": [],
"typeProperties": {
"source": {
"type": "BlobSource",
"sourceRetryCount": 0
},
"sink": {
"type": "SqlSink",
"writeBatchSize": 10000
}
},
"inputs": [
{
"referenceName": "InputDataset",
"type": "DatasetReference"
}
],
"outputs": [
{
"referenceName": "OutputDataset",
"type": "DatasetReference"
}
],
"connectVia": {
"referenceName": {
"value": "@pipeline().parameters.IntegrationRuntimeName",
"type": "Expression"
},
"type": "IntegrationRuntimeReference"
}
}
When you trigger this pipeline, you can pass the IntegrationRuntimeName parameter value:
{
"IntegrationRuntimeName": "your-runtime-name"
}