title: How do I handle long running jobs in Azure App Service?
body: <p>I am rather new to hosting in Azure. I have a .net 4.6 Web app, running in Azure as an App Service.</p>
  
  <p>The solution contains some actions, that run for a long time. These get stopped after a 230 seconds timeout, which seems to be an Azure-thing.</p>
  
  <p>I learned that I should place this code in an Azure Function in order to have it running as a background job. Here there should not be a timeout, as long as I don't use the Consumption plan.</p>
  
  <p>I also use Azure Storage in my solution.</p>
  
  <p>My problem is that if I use Azure Functions v1 (NuGet Microsoft.NET.Sdk.Functions v1.0.24), I am forced to use Newtonsoft.Json version =9.0.1
  Meanwhile NuGet WindowsAzure.Storage requires Newtonsoft.Json version >=10.0.2</p>
  
  <p>That breaks for me.</p>
  
  <p>Then I tried out Azure Functions v2. But it only supports .Net Core, which is not an option for me in this project.</p>
  
  <p>My main issue is still to find a way to be able to run these long running tasks.</p>
  
  <p>One way could be to break the job into smaller parts, but in this case, I would like to be handle it in the same request.</p>