azure-webjobs

Azure VM, Cloud service or Web job?

若如初见. 提交于 2019-12-12 16:22:48
问题 I am quite new to Azure and not quite sure what service I need to achieve this: What I want to do is developing an application/service to do some computing tasks. I have created a web API for sending data to my database. I will use the data from my database to perform some computing and store results back in the database. This app/service will be run continuously. I am not sure if I should use a web job or a cloud service or a virtual machine. They all seem to be able to achieve what I want..

Azure WebJobs SDK Service Bus DeadLetter queue

一曲冷凌霜 提交于 2019-12-12 16:06:53
问题 When using the WebJobs SDK what is the proper way to move a BrokeredMessage to the deadletter queue? Usually I would just call msg.DeadLetter(). However, the SDK takes care of managing the life cycle of the brokered message. It will call msg.Complete() if the method returns successful, and it will retry the message if an exception occurs. I need the 3rd case of telling the ServiceBus queue to move the message to the deadletter queue as it is a bad message. 回答1: You can explicitly deadletter

Running Python script from Azure WebJob

主宰稳场 提交于 2019-12-12 15:16:00
问题 I'm trying to run python script from Azure webjob. This is what I've done following this link Access the kudu tool via the url https://<webapp name>.scm.azurewebsites.net and installed Python 364x86 via Site Extensions tab Confirmed Python 364x86 is installed in the following path: D:\home\python364x86 Added my script trading.py in D:\home\python364x86 Created run.bat file with this line of code D:\home\python364x86\python.exe trading.py Included run.bat and trading.py in the webjob zip file

Azure WebJob Deploy Error ManagementCertificatePath

大憨熊 提交于 2019-12-12 14:40:21
问题 I'm trying to deploy 2 WebJobs; 1 continuous and 1 scheduled. Part way through the deployment, the following errors happen: Error 1 The "ManagementCertificatePath" parameter is not supported by the "CreateScheduledWebJob" task. Verify the parameter exists on the task, and it is a settable public instance property. Error 2 The "CreateScheduledWebJob" task could not be initialized with its input parameters. Any ideas how to fix this? Update: I've updated all the NuGet packages and came across 2

Slowcheetah Transforms for Azure Webjobs

青春壹個敷衍的年華 提交于 2019-12-12 14:33:27
问题 In my experience, Slowcheetah does not work with Azure Webjobs. I'm just looking for confirmation as to whether this is the case (or not). Cheers 回答1: I've used this tutorial and it work fine : SlowCheetah VS 2015. Keep in mind that a webjob is just a console app (and more...) Add the slowcheetah nuget package to your webjob project. Add the app.config transform to your project, for example app.Debug.config and app.Release.config Edit your *.csproj file and add these lines (depending on the

What is the clean up mechanism for the blobs that WebJobs SDK creates in the AzureWebJobsDashboard connection?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 11:19:29
问题 Azure WebJob SDK uses the storage connection string defined in the AzureWebJobsStorage and AzureWebJobsDashboard app settings for its logging and dashboard. WebJob SDK creates the following blob container in AzureWebJobsStorage : azure-webjobs-hosts WebJob SDK creates the following blob containers in AzureWebJobsDashboard azure-jobs-host-output azure-webjobs-hosts Many blobs are created in the above blob containers as the WebJob runs. The containers can be bloated or saturated if there is no

.NET Core Azure WebJobs does not read from Azure Application Settings

天大地大妈咪最大 提交于 2019-12-12 11:00:49
问题 I have an app service running with it's respective ConnectionString from Azure Portal. The ConnectionString is point to Azure SQL Server. I have a WebJob with the following appsettings.json { "ConnectionStrings": { "DefaultConnection": "Add your connection string" } } When I run the Web Job, it doesn't seem to pull the Connection strings from the azure portal, but it uses my default ConnectionStrings in appsettings.json. [02/13/2017 08:45:27 > 2942c6: SYS INFO] Status changed to Initializing

ASP.NET Webdeploy failing; AddScheduledJob does not exist in project

无人久伴 提交于 2019-12-12 10:44:12
问题 I have an ASP.NET project with two WebJobs, one of the WebJobs publishes fine but the second fails to publish and I get the following error message: The target "AddScheduledJob" does not exist in the project. Both WebJobs where set up in the "Run on Demand" mode. I am struggling to find any explanation for this error and cannot see what is different between my two WebJobs. Anyone come across this? Edited I eventually found the problem thanks to David Ebbo pointing me in the right direction. I

Unable to get access to Key Vault using Azure MSI on App Service

我与影子孤独终老i 提交于 2019-12-12 10:43:07
问题 I have enabled Managed Service Identities on an App Service. However, my WebJobs seem unable to access the keys. They report: Tried the following 3 methods to get an access token, but none of them worked. Parameters: Connectionstring: [No connection string specified], Resource: https://vault.azure.net, Authority: . Exception Message: Tried to get token using Managed Service Identity. Unable to connect to the Managed Service Identity (MSI) endpoint. Please check that you are running on an

Azure Web Jobs and SignalR memory leak

十年热恋 提交于 2019-12-12 09:56:59
问题 So I have some webjobs that occasionally connect to a signalr hub and broadcast a message. Below is just an example of one, in this case its a simple web job for development with the TimerTrigger attribute that is set to run continuously every 20 seconds. Like that shown in the code below. public static void Main() { JobHostConfiguration config = new JobHostConfiguration(); config.Tracing.ConsoleLevel = TraceLevel.Verbose; config.UseTimers(); if (config.IsDevelopment) { config