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

Azure WebJobs - No functions found - How do I make a trigger-less job?

I'm new to Azure WebJobs, I've run a sample where a user uploads an image to blob storage and inserts a record into the Queue, then the job retrieves that from the queue as a signal to do something like resizing the uploaded image. Basically in the…
Ray
  • 12,101
  • 27
  • 95
  • 137
16
votes
1 answer

Warning: Only got partial types from assembly: Microsoft.Azure.WebJobs.Extensions.Storage

I've got a simple .NET V3 WebJob with a timer trigger up and running in a .NET website as outlined in this answer: Scheduled .NET WebJob V3 example However, in the output, I get this warning: warn: Host.Startup[0] Warning: Only got partial…
nmit026
  • 3,024
  • 2
  • 27
  • 53
16
votes
4 answers

Error loading hostpolicy.dll while deploying .NET Core console app to Azure WebJobs

I have followed this tutorial to deploy a .NET Core console application to an Azure Web Service WebJob. My app is running locally without any issue (with dotnet 1.0.0-preview2-003131) but when I try to run it from Azure console I have the following…
user4856537
16
votes
1 answer

How do I deploy an Azure WebJob alongside a .NET Core Web App via Git?

I thought this would be a pretty straightforward task and there is quite a bit of documentation out there but I've had zero luck with any of it and am assuming that it is pretty much all out of date. I have .NET Core MVC 6 Web App that I've been…
Jargon
  • 420
  • 4
  • 14
16
votes
2 answers

Microsoft Azure,Webjob, in which timezone a webjob runs if I schedule a webjob to run daily at specified time using cron expression

I scheduled a webjob to run daily at 2 am using cron expression (0 0 2 * * *) following tutorial from Create a scheduled WebJob using a CRON expression and my server is created in "north central US" region, so i hope it should run in US central…
Chandra_S
  • 319
  • 4
  • 14
16
votes
2 answers

How do I include the app.settings file when publishing (from Visual Studio) an Azure WebJob?

I have a continuous WebJob that I would like to configure to only ever have a single instance. This is achieved by putting the " { enableLogs: 1 } " setting in the app.settings file. What I'm struggling with is the deployment of such a file. That…
user310988
16
votes
1 answer

with azure webjobs how do i pass parameter for a scheduled task

I am creating a dot net console app that will run as an Azure webjob. It is scheduled to run once an hour. I am wondering how I pass a parameter to the job when it is invoked?
yamspog
  • 18,173
  • 17
  • 63
  • 95
16
votes
5 answers

Azure Stop a Triggered Web Job

In Azure, Once a Triggered Web Job has begun? What do we need to do - to stop it? Background: Our Web Job populates a Service Bus Queue that then scale out our worker roles - our worker roles are using a 3rd party API - and are getting errors. This…
Simcha Khabinsky
  • 1,970
  • 2
  • 19
  • 34
15
votes
1 answer

How do I run an Azure WebJob locally?

I want to create a continuously running WebJob but first I want to try and run it locally for debugging. I am using Visual Studio 2015 and I have the Azure storage emulator running (I can run the sample for Azure WebJobs in visual studio). When I…
DanScan
  • 831
  • 2
  • 10
  • 23
15
votes
1 answer

How can I instantiate OWIN IDataProtectionProvider in Azure Web Jobs?

I need an instance of IDataProtectionProvider to generate email confirmation tokens using the Identity Framework UserManager in an Azure Web Jobs worker: var confirmToken = await UserManager.GenerateEmailConfirmationTokenAsync(user.Id); This…
Korijn
  • 1,383
  • 9
  • 27
15
votes
7 answers

Azure webjobs not reading the site appsettings

I've got an azure webjob, that has some appsettings for api keys etc. I've also got a bunch of PRODUCTION azure app settings (specified in the portal), that should override my webjob config appsettings.. But they don't. For my website, they work as…
Matt Roberts
  • 26,371
  • 31
  • 103
  • 180
15
votes
3 answers

How to prevent Azure WebJob from starting up after publishing?

We have an Azure Website setup with a "staging" deployment slot, and we use a continuous Azure WebJob to process long-running background jobs. It appears that when you publish to the Website (and include the WebJob binaries), that the WebJob will…
ericb
  • 3,400
  • 1
  • 21
  • 21
15
votes
2 answers

Azure Web Job writes files in a website's directory

I attached a Web Job to my Azure website. The webjob prepares a file and I want to save it on a proper folder in the website. Environment.CurrentDirectory run on the script returns a path under a Temp directory: …
Miroslav Popov
  • 3,294
  • 4
  • 32
  • 55
14
votes
7 answers

How should I perform a long-running task in ASP.NET 4?

I am building a website using .NET 4. There are lots of MSDN articles dating from 2003, about using Thread objects and 2007, using Asynchronous Pages in .NET 2, but that is all pretty stale. I know .NET 4 brought us the Task class and some people…
Scott Stafford
  • 43,764
  • 28
  • 129
  • 177
14
votes
2 answers

Initiate a message from bot to user on BotFramework

I have a bot built on BotFramework 3.5 and hosted on Azure as a WebApp. I didn't face any problems with implementation of scenarios where the bot needs to respond to user's input. However there is a need to teach him to start conversations by some…
Artem
  • 2,084
  • 2
  • 21
  • 29