Make sure that you are setting a connection string named AzureWebJobsDashboard
See original GitHub issueWebJobsDashboard
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.
- Why is
AzureWebJobsDashboard
required when no call to.AddDashboardLogging()
is made? - 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:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
Thank you! Updated documentation is music to my ears.
@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