azure-webjobs

.NET Core 2 Console App Dependencies Issue on Azure

北慕城南 提交于 2019-12-02 00:55:34
Short version of the problem: I'm having difficulties including the assemblies my .NET Core Console App depends on. Initially, the assemblies from NuGet packages were not included in the bin folder even though I could run the app in Debug mode without any problems. Found an article that suggested that I should add <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> in the myapp.csproj file which I did. Doing so included the dll files for the NuGet packages in the bin folder BUT after I copied my console app to Azure to run as a WebJob, I got an error telling me that System.Data

Publish as Azure WebJob not working in VS 2013

我的未来我决定 提交于 2019-12-02 00:29:33
问题 I'm trying to publish a Azure website along with some azure webjobs using Visual Studio 2013. I'm following this tutorial. My solution has the following structure: When I try to add an existing project as a webjob to my Web project I get a blank dropdown in the Project Name options and I can't: If I try to add each webjob individually I also have an error: In this link it looks like they had a similar problem and the issue due to the fact that the webjobs are under a solution folder. There's

Running Azure PowerShell commands from a webjob

守給你的承諾、 提交于 2019-12-02 00:23:54
Update : I used Azure Automation per BenV's suggestion below and it worked! More info can be found here . I have a PowerShell script that needs to run a few Azure commands like New-AzureStorageContext , Get-AzureStorageContainer , Set-AzureStorageBlobContent , etc. I'd like to run the script as a webjob. When I run this script as a webjob I receive errors below on the Azure commands. Other PS commands run successfully from the webjob. I searched StackOverflow and couldn't find posts for these errors generated when Azure commands are run from a webjob. Somewhat related posts mentioned to use

Publish as Azure WebJob not working in VS 2013

為{幸葍}努か 提交于 2019-12-01 22:36:00
I'm trying to publish a Azure website along with some azure webjobs using Visual Studio 2013. I'm following this tutorial . My solution has the following structure: When I try to add an existing project as a webjob to my Web project I get a blank dropdown in the Project Name options and I can't: If I try to add each webjob individually I also have an error: In this link it looks like they had a similar problem and the issue due to the fact that the webjobs are under a solution folder. There's no answer/solution to the problem in that thread though. I was wondering if there's a solution

Azure Storage Queue and multiple WebJobs instances: will QueueTrigger set the message lease time on triggered?

五迷三道 提交于 2019-12-01 19:01:22
问题 Scenario: producer send a message into the Storage Queue, a WebJobs process the message on QueueTrigger, each message must only be processed once, there could be multiple WebJob instances. I've been googling and from what I've read, I need to write the function that processes the message to be idempotent so a message isn't processed twice. I've also read that there is a default lease time of 10 minutes for a message. My question is, when the QueueTrigger is triggered on one WebJob instance,

Azure Storage Queue and multiple WebJobs instances: will QueueTrigger set the message lease time on triggered?

拥有回忆 提交于 2019-12-01 18:38:59
Scenario: producer send a message into the Storage Queue, a WebJobs process the message on QueueTrigger, each message must only be processed once, there could be multiple WebJob instances. I've been googling and from what I've read, I need to write the function that processes the message to be idempotent so a message isn't processed twice. I've also read that there is a default lease time of 10 minutes for a message. My question is, when the QueueTrigger is triggered on one WebJob instance, does it set the lease time on the message so that another WebJob can't pick up the same message? If so

Azure webjob; Scheduled execution as well triggers by queue

天大地大妈咪最大 提交于 2019-12-01 17:38:24
I try to figure out if it's possible to make one Azure webjob and behave it scheduled for say like once per 1 minute and also let it be able to be triggered by a queue. I managed to do both of the requirements separate but not combined in one job. I know that in order to make them trigger on a queue I need to use JobHost and a Functions class with methods that catch the trigger. Still this blocks the scheduler and only handles triggers When I omit the JobHost... well then the schedule works perfect. I'm pretty sure that I'm asking a contradiction and just need to make two seperate jobs but

What happens when a scheduled WebJob runs for a long time

你离开我真会死。 提交于 2019-12-01 17:01:07
What happens if an Azure WebJob is scheduled to run but the previous running instance hasn't finished yet? Will it run the WebJob again so that two are running at once? Will it not run the WebJob and start the clock over? I haven't been able to find this behavior documented anywhere. I have a job I want to run hourly but it's possible that sometimes it might take longer than an hour to complete, but I never want two of them running at once. As i understand it scheduled webjobs is just triggered webjobs that is run using Azure Scheduler, if you open Azure Scheduler in management portal you can

getting exception after webjob sdk code fork for public class ServiceBusTriggerAttribute

穿精又带淫゛_ 提交于 2019-12-01 14:21:42
问题 I get all webjod sdk code from here I want to make class ServiceBusTriggerAttribute public and non sealed and created nuget package using Microsoft.Azure.WebJobs.ServiceBus.dll but when I use this nuget in my webjob project getting below exception. An unhandled exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll Additional information: Could not load file or assembly 'Microsoft.Azure.WebJobs.ServiceBus, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or

Using .NET Core 2.0 Libraries in WebJob Targeting .NET Framework 4.7

风格不统一 提交于 2019-12-01 13:50:12
I have a bunch of class libraries created in .NET Core 2.0 that I'd like to use in a new WebJobs project I'm creating. The WebJobs project targets .NET Framework 4.7. When I try to reference them, I get an error that reads: Assembly 'MyNetCore20Library' with identity ... uses 'System.Runtime, Version=4.2.0.0... which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f11d50a3a' Any idea how I can use my .NET Core 2.0 libraries in a new WebJobs project? P.S. Unfortunately, we can not yet create