New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve error message for Timer trigger when AzureWebJobsStorage is not set #6
Comments
From @lindydonna on December 15, 2016 1:49 @TonyAbell Did you have a value for AzureWebJobsStorage in appsettings.json? This is likely a poor error message that needs to be improved. |
From @desinole on December 15, 2016 16:5 I had the same issue with a brand new TimerTrigger project. Setting the "AzureWebJobsStorage" value to "UseDevelopmentStorage=true" in the appsettings.json file fixed it |
From @lindydonna on December 21, 2016 22:2 @ahmelsayed's proposal:
|
From @lindydonna on December 21, 2016 22:3 Error message issue will be fixed with Azure/azure-functions-host#1069 |
@ahmelsayed I have tried the following and still having issues. Can you pls shed some light? |
You should use a connection string for AzureWebJobsStorage. Local development storage isn't guaranteed to work correctly. Here's a video walkthrough that shows how to get the setting: https://regularitguy.com/2017/01/11/the-coolness-of-visual-studio-azure-functions-tools/ |
Fixed. |
@lindydonna Is there any way to have this setting pulled from here? The reason I'm asking is because I don't have anything environment specific in my project files. My resource templates configure all the settings I need in the Azure App Service instance. |
I think these settings can be retrieved via ConfigurationManager.AppSettings["SettingName"]. Did you try this? |
Well, this is the webjobs/functions framework that requires these settings. So it won't be up to me to pull them. But it appears to be working to just have them set in the application settings as a string. @lindydonna - This might be another one of those grey areas of requirements/functionality I seem to be good at finding. Functions apps do have some prerequisites, so when I want to automate my deployments, I have to know that certain infrastructure and associated credentials have to exist and be made available to the app service instance. |
You can use Using an ARM template to automate Function App creation is documented here: https://docs.microsoft.com/en-us/azure/azure-functions/functions-infrastructure-as-code |
From @TonyAbell on November 27, 2016 19:51
Steps
(Select timer template, and give it a name of timer)
Error
Language
I have tried this on the following languages, with the same results for each one.
@ahmelsayed
Copied from original issue: Azure/azure-functions-host#993
The text was updated successfully, but these errors were encountered: