My initial code was :
{
"name": "[concat(parameters('factoryName'), '/MemoExtraction')]",
"type": "Microsoft.DataFactory/factories/linkedServices",
"apiVersion": "2018-06-01",
"properties": {
"annotations": [],
"type": "AzureFunction",
"typeProperties": {
"functionAppUrl": "[parameters('MemoExtraction_properties_typeProperties_functionAppUrl')]",
"functionKey": {
"type": "SecureString",
"value": "[parameters('MemoExtraction_functionKey')]"
},
"authentication": "Anonymous"
}
},
"dependsOn": []
},
I have pushed new code as:
{
"name": "[concat(parameters('factoryName'), '/MemoExtraction')]",
"type": "Microsoft.DataFactory/factories/linkedServices",
"apiVersion": "2018-06-01",
"properties": {
"annotations": [],
"type": "AzureFunction",
"typeProperties": {
"functionAppUrl": "[parameters('MemoExtraction_properties_typeProperties_functionAppUrl')]",
"functionKey": {
"type": "AzureKeyVaultSecret",
"store": {
"referenceName": "Ls_AzureKeyVault",
"type": "LinkedServiceReference"
},
"secretName": "MemoKey"
},
"authentication": "Anonymous"
}
},
"dependsOn": [
"[concat(variables('factoryId'), '/linkedServices/Ls_AzureKeyVault')]"
]
},
I am getting the below error : enter image description here
I am not sure why I am getting this error while deployment. It should deploy successfully .
I created one Function Linked Service with Key vault and then exported the ARM template of my ADF like below:-
Exported the template of the above ADF pipeline with ADF resource like below:-
From the Exported ARM code file, I selected the below 2 codes and replaced the Data factory parameter to the new ADF name without any pipeline, For the Azure Function Linked service to get deployed in the new ADF pipeline like below:-
Exported ARM code:-
Added the above two files in my Azure repository and replaced the ADF name parameter with the new testadf90silicon name like below:-
ARMTemplateParametersForFactory.json
ARMTemplateForFactory.json
Output:-
Azure Function Linked Service Pipeline got created in new ADF:-
Also refer this similar SO thread by KarthikBhyresh-MT where you can override parameter for your function key and URI values.