Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

enter image description here

Under .NET Core, I don't see Azure WebJob listed.

enter image description here

like image 256
Sam Avatar asked Apr 07 '17 01:04

Sam


People also ask

What is an Azure WebJob?

WebJobs is a feature of Azure App Service that enables you to run a program or script in the same instance as a web app, API app, or mobile app. There is no additional cost to use WebJobs. You can use the Azure WebJobs SDK with WebJobs to simplify many programming tasks.

What is difference between WebJob and Azure function?

Summary. Azure Functions offers more developer productivity than Azure App Service WebJobs does. It also offers more options for programming languages, development environments, Azure service integration, and pricing. For most scenarios, it's the best choice.

Does Azure support .NET core?

Azure App Service is a fully managed platform as a service (PaaS) offering for developers. Here are some key features of App Service: Multiple languages and frameworks - App Service has first-class support for ASP.NET, ASP.NET Core, Java, Ruby, Node. js, PHP, or Python.

How do you deploy a WebJob in Azure?

Once the resource is created, go to the Azure portal, then Resource groups, followed by Resource (web app service created), then webjob Appservice. Click on “Get Publish Profile” and Download. We will use the downloaded published project in the next steps and import it into Visual Studio to publish the web job.


2 Answers

The VS 2017 tooling for .NET Core does not exist yet, although it is planned. It's still possible to write a Core based WebJob and deploy it manually to your Web App. But do note that the WebJob SDK (which is a whole other topic) does not yet support .NET Core (related issue here).

like image 139
David Ebbo Avatar answered Sep 21 '22 13:09

David Ebbo


This is an extremely old question, but I just want to point out that WebJobs for .NET Core is now available. However it works slightly differently in that you need to use a console app with some specific build commands rather than have an actual WebJob template.

More info/tutorials here : https://dotnetcoretutorials.com/2018/10/09/azure-webjobs-in-net-core-part-1/

like image 27
MindingData Avatar answered Sep 21 '22 13:09

MindingData