Error in Azure WebJobs

落爺英雄遲暮 提交于 2019-11-28 09:59:12

问题


I have created a console app and managed to upload it to the cloud, and I have scheduled it to run every 15 minutes. The console app runs for the first time with success as result and thens fails stating an error in the connection string. Could someone shed light on this please. Would be greatly apprecited.

Thanks

The error message follows:enter image description here

Make sure that you are setting a connection string named AzureJobsRuntime in your Windows Azure Website configuration with a value similar to DefaultEndpointsProtocol=https;AccountName=NAME;AccountKey=KEY pointing to the Windows Azure Storage account where the Windows Azure WebJobs Runtime logs are stored. Please visit the article about configuring connection strings for more information on how you can configure connection strings in your Windows Azure Website.


回答1:


You need to set AzureJobsRuntime as a connection string (for an Azure storage account), you can do that on the Azure portal under: Websites --> Your Website --> CONFIGURE tab --> connection strings.




回答2:


To clarify a couple of possible gotchas (adding to the accepted answer):

Set these values by going to

App Services -> Your Web App -> Settings / "All Settings" -> Application Settings -> (In page under header) Connection strings

There you'll find Name, Value, and a Type drop down.

Name: Do NOT put your storage account name here! Rather, this is where you put AzureWebJobsDashboard for one connection string and on the next AzureWebJobsStorage. The value for these should look like:

DefaultEndpointsProtocol=https;AccountName=<mysupercoolblobstorageaccountname>;AccountKey=<blahblah==>

-- Old Portal -- I've had problems with this before where it was fixed in the old portal, so for that sake:

Old Portal: Your website -> Configure tab -> under 'connection strings', enter two new values: a) dropdown type CUSTOM, for NAME do NOT enter the name of your storage account! rather Name is: 'AzureWebJobsDashboard' or for the other (enter two entries): 'AzureWebJobsStorage'.



来源:https://stackoverflow.com/questions/22767176/error-in-azure-webjobs

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!