Questions tagged [azure-webjobs]

Provides an easy way for you to run programs such as services or background tasks in an Azure Web App (previously known as Websites).

The WebJobs feature of Windows Azure Web Apps provides an easy way for you to run programs such as services or background tasks in a Web App. See the Azure WebJobs SDK Wiki page for how to get started, documentation, code samples, and useful links.

2237 questions
31
votes
2 answers

Use Azure Application Insights with Azure WebJob

The Azure documentation covers many examples of integrating Azure Application Insights into different applications types, such as ASP.NET, Java, etc. However, the documentation doesn't show any examples of integrating Application Insights into a…
Chris Pietschmann
  • 29,502
  • 35
  • 121
  • 166
30
votes
4 answers

AzureWebJobsDashboard Configuration Error

I created a new Azure WebJob project in Visual Studio 2015 using .NET Framework 4.6. In the app.config, I set three connection strings: AzureWebJobsDashboard AzureWebJobsStorage MyDatabaseConnectionString The AzureWebJobsDashboard and…
Sam
  • 26,817
  • 58
  • 206
  • 383
29
votes
7 answers

Azure WebJobs ServiceBus returns Exception: found 2 DNS claims in authorization context

I'm trying to read a message from an Azure ServiceBus queue using an Azure WebJob but it's throwing and exception: Unhandled Exception: System.InvalidOperationException: Found 2 DNS claims in authorization context. I've set the correct connection…
28
votes
1 answer

Azure Functions: ICollector vs IAsyncCollector

What's the difference between ICollector and IAsyncCollector in Azure Functions when writing C# functions (also applies to WebJobs)? I understand from the samples that these are interfaces I can use to bind a function parameter to an output…
Chris Gillum
  • 14,526
  • 5
  • 48
  • 61
28
votes
3 answers

Azure Function logging using TraceWriter in external library

How can I reuse the TraceWriter object available in an Azure Function to log information in an externally referenced library? I tried passing in the object using the constructor and referencing the TraceWriter class (web.http.tracing). I didn't have…
Lance
  • 592
  • 2
  • 7
  • 13
28
votes
3 answers

Azure WebJob timeout configuration settings

We have an Azure web site with a daily scheduled job. In our case, the scheduled job runs a stored procedure that takes about 10 minutes so there is no local processing. Our web job is terminating after about 4 minutes with this error. Command 'cmd…
Ender2050
  • 6,912
  • 12
  • 51
  • 55
28
votes
3 answers

Azure WebJobs and Deployment Slots

What will happen when I deploy a continuously running Azure WebJob with a QueueTrigger (queue connection defined in app.config) into a Deployment Slot (for example "Staging")? Will it start to run and listen to messages in the queue or will only…
pbering
  • 933
  • 6
  • 8
27
votes
2 answers

How to make azure webjob run continuously and call the public static function without automatic trigger

I am developing a azure webjob which should run continuously. I have a public static function. I want this function to be automatically triggered without any queue. Right now i am using while(true) to run continuously. Is there any other way to do…
Mukil Deepthi
  • 6,072
  • 13
  • 71
  • 156
27
votes
3 answers

How do I setup Connection Strings for a WebJob project?

I am trying to setup a website and webjob, but get an error everytime I try to publish the webjob independently of the website (i.e. Selecting Publish as Azure WebJob from the context menu) C:\Program Files …
Enrico
  • 10,377
  • 8
  • 44
  • 55
27
votes
2 answers

Why do I need to configure connection strings for WebJobs in Azure Management Portal rather than in the App.config of my WebJob?

I created a scheduled Azure WebJob by right clicking on my WebApp project and adding a New Azure web project. I set the the AzureWebJobsDashboard and AzureWebJobsStorage connection strings in the App.config of the WebJob project. I left the default…
Tyler Pohl
  • 595
  • 1
  • 6
  • 10
27
votes
2 answers

Azure how to enable full WebJob logs

When I run a console application as a WebJob in Windows Azure, after few lines of log it adds a warning: [05/06/2014 09:42:40 > 21026c: WARN] Reached maximum allowed output lines for this run, to see all of the job's logs you can enable website…
Vojtech B
  • 2,837
  • 7
  • 31
  • 59
27
votes
1 answer

Will an Azure Web job run on multiple instances?

I am planning to deploy a website to Azure, that will utilize Web Jobs. If the site is scaled up to run on multiple instances, should I expect the job to be started on all the instances as well (running concurrently), or can I expect there to only…
driis
  • 161,458
  • 45
  • 265
  • 341
26
votes
4 answers

Mystery? Azure DaaS Webjob

This week I have noticed a continuous webjob on my teams azure portal. No one on the team says they have deployed it, or are familiar with it. I found this blog: https://azure.microsoft.com/en-ca/blog/daas/ Referring something potentially related,…
DMarczak
  • 729
  • 1
  • 9
  • 19
26
votes
3 answers

Azure ServiceBus Message Serialization/Deserialization

I am using a .NET Core application to send an object through an Azure Service Bus Queue and have it received by a Web Job (.NET Core as well.) My question is how to serialize/deserialize to send/receive the object? I found lots of references to the…
Username Not Exist
  • 491
  • 2
  • 5
  • 13
26
votes
9 answers

The target “ResolveWebJobFiles” does not exist in the project in Azure Website

I have a Windows Azure project consisting of ASP.NET project (using NancyFX) deployed as Azure Website Business Logic class library Unit test class library 2 Console apps I want those 2 console app to be deployed as Azure WebJobs with the Azure…
Igor Kulman
  • 16,211
  • 10
  • 57
  • 118