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
25
votes
2 answers

Azure WebJob in .NET Core

How do I create an Azure WebJob targeting .NET Core 1.1? In Visual Studio 2017, the only option I'm seeing for Azure WebJob targets .NET Framework -- see below. Under .NET Core, I don't see Azure WebJob listed.
Sam
  • 26,817
  • 58
  • 206
  • 383
24
votes
2 answers

How can I host a TCP Listener in Azure?

I am looking to build an application in Azure which will act as TCP listener, receive TCP message streams on a specified port, and then add the information to a database. The incoming TCP communication will be secured with a certificate. I'm…
James Wood
  • 17,286
  • 4
  • 46
  • 89
24
votes
2 answers

Update (re-deploy) existing azure webjob

I created an on-demand webjob. In the management portal there is no option to upload a new zip, to update it. I can delete the existing webjob and create a new one, but I would like to keep my logs. Is there any way to re-deploy it, overriding the…
Attila Szasz
  • 3,033
  • 3
  • 25
  • 39
24
votes
2 answers

Azure WebJob temp folder

Is there an Azure WebJobs preferred mechanism to obtain a local storage folder/path for processing my blob's data (a sqlite db)? I can get the stream, but need to write it to disk so that Sqlite can open a connection to it. I know…
tillerstarr
  • 2,616
  • 1
  • 21
  • 35
23
votes
4 answers

How to prevent Azure webjobs from being swapped in Azure website production <--> staging slots

I have an Azure website with a production and staging slot with multiple instances. I run several Azure webjobs on the site, some of which are triggered others that are continuous. I understand triggered webjobs will only run once on one instance. …
Sandeep Phadke
  • 862
  • 9
  • 23
22
votes
1 answer

Azure WebJob not accepting a valid(?) CRON expression

I used crontab.guru to create a very simple CRON expression with the desired behavior to execute every day at 3:15 (AM) and this is the result: 15 3 * * * Unfortunately for me, in Azure Portal this does not work, but if I add a leading 0 to my…
Marcus
  • 8,230
  • 11
  • 61
  • 88
22
votes
2 answers

Azure WebJobs - Can I use Async Methods?

I was wondering if the Azure WebJobs SDK can trigger async methods? Currently I have a method that looks like the following: class Program { static void Main(string[] args) { var host = new JobHost(); host.RunAndBlock(); …
ericb
  • 3,400
  • 1
  • 21
  • 21
21
votes
3 answers

Debugging, Source Not Found, AsyncExtensions.cs not found

I am trying to debug a webjob on azure and I get the following error: Source Not Found, AsyncExtensions.cs not found. I am working on VS 2015 and the webjob is part of an ASP.NET MVC solution deployed on Azure. I had published the webjob by…
donquijote
  • 1,642
  • 5
  • 19
  • 41
20
votes
2 answers

Missing dotnet.exe in Azure WebJob

I'm trying to deploy a .NET Core Console App as an Azure WebJob. All files etc. are getting copied to the right directories but my console app its output is a .dll, so it requires dotnet.exe to start. I've added a run.cmd file with the single…
Raymen
  • 582
  • 6
  • 15
20
votes
2 answers

Azure WebJobs SDK - in what scenarios is creation of a JobHost object required?

Most of the samples associated with the Azure WebJobs SDK have startup code that looks like this: static void Main() { JobHost h = new JobHost(); h.RunAndBlock(); } However you can also kick off a WebJob without creating a JobHost object…
Emilio
  • 1,951
  • 3
  • 18
  • 24
19
votes
2 answers

Is it possible to have App.config transforms for an Azure WebJob for different publish profiles?

Where I work, we create Azure web sites and SQL databases for development purposes as needed as well as for staging and production environments. We create a web.config transform for each publish profile to change the database connection string to…
Tyler Pohl
  • 595
  • 1
  • 6
  • 10
19
votes
2 answers

Azure WebJobs Deployment with Continuous Integration on Visual Studio Online

Friends, I am trying to setup Continuous Integration with Azure WebJobs. I have a Web and a WebJobs project in the solution. I have continuous integration and deployment already setup for the web app in Visual Studio Online (*.visualstudio.com). I…
Andy T
  • 1,355
  • 2
  • 19
  • 30
18
votes
1 answer

Not able to see Add->Existing Project as Azure Web Job Option when I right click on Web project in Solution Explorer of Visual Studio 2017

When I right click on the Web Project in the Solution Explorer of Visual Studio 2017, I don't see an option 'Add Existing Project as Azure Web Job'. I did install Nuget-packages such as Microsoft.Web.WebJobs.Publish for the web project. I am…
18
votes
3 answers

Does Azure WebJob look at the app.config once deployed

I have a Web site running on Azure App Services. It has a WebJob that deploys with it, and thus gets put in it's App_data folder once deployed. If I FTP to the wwwroot/app_data folder of my site once deployed, the app.config file has none of the…
Daniel van Heerden
  • 836
  • 1
  • 7
  • 25
18
votes
3 answers

Azure WebJobs Connection Strings configuration ( AzureWebJobsDashboard?? )

I'm trying to work with Azure Webjobs, I understand the way its works but I don't understand why I need to use two connection strings, one is for the queue for holding the messages but why there is another one called "AzureWebJobsDashboard" ? What…
Ron
  • 1,744
  • 6
  • 27
  • 53