I have suddenly got an issue with my HTTP Linked Service as it fails to get the token from the Key vault. The following error i receive.
The parameters and expression cannot be resolved for schema operations.
Error Message: { "Message": "ErrorCode=InvalidTemplate, ErrorMessage=
The template function 'linkedService' is not defined or not valid." } Activity ID: c0fc7c4f-9aa4-4e9b-8c4b-db52999c6848
The issue is only in the HTTP Linked service and all the other linked service getting secrets via the Key Vault are working fine.
This was working before but suddenly stoped working. The error is received when try to test the connection
When removing the key vault from the value in the Authorization header and manually entering the key everything works fine.
The key vault template looks like this:
{
"name": "MontekServiceApp",
"properties": {
"parameters": {
"enironment": {
"type": "String",
"defaultValue": "dev"
}
},
"annotations": [],
"type": "HttpServer",
"typeProperties": {
"url": "XXXX",
"enableServerCertificateValidation": true,
"authenticationType": "Anonymous",
"authHeaders": {
"Authorization": {
"type": "AzureKeyVaultSecret",
"store": {
"referenceName": "AzureKeyVault",
"type": "LinkedServiceReference",
"parameters": {
"environment": {
"value": "@linkedService().enironment",
"type": "Expression"
}
}
},
"secretName": "XXX"
}
}
}
}
}