I have created an azure function to send email using sendgrid but get the below error.
The 'Function1' function is in error: Microsoft.Azure.WebJobs.Host: Error indexing method 'Function1'. Microsoft.Azure.WebJobs.Host: Unable to resolve the value for property 'SendGridAttribute.ApiKey'. Make sure the setting exists and has a valid value
I took the sample from Azure Functions SendGrid bindings - asynchronous
Given in the local.settings.json like below:
{
"IsEncrypted": false,
"Values":
{
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet",
"AzureWebJobsServiceBus": " ..."
//"AzureWebJobsSendGridApiKey": "..."
}
}
0 Replies