azure-webjobs

Multiple Jobs Deployment in Visual Studio Team Services

霸气de小男生 提交于 2019-12-04 05:13:39
问题 I have a VS solution with multiple projects, each project is an independent WebJob which I am hosting in a Single AppServices. I am trying to automate this to Continuous deployment.What would be the best strategy to deploy only job in the solution which is changed? Is there a way to find out the project which is changed as part of the merge to CI? We are using git and this solution is in a single repository. We are using azure-webjobsdk for the projects. 回答1: You can follow below steps to

Launching a long-running process asynchronously

人盡茶涼 提交于 2019-12-04 04:19:14
问题 In our web application, a user can make a change that requires a lot of database tables to update. The load time for all that can be up to 30 seconds. I don't want the user to wait for that to complete before navigating to another page. I've put the long-running code on its own page (say, "updateinfo.aspx") and tried a few solutions, including jQuery AJAX calls to "updateinfo.aspx" or loading an image file that calls "updateinfo.aspx". In all cases, I cannot navigate from the original HTML

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

限于喜欢 提交于 2019-12-04 02:27:58
问题 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

Azure WebJob not accepting a valid(?) CRON expression

旧街凉风 提交于 2019-12-04 00:25:39
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 expression as such, 0 15 3 * * * , Azure will accept it, while crontab.guru will tell me it is wrong. The specification according to crontab.guru is: minute hour date month weekday . The questions.. From where comes the discrepancy? Is it Microsoft that in their traditional ways have a proprietary implementation with a leading zero? If the standard is

How to deploy azure webjob using Octopus

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 22:23:13
问题 How to deploy azure webjob using Octopus deployment? For me, octopus says it is deployed to azure but not able to see my webjob under the website. Can anyone help how to achieve this? 回答1: There is a documentation on how to deploy a web job from octopus Azure Web Apps. I was using Octopus Deploy 3.0 and in my case, I only wanted to deploy a webjob without a web app: I've chosen Azure Web App Deployment Target: And in the deployment section, specify the physical path. For continuous job you

Update (re-deploy) existing azure webjob

ぐ巨炮叔叔 提交于 2019-12-03 22:19:00
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 old version, maintaining the logs? lopezbertoni You can connect to the website where the webjob is at via FTP and update the necessary files without erasing your log files. You can get the credentials to connect via FTP from the Publish Profile. You can also use your website's debug console at: https://yoursitename.scm.azurewebsites.net/DebugConsole

Azure Web Job - Performance impact of multiple functions in the same web job and/or multiple web jobs in the same web app?

岁酱吖の 提交于 2019-12-03 18:09:34
问题 There are 3 ways to deploy a new function via web job: Create a new web app, and deploy a web job with the function in it. Add a new function to an existing web job (so now you have multiple functions in one web job). Add a new web job to a web app (so now you have multiple web jobs in the same web app). All web jobs and web job functions that are on the same web app are hosted on the same VM, so maybe the material impact of all 3 is the same. But I wonder what is the difference. What

Azure Website Continuous Deployment always picks up the wrong project

徘徊边缘 提交于 2019-12-03 15:55:46
I have the following folder structure in my TFS online: The folder names also match the project names in the solution. Legend: green dot: web api 2.0 project red dot: class library blue dot: console app added as a webjob to the web project grey dot: console app only used for testing Working folders for build definition: The build definition was created automatically by connecting Azure to TFS online, and I have only changed the folder, so instead of the Team Project root folder, it points to the folder of this branch, containing the solution file and the folders in the first picture. (This

Azure how to enable full WebJob logs

不想你离开。 提交于 2019-12-03 15:00:44
问题 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 application diagnostics And stops logging. I was going through all settings in my Website with BASIC hosting plan but I was unable to find anything that would fix this issue. How can I enable full webJob logs? 回答1: The way to enable full (continuous)

New Azure WebJob Project - JobHostConfiguration/RunAndBlock missing after NuGet updates

ε祈祈猫儿з 提交于 2019-12-03 13:02:00
Easy Replication Create a new project 'ASP.NET Web Application (.NET Framework). Build compile, update NuGet, all works. Add: Add New Azure WebJob Project. Build, compile. Happy Update NuGet for the WebJob project. Project no longer compiles. Breaking changes were introduced https://github.com/Azure/app-service-announcements/issues/129 So I install Microsoft.Azure.WebJobs.Extensions.Storage This resolves QueueTriggerAttribute But in program.cs static void Main() { var config = new JobHostConfiguration(); if (config.IsDevelopment) config.UseDevelopmentSettings(); var host = new JobHost(config);