Azure WebJob is not using Environmental settings of WebApp
Johnny Slos
0
Reputation points
In my WebJob (who's been running for years, still in .Net 4.5.2) I read the config using
var config = new JobHostConfiguration
{
DashboardConnectionString = ConfigurationManager.ConnectionStrings["AzureWebJobsDashboard "].ToString(),
StorageConnectionString = ConfigurationManager.ConnectionStrings["MapatoWebJobsStorage"].ToString(),
};
I double checked the env setting, they are ok. When I check via KUDU I can see the correct connection string. But when the webjob runs, it fails indicating is has no access to storageaccount xxxx. xxxx being a dev storage account that is stored in the App.config. Any suggestions ?
Sign in to answer