GDPR Compliance

We use cookies to ensure you get the best experience on our website. By continuing to use our site, you accept our use of cookies, privacy policy and terms of service.

Technical guide

Azure Functions in-process to isolated worker migration: what actually breaks

Support for the in-process model ended on November 10, 2026, and nothing in it gets patched now. The move to the isolated worker is a rewrite of the function layer, not a version bump, and the risk is concentrated in a few specific places.

Craftware Technologies · Last updated November 22, 2026 · 11-minute read

Support endedNovember 10, 2026The in-process model, which runs only .NET 8
TargetIsolated worker on .NET 10.NET 10 (LTS) is supported through November 14, 2028
Error to avoidAZFD0013Runtime/payload mismatch during the cutover

Where you stand now

Microsoft ended support for the in-process model on November 10, 2026. Since then there are no security updates, no bug fixes and no technical support for it. The retirement notice does not set a date for in-process apps to stop running. What changes is that the next vulnerability found in the model stays unpatched, a support case can be answered with "reproduce this on the isolated worker model," and auditors and customer security questionnaires start counting the app as unsupported.

Two facts make this more than a date problem:

  • The in-process model now runs only .NET 8. It used to run .NET 6 as well, but that ended in November 2024. The isolated worker model runs .NET 8, 9 and 10 and .NET Framework 4.8 on Functions 4.x. .NET 10 is the current long-term-support release, and there is no in-process route to it.
  • The two models are not source compatible. You are rewriting the layer that binds your code to the Functions host: the project file, the startup code, every function signature and the app settings.

If you also run .NET 8 apps that are not Functions, that is a separate and easier question, covered in the .NET 8 and 9 end of support guide.

In-process vs isolated worker: the differences that matter

The in-process model loads your code into the same process as the Functions host. The isolated worker model runs your code in its own .NET process, which is why it can use any .NET version and why the host no longer dictates your dependencies. The rows below are the ones that change code during a migration.

In-process model Isolated worker model
Support Ended November 10, 2026 Supported
.NET versions .NET 8 only .NET 8, 9 and 10, and .NET Framework 4.8
Core packages Microsoft.NET.Sdk.Functions Azure.Functions.Sdk, Microsoft.Azure.Functions.Worker
Binding packages Microsoft.Azure.WebJobs.Extensions.* Microsoft.Azure.Functions.Worker.Extensions.*
Function attribute [FunctionName] [Function]
Startup FunctionsStartup class Program.cs with a HostBuilder
Logging ILogger passed to the function ILogger<T> through dependency injection
Output bindings out parameters, IAsyncCollector<T>, a single return value Return value, or a class with one property per output
Imperative bindings (IBinder) Supported Not supported; inject the service's SDK client
Default JSON serializer Newtonsoft.Json System.Text.Json
Middleware Not supported Supported
Flex Consumption plan Not supported Supported
FUNCTIONS_WORKER_RUNTIME dotnet dotnet-isolated

Find every in-process app

Start with a list. Microsoft's migration guide includes a short Azure PowerShell script that loops through Get-AzFunctionApp in the current subscription and lists the apps whose runtime is dotnet. For a single app, the Azure CLI answers the same question:

az functionapp config appsettings list --name <app-name> --resource-group <rg> \
  --query "[?name=='FUNCTIONS_WORKER_RUNTIME'].value" -o tsv

dotnet means in-process. dotnet-isolated means the app has already moved. In the code, a reference to Microsoft.NET.Sdk.Functions means in-process, and Microsoft.Azure.Functions.Worker means isolated. The .NET end-of-support checker can date an app's .NET version, but neither a runtime list nor a target framework shows which Functions model it uses.

Two things the script will not tell you:

  • Other subscriptions and tenants. Run it once per subscription. Apps owned by a different team, or left behind by a contractor, are the ones that get missed.
  • The Functions runtime version. Check FUNCTIONS_EXTENSION_VERSION. The migration assumes ~4, which is Functions 4.x. An app on runtime 1.x, 2.x or 3.x needs a host upgrade first, and that is its own piece of work.

What changes in the code

There are four layers. None is hard and all of them are mechanical, which is exactly why they add up across a few dozen functions.

The project file

Microsoft.NET.Sdk.Functions goes. For a .NET 10 target, the project SDK becomes Azure.Functions.Sdk/1.0.0, the target framework becomes net10.0, and you add the worker package, the ASP.NET Core HTTP integration and Application Insights. Before:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
    <AzureFunctionsVersion>v4</AzureFunctionsVersion>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.1.1" />
  </ItemGroup>
</Project>

After (use the current stable version of each package):

<Project Sdk="Azure.Functions.Sdk/1.0.0">
  <PropertyGroup>
    <TargetFramework>net10.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>
  <ItemGroup>
    <FrameworkReference Include="Microsoft.AspNetCore.App" />
    <PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.52.0" />
    <PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="2.1.0" />
    <PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.22.0" />
    <PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="1.2.0" />
  </ItemGroup>
  <ItemGroup>
    <Using Include="System.Threading.ExecutionContext" Alias="ExecutionContext"/>
  </ItemGroup>
</Project>

Every package in the Microsoft.Azure.WebJobs.* namespace has to go, and so does Microsoft.Azure.Functions.Extensions. Microsoft's guidance is that an isolated worker app should reference none of them. Each binding extension has an isolated equivalent:

In-process package Isolated worker package
Microsoft.Azure.WebJobs.Extensions.Storage Microsoft.Azure.Functions.Worker.Extensions.Storage.Blobs, .Storage.Queues and .Tables
Microsoft.Azure.WebJobs.Extensions.ServiceBus Microsoft.Azure.Functions.Worker.Extensions.ServiceBus
Microsoft.Azure.WebJobs.Extensions.CosmosDB Microsoft.Azure.Functions.Worker.Extensions.CosmosDB
Microsoft.Azure.WebJobs.Extensions.EventHubs Microsoft.Azure.Functions.Worker.Extensions.EventHubs
Microsoft.Azure.WebJobs.Extensions.EventGrid Microsoft.Azure.Functions.Worker.Extensions.EventGrid
Microsoft.Azure.WebJobs.Extensions.DurableTask Microsoft.Azure.Functions.Worker.Extensions.DurableTask
Timer trigger (built into the in-process SDK) Microsoft.Azure.Functions.Worker.Extensions.Timer
Microsoft.Azure.Functions.Extensions (DI and startup) Remove it; the isolated worker does this by default

Program.cs replaces Startup

The Startup class with the FunctionsStartup attribute is replaced by a HostBuilder in Program.cs. Anything you registered through IFunctionsHostBuilder.Services moves into ConfigureServices:

using Microsoft.Azure.Functions.Worker;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

var host = new HostBuilder()
    .ConfigureFunctionsWebApplication()
    .ConfigureServices(services =>
    {
        services.AddApplicationInsightsTelemetryWorkerService();
        services.ConfigureFunctionsApplicationInsights();

        // Everything that used to be in FunctionsStartup.Configure goes here.
    })
    .Build();

host.Run();

Delete the old startup class once everything has moved. If the app has no HTTP triggers, ConfigureFunctionsWorkerDefaults replaces ConfigureFunctionsWebApplication, though Microsoft recommends keeping the ASP.NET Core framework reference for performance.

The function signatures

The HTTP trigger is the clearest before and after. In-process:

using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Extensions.Logging;

public static class HttpTriggerCSharp
{
    [FunctionName("HttpTriggerCSharp")]
    public static IActionResult Run(
        [HttpTrigger(AuthorizationLevel.Function, "get", Route = null)] HttpRequest req,
        ILogger log)
    {
        log.LogInformation("C# HTTP trigger function processed a request.");
        return new OkObjectResult($"Welcome to Azure Functions, {req.Query["name"]}!");
    }
}

Isolated worker on .NET 10:

using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.Functions.Worker;
using Microsoft.Extensions.Logging;

public class HttpTriggerCSharp(ILogger<HttpTriggerCSharp> logger)
{
    [Function("HttpTriggerCSharp")]
    public IActionResult Run(
        [HttpTrigger(AuthorizationLevel.Function, "get")] HttpRequest req)
    {
        logger.LogInformation("C# HTTP trigger function processed a request.");
        return new OkObjectResult($"Welcome to Azure Functions, {req.Query["name"]}!");
    }
}

The rules behind that change:

  • [FunctionName] becomes [Function]. The signature is the same, so find and replace works.
  • The ILogger parameter is no longer supplied. Inject ILogger<T> through the constructor.
  • Triggers mostly keep their names (QueueTrigger is QueueTrigger in both). Input bindings gain an Input suffix (CosmosDB becomes CosmosDBInput). Output bindings gain Output (Queue becomes QueueOutput, and Blob becomes BlobOutput, which drops the FileAccess parameter).
  • Output bindings leave the parameter list. One output goes on the return value. Several outputs need a class with an attribute on each property.
  • IAsyncCollector<T> becomes an array, T[]. IBinder is gone, so inject a client for the service instead.

Here is the multiple-output case, an HTTP function that also writes to a queue. In-process, the queue was a parameter:

[FunctionName("HttpExample")]
public static async Task<IActionResult> Run(
    [HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)] HttpRequest req,
    [Queue("outqueue"), StorageAccount("AzureWebJobsStorage")] ICollector<string> msg,
    ILogger log)

Isolated, it becomes a return type:

public class MultiResponse
{
    [QueueOutput("outqueue", Connection = "AzureWebJobsStorage")]
    public string[] Messages { get; set; }

    [HttpResult]
    public IActionResult HttpResponse { get; set; }
}

[Function("HttpExample")]
public MultiResponse Run([HttpTrigger(AuthorizationLevel.Function, "get", "post")] HttpRequest req)

The settings

FUNCTIONS_WORKER_RUNTIME changes to dotnet-isolated in local.settings.json and in the app settings in Azure:

{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "UseDevelopmentStorage=true",
    "FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated"
  }
}

host.json needs no changes for the model itself. Two caveats: logging, covered below, and extension upgrades. If moving packages also moves an extension to a new major version, its host.json section can change shape. The Service Bus extension's settings, for example, are structured differently between versions 4.x and 5.x.

What breaks quietly

These compile cleanly and fail with production data or production traffic. They are where the time goes.

Newtonsoft attributes are silently ignored Data loss

The in-process model used Newtonsoft.Json. The isolated worker defaults to System.Text.Json, which ignores Newtonsoft attributes such as [JsonProperty] and [JsonIgnore] and binds the affected property to its default value without raising an error. A payload that deserialized correctly last week arrives with empty fields, and nothing logs a warning. Search the solution for Newtonsoft.Json attributes on every type a function binds to, then either replace them with System.Text.Json equivalents such as [JsonPropertyName] or configure Newtonsoft as the worker's serializer.

Synchronous HTTP stream I/O throws HTTP 500

With ASP.NET Core integration, synchronous reads and writes on the request and response streams fail with InvalidOperationException: Synchronous operations are disallowed. Replace ReadToEnd with ReadToEndAsync, Write with WriteAsync, WriteString with WriteStringAsync and Flush with FlushAsync, mark the method async and wrap the return type in Task<T>. If a dependency cannot do async I/O, AllowSynchronousIO is a compatibility switch. Treat it as temporary.

Your Information logs disappear Logging

In the isolated model, host.json only controls logs from the Functions host. Logs from your own code are filtered in Program.cs, and with the Application Insights SDK setup shown above, its logging provider captures only Warning and above by default. If you do nothing, the Information-level traces you relied on stop arriving, and the first time anyone notices is usually during an incident. Remove the default rule and set your own levels:

.ConfigureLogging(logging =>
{
    logging.Services.Configure<LoggerFilterOptions>(options =>
    {
        var defaultRule = options.Rules.FirstOrDefault(rule => rule.ProviderName
            == "Microsoft.Extensions.Logging.ApplicationInsights.ApplicationInsightsLoggerProvider");
        if (defaultRule is not null)
        {
            options.Rules.Remove(defaultRule);
        }
    });
})

Multiple outputs lose the HTTP response HTTP

With ASP.NET Core integration, the property that carries the HTTP result in a multiple-output class needs the [HttpResult] attribute. It needs Azure.Functions.Sdk 1.0.0 or later, version 3.2.0 or later of the HTTP extension and version 1.3.0 or later of the ASP.NET Core extension. A mechanical conversion does not add it, so check every multiple-output class that carries an HTTP response.

Binding types differ Runtime

Check each binding's reference page for the types it accepts in the isolated model. A type that bound in-process may not bind now, and the error appears when the function first runs, not at build time. Where the binding offers SDK types (BlobClient, ServiceBusReceivedMessage and others), they are usually the better choice.

Durable Functions is its own migration Budget separately

The package changes to Microsoft.Azure.Functions.Worker.Extensions.DurableTask, IDurableOrchestrationContext becomes TaskOrchestrationContext, IDurableOrchestrationClient becomes DurableTaskClient, and entity proxies created with CreateEntityProxy<T> become direct CallEntityAsync and SignalEntityAsync calls. Microsoft publishes a separate migration guide and an API mapping table. Plan this as separate work, and test orchestrations that are in flight when you cut over.

What this looks like in practice

One recent example: we moved a client's Azure Functions app from .NET 6 on the in-process model straight to .NET 10 on the isolated worker. It used HTTP, timer and Service Bus triggers, and the migration took one developer about two weeks. Going straight to .NET 10 meant the function layer was rewritten once, not twice. We ran it with two slots, one for UAT testing and one for production, so the migrated code was tested before anything reached production users.

Errors after migrating

These are the errors that show up in the first hour after a cutover, with the cause of each.

AZFD0013: runtime/payload mismatch

The configured FUNCTIONS_WORKER_RUNTIME and the deployed code do not match. Either the setting says dotnet-isolated while in-process code is still deployed, or the other way round. It is expected for the moment between the two changes, which is why the deploy order below uses a staging slot. If it persists, check the setting on the slot you are looking at and whether a pipeline reset it.

The app fails to start after changing the setting

The same mismatch, seen from the outside. Changing only FUNCTIONS_WORKER_RUNTIME without deploying migrated code, or deploying migrated code without the setting, leaves the host unable to start your functions. Microsoft's troubleshooting guidance is to update the code first, then the setting.

Functions are missing from the portal

The host started but found no functions. The usual causes are a missing Program.cs entry point, functions still marked [FunctionName] instead of [Function], or a project still referencing in-process packages. Check the deployment package for the worker's output, not only the build.

HTTP 500 with JSON deserialization errors

The serializer changed from Newtonsoft.Json to System.Text.Json. Look for Newtonsoft attributes, enums sent as strings, custom converters and polymorphic types. The quieter version of this bug does not throw at all; see the Newtonsoft item above.

InvalidOperationException: Synchronous operations are disallowed

Synchronous stream I/O under ASP.NET Core integration. Make the reads and writes async, as described above.

The deploy order that avoids an outage

This is where most of the avoidable pain is. Changing FUNCTIONS_WORKER_RUNTIME and publishing the new code are two separate operations, and each one restarts the app. Between them, the code and the configured runtime do not match, and the app reports AZFD0013. Done directly on a production app, that window happens in production.

Use a staging slot:

  1. Create a deployment slot if you do not have one.
  2. Set FUNCTIONS_WORKER_RUNTIME to dotnet-isolated on the staging slot. Do not mark it as a slot setting. If you are also changing .NET version, update the slot's stack configuration.
  3. Publish the migrated project to the staging slot. Expect errors in the staging logs while the two changes land.
  4. Confirm the errors have stopped and the app behaves as expected, including every trigger type, not only HTTP.
  5. Swap. The swap applies everything as a single update, so production never sees the mismatch.
  6. Confirm production, then update every CI/CD pipeline and infrastructure template so it keeps dotnet-isolated and the right .NET version. A pipeline that resets the setting is a classic way to undo a finished migration.

If you publish from Visual Studio to an existing in-process app, it offers to change the runtime setting for you. It looks like one operation, but it is still two, and you can still see errors in between.

If you would rather hand the cutover to someone who has run it before, we do this as a fixed-price Azure Functions migration, per function app.

Two decisions to make before you start

  • Check the hosting plan. .NET 10 apps cannot run on Linux in the Consumption plan. For .NET 10 on Linux, Microsoft's route is the Flex Consumption plan, which means a new app with its own migration steps, not a setting change. Windows Consumption and the other plans are not affected, so check the plan before you choose a target version.
  • Go straight to .NET 10. If you are rewriting every function anyway, moving from .NET 8 in-process to .NET 8 isolated and then to .NET 10 later does the work twice. Target .NET 10 directly unless a dependency blocks it.

The .NET Upgrade Assistant can automate part of the project conversion, and it is worth running. It does not find the problems in "What breaks quietly," so do not treat a clean run as a finished migration.

A Functions migration that compiles is about a third done. The rest is proving that every payload, log line and trigger behaves the way it did before.

More guides

Craftware Technologies builds and modernizes custom .NET and Azure software from Sugar Land, Texas, with senior engineers in US Central time. If you are working through an Azure Functions migration and want a second pair of eyes on the Durable Functions or binding changes, sales@craftwaretech.com reaches us.