I am deploying a Azure Function Linked Service through CICD pipeline, I am unable to deploy it to ADF with its function key
"LS_AF_xxxx_properties_typeProperties_functionAppUrl": {
"value": "https://xxxx.azurewebsites.net"
},
"LS_AF_xxxx_properties_typeProperties_encryptedCredential": {
"value": "uiaLtjo8ACh5zYAparmGIhLh_Bhvk4VbsgcGLFWWSFNzAzFumEPZ9w=="
}
The error is as below
'The template parameters 'LS_AF_xxxx_properties_typeProperties_encryptedCredential' in the parameters file are not valid; they are not present in the original template and can therefore not be provided at deployment.
Is there a way to create an azure function linked service with function key through ARM template
Yes, I agree with your comment and the SO thread you shared to export the ARM template of Linked Azure Function service and then edit it accordingly and use it in your Azure Devops ARM task.
I created one Linked Service with Azure Function like below:-
Then I Exported the ARM template and used it in my Azure Devops pipeline:-
Go to Manage tab in ADF > Source control > ARM Template > Export
Uploaded the Exported File in Azure repository:-
Exported ARM code with Function:-
Utilize the Exported Linked ARM template in your CI/CD pipeline like below:-