How do I pass in parameters at runtime to a Linked Service in Data Factory?
I have a parameter defined and consumed in my Azure Function linked service definition, but am unsure how I set that during invocation in my pipeline action. In this case I would like to set functionAlias in a trigger to set the Azure Function hostname. Currently an exception is returned on (blob create) trigger stating that functionAlias is not specified.
Pipeline
{
"name": "myActivity",
"type": "AzureFunctionActivity",
"typeProperties": {
"functionName": "myFunctionName",
"method": "POST"
}
"linkedServiceName": {
"referenceName": "myFunctionLinkedService",
"type": "LinkedServiceReference"
}
}
Linked service
{
"name": "myFunctionLinkedService",
"type": "Microsoft.DataFactory/factories/linkedservices",
"properties": {
"type": "AzureFunction",
"typeProperties": {
"functionAppUrl": "https://@{linkedService().functionAlias}.azurewebsites.net",
"encryptedCredential": ""
},
"parameters": {
"functionAlias": {
"type": "String"
}
}
}
}