Azure WebJob is not using Environmental settings of WebApp

Johnny Slos 0 Reputation points
2023-03-06T19:12:09.15+00:00

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 ?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,798 questions
{count} votes