question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make sure that you are setting a connection string named AzureWebJobsDashboard

See original GitHub issue

WebJobsDashboard is being deprecated. Nowhere in my code I’ve configured it, yet get the following errors when reviewring webjob execution in Kudu SCM portal:

Make sure that you are setting a connection string named `AzureWebJobsDashboard` in your Microsoft Azure Website configuration by using the following format `DefaultEndpointsProtocol=https;AccountName=NAME;AccountKey=KEY` pointing to the Microsoft Azure Storage account where the Microsoft 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 Microsoft Azure Website.

and

The configuration is not properly set for the Microsoft Azure WebJobs Dashboard. In your Microsoft Azure Website configuration you must set a connection string named `AzureWebJobsDashboard` by using the following format `DefaultEndpointsProtocol=https;AccountName=NAME;AccountKey=KEY` pointing to the Microsoft Azure Storage account where the Microsoft 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 Microsoft Azure Website.

I’ve tried to set up ConnectionStrings:AzureWebJobsDashboard with the connection string, but that doesn’t work.

  1. Why is AzureWebJobsDashboard required when no call to .AddDashboardLogging() is made?
  2. Where’s can I find documentation on what needs to take place?

Repro steps

public static IHostBuilder ConfigureConcierge(this IHostBuilder hostBuilder)
        {
            hostBuilder.ConfigureHostConfiguration(builder =>
            {
                builder.SetBasePath(Directory.GetCurrentDirectory());
                builder.AddEnvironmentVariables(prefix: "ASPNETCORE_");
                builder.AddEnvironmentVariables();
            });

            hostBuilder.ConfigureAppConfiguration((context, builder) =>
            {
                builder.SetBasePath(Directory.GetCurrentDirectory());
                builder.AddJsonFile($"appsettings.{context.HostingEnvironment.EnvironmentName.ToLowerInvariant()}.json", optional: true);

                var configuration = builder.Build();

                var appConfigurationConnectionString = configuration.GetConnectionString("AppConfigurationConnectionString");
                builder.AddAzureAppConfiguration(o => o.Connect(appConfigurationConnectionString)
                    .Use("*", labelFilter: context.HostingEnvironment.EnvironmentName));
            });

            hostBuilder.ConfigureWebJobs(builder =>
            {
                builder.AddAzureStorageCoreServices();
                builder.AddAzureStorage();
                builder.AddTimers();
            });

            hostBuilder.ConfigureLogging((context, builder) => { builder.AddConsole(); });

            hostBuilder.ConfigureServices((context, services) =>
            {
                services.AddSingleton<ITypeLocator>(new FunctionsLocator());
                services.AddScoped<PoisonErrorSlackNotifierFunction>();
                services.AddScoped<ErrorQueueToBlobFunction>();
                services.AddHttpClient();
            });

            return hostBuilder;
        }

Expected behavior

Expected to work.

Actual behavior

Doesn’t work with the warning/errors above.

Related information

Provide any related information

Microsoft.Azure.WebJobs: 3.0.6 Microsoft.Azure.WebJobs.Extensions: 3.0.1 Microsoft.Azure.WebJobs.Extensions.Storage: 3.0.5

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
SeanFeldmancommented, Apr 22, 2019

Thank you! Updated documentation is music to my ears.

1reaction
paulbatumcommented, Apr 22, 2019

@SeanFeldman BTW it looks like some of the app insights content has been migrated to the official docs site - also take a look at this content: https://docs.microsoft.com/en-us/azure/app-service/webjobs-sdk-get-started#add-application-insights-logging

Read more comments on GitHub >

github_iconTop Results From Across the Web

AzureWebJobsDashboard Configuration Error
In your Microsoft Azure Website configuration you must set a connection string named AzureWebJobsDashboard by using the following format ...
Read more >
azure web jobs dashboard is not working when configuring ...
In your Microsoft Azure Website configuration you must set a connection string named AzureWebJobsDashboard by using the following format ...
Read more >
Set Azure WebJob Connection Strings with PowerShell
Make sure that you are setting a connection string named AzureWebJobsDashboard in your Microsoft Azure Website configuration by using the ...
Read more >
Background tasks for your web site using Azure WebJobs
“Make sure that you are setting a connection string named AzureWebJobsDashboard in your Microsoft Azure Website configuration by using the ...
Read more >
Where can I get the AzureWebJobsDashboard connection ...
The connection string is available in the Azure Management Portal (classic) by click on Storage in the left navigation, highlight the storage ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found