You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-functions/dotnet-isolated-in-process-differences.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,15 +11,15 @@ recommendations: false
11
11
#Customer intent: As a developer, I need to understand the differences between running in-process and running in an isolated worker process so that I can choose the best process model for my functions.
12
12
---
13
13
14
-
# Differences between isolated worker model and in-process model .NET Azure Functions
14
+
# Differences between the isolated worker model and the in-process model for .NET on Azure Functions
15
15
16
-
There are two process models for .NET functions:
16
+
There are two execution models for .NET functions:
This article describes the current state of the functional and behavioral differences between the two models. To migrate from the in-process model to the isolated worker model, see [Migrate .NET apps from the in-process model to the isolated worker model][migrate].
21
21
22
-
## Execution mode comparison table
22
+
## Execution model comparison table
23
23
24
24
Use the following table to compare feature and functional differences between the two models:
Copy file name to clipboardExpand all lines: articles/azure-functions/dotnet-isolated-process-guide.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -643,7 +643,7 @@ There are a few requirements for running .NET functions in the isolated worker m
643
643
### [Linux](#tab/linux)
644
644
645
645
+[FUNCTIONS_WORKER_RUNTIME](functions-app-settings.md#functions_worker_runtime) must be set to a value of `dotnet-isolated`.
646
-
+[`linuxFxVersion`](./functions-app-settings.md#linuxfxversion) must be set to the [correct base image](update-language-versions.md?tabs=azure-cli%2Clinux&pivots=programming-language-csharp#update-the-language-version), like `DOTNET-ISOLATED|8.0`.
646
+
+[`linuxFxVersion`](./functions-app-settings.md#linuxfxversion) must be set to the [correct base image](update-language-versions.md?tabs=azure-cli%2Clinux&pivots=programming-language-csharp#update-the-stack-configuration), like `DOTNET-ISOLATED|8.0`.
# Update language stack versions in Azure Functions
11
11
12
-
The Azure Functions supports specific versions of each native language. This support changes based on the support of specific versions of each language or language stack. As these supported versions change, you need to update your function app to stay on a supported version. You might also want to update your apps to take advantage of features in newer supported versions of your language. For more information about supported versions, see [Languages](functions-versions.md#languages).
12
+
The support for any given language stack in Azure Functions is limited to [specific versions](functions-versions.md#languages). As new versions become available, you might want to update your apps to take advantage of their features. Support in Functions may also end for older versions, typically aligned to the community end-of-support timelines. See the [Language runtime support policy](./language-support-policy.md) for details. To ensure your apps continue to receive support, you should follow the instructions outlined in this article to update them to the latest available versions.
13
13
14
14
The way that you update your function app depends on:
15
15
16
-
+ The language of your functions; make sure to choose your function language at the [top](#top) of the article.
16
+
+ The language you use to author your functions; make sure to choose your programming language at the [top](#top) of the article.
17
17
+ The operating system on which your app runs in Azure: Windows or Linux.
18
18
+ The [hosting plan](./functions-scale.md).
19
19
20
20
::: zone pivot="programming-language-csharp"
21
-
This article shows you have to update your version of .NET when your app runs in an [isolated worker process](dotnet-isolated-process-guide.md). Apps that run [on .NET 6 in-process](functions-dotnet-class-library.md) can't yet be updated to .NET 8. To migrate your app from in-process to the isolated worker process model, see [Migrate .NET apps from the in-process model to the isolated worker model](migrate-dotnet-to-isolated-model.md).
21
+
This article shows you how to update the .NET version of an app using the [isolated worker model](dotnet-isolated-process-guide.md). Apps that run on [the in-process model](functions-dotnet-class-library.md) can't yet be updated to .NET 8 without switching to the isolated worker model. To migrate to the isolated worker model, see [Migrate .NET apps from the in-process model to the isolated worker model](migrate-dotnet-to-isolated-model.md). For information about .NET 8 plans, including future options for the in-process model, see the [Azure Functions Roadmap Update post](https://aka.ms/azure-functions-dotnet-roadmap).
22
22
::: zone-end
23
-
24
23
25
24
## Prepare to update
26
25
27
-
Before you update the language version in Azure, you should complete these tasks:
26
+
Before you update the stack configuration for your function app in Azure, you should complete these tasks:
28
27
29
28
### 1. Verify your functions locally
30
29
31
-
Before upgrading the language version used by your function app in Azure, make sure that you test and verify your function code locally on the new target language version.
30
+
Make sure that you test and verify your function code locally on the new target version.
31
+
32
+
::: zone pivot="programming-language-csharp"
33
+
Use these steps to update the project on your local computer:
34
+
35
+
1. Ensure you have [installed the target version of the .NET SDK](https://dotnet.microsoft.com/download/dotnet).
36
+
37
+
1. Update your references to the latest stable versions of: [Microsoft.Azure.Functions.Worker](https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker/) and [Microsoft.Azure.Functions.Worker.Sdk](https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker.Sdk/).
38
+
39
+
1. Update your project's target framework to the new version. For C# projects, you must update the `<TargetFramework>` element in the `.csproj` file. See [Target frameworks](/dotnet/standard/frameworks) for specifics related to the chosen version.
40
+
41
+
1. Make any updates to your project code that are required by the new .NET version. Check the version's release notes for specifics. You can also use the [.NET Upgrade Assistant](/dotnet/core/porting/upgrade-assistant-overview) to help you update your code in response to changes across major versions.
42
+
43
+
After you've made those changes, rebuild your project and test it to confirm your app runs as expected.
44
+
::: zone-end
32
45
33
46
### 2. Move to the latest Functions runtime
34
47
35
-
Before updating your language version, make sure your function app is running on the latest version of the Functions runtime (version 4.x). You can determine the runtime version either in the Azure portal or by using the Azure CLI.
48
+
Make sure your function app is running on the latest version of the Functions runtime (version 4.x). You can determine the runtime version either in the Azure portal or by using the Azure CLI.
36
49
37
50
### [Azure portal](#tab/azure-portal)
38
51
@@ -55,22 +68,22 @@ The `FUNCTIONS_EXTENSION_VERSION` setting sets the runtime version. A value of `
55
68
56
69
---
57
70
58
-
If you need to first update your function app to version 4.x, see [Migrate apps from Azure Functions version 3.x to version 4.x](./migrate-version-3-version-4.md). You should follow the instructions in that article rather than just changing the `FUNCTIONS_EXTENSION_VERSION` setting.
71
+
If you need to first update your function app to version 4.x, see[Migrate apps from Azure Functions version 1.x to version 4.x](./migrate-version-1-version-4.md) or [Migrate apps from Azure Functions version 3.x to version 4.x](./migrate-version-3-version-4.md). You should follow the instructions in those articles rather than just changing the `FUNCTIONS_EXTENSION_VERSION` setting.
59
72
60
73
## Publish app updates
61
74
62
-
If you updated your app to run correctly on the new language version, publish the app updates before you update the language version in your function app.
75
+
If you updated your app to run correctly on the new version, publish the app updates before you update the stack configuration for your function app.
63
76
64
77
> [!TIP]
65
78
> To simplify the update process, minimize downtime for your functions, and provide a potential for rollback, you should publish your updated app to a staging slot. For more information, see [Azure Functions deployment slots](functions-deployment-slots.md#add-a-slot).
66
79
67
80
When publishing your updated app to a staging slot, make sure to follow the slot-specific update instructions in the rest of this article. You later swap the updated staging slot into production.
68
81
69
-
## Update the language version
82
+
## Update the stack configuration
70
83
71
-
The way that you update the language or language-stack version depends on whether you're running on Windows or on Linux in Azure.
84
+
The way that you update the stack configuration depends on whether you're running on Windows or on Linux in Azure.
72
85
73
-
When using a [staging slot](functions-deployment-slots.md), make sure to target your updates to the correct slot.
86
+
When using a [staging slot](functions-deployment-slots.md), make sure to target your updates to the correct slot.
74
87
75
88
### [Windows](#tab/windows/azure-portal)
76
89
@@ -79,7 +92,7 @@ When using a [staging slot](functions-deployment-slots.md), make sure to target
79
92
### [Linux](#tab/linux/azure-portal)
80
93
81
94
> [!NOTE]
82
-
> You can only use the Azure portal to update function apps on Linux hosted in a [Premium plan](./functions-premium-plan.md) or a [Dedicated (App Service) plan](./dedicated-plan.md). For apps on Linux hosted in a [Consumption plan](./consumption-plan.md), you must instead use the [Azure CLI](update-language-versions.md?tabs=azure-cli#update-the-language-version).
95
+
> You can only use the Azure portal to update function apps on Linux hosted in a [Premium plan](./functions-premium-plan.md) or a [Dedicated (App Service) plan](./dedicated-plan.md). For apps on Linux hosted in a [Consumption plan](./consumption-plan.md), you must instead use the [Azure CLI](update-language-versions.md?tabs=azure-cli#update-the-stack-configuration).
@@ -104,7 +117,7 @@ Python apps aren't supported on Windows. Select the **Linux** tab instead.
104
117
First, use the [`az functionapp list-runtimes`](/cli/azure/functionapp#az-functionapp-list-runtimes) command to view the supported version values for your language. Then, run the [`az functionapp config set`](/cli/azure/functionapp/config#az-functionapp-config-set) command to update the language version of your function app:
105
118
::: zone-end
106
119
::: zone pivot="programming-language-csharp"
107
-
First, use the [`az functionapp list-runtimes`](/cli/azure/functionapp#az-functionapp-list-runtimes) command to view the supported version values for your language stack (.NET). Then, run the [`az functionapp config set`](/cli/azure/functionapp/config#az-functionapp-config-set) command to update the .NET version of your function app:
120
+
Run the [`az functionapp list-runtimes`](/cli/azure/functionapp#az-functionapp-list-runtimes) command to view the supported version values for .NET on the isolated worker model:
az functionapp config set --net-framework-version "<VERSION>" --name "<APP_NAME>" --resource-group "<RESOURCE_GROUP>" --slot "staging"
135
+
Run the [`az functionapp config set`](/cli/azure/functionapp/config#az-functionapp-config-set) command to update the .NET version of your function app:
136
+
137
+
```azurecli
138
+
az functionapp config set --net-framework-version "v<VERSION>.0" --name "<APP_NAME>" --resource-group "<RESOURCE_GROUP>" --slot "staging"
121
139
```
140
+
122
141
::: zone-end
123
142
::: zone pivot="programming-language-javascript,programming-language-typescript"
124
143
First, use the [`az functionapp list-runtimes`](/cli/azure/functionapp#az-functionapp-list-runtimes) command to view the supported version values for your language stack (Node.js). Then, run the [`az functionapp config set`](/cli/azure/functionapp/config#az-functionapp-config-set) command to update the Node.js version of your function app:
@@ -189,7 +208,7 @@ In this example, replace `<APP_NAME>` and `<RESOURCE_GROUP>` with the name of yo
189
208
190
209
---
191
210
192
-
Your function app restarts after you update the version. To learn more about Functions support policies for native languages, see [Language runtime support policy](language-support-policy.md).
211
+
Your function app restarts after you update the version.
Copy file name to clipboardExpand all lines: includes/functions-dotnet-execution-model.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.date: 07/19/2022
6
6
ms.author: glenga
7
7
---
8
8
9
-
| Execution mode| Description |
9
+
| Execution model| Description |
10
10
| --- | --- |
11
11
|**Isolated worker model**| Your function code runs in a separate .NET worker process. Use with [supported versions of .NET and .NET Framework](../articles/azure-functions/dotnet-isolated-process-guide.md#supported-versions). To learn more, see [Develop .NET isolated worker process functions](../articles/azure-functions/dotnet-isolated-process-guide.md). |
12
12
|**In-process model**| Your function code runs in the same process as the Functions host process. Supports only [Long Term Support (LTS) versions of .NET](../articles/azure-functions/functions-dotnet-class-library.md#supported-versions). To learn more, see [Develop .NET class library functions](../articles/azure-functions/functions-dotnet-class-library.md). |
Copy file name to clipboardExpand all lines: includes/functions-supported-languages.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ ms.custom:
9
9
- ignite-2023
10
10
---
11
11
::: zone pivot="programming-language-csharp"
12
-
The following table shows the runtime and language versions supported for C# functions. Select your preferred development language at the top of the article.
12
+
The following table shows the .NET versions supported by Azure Functions. Select your preferred development language at the top of the article.
13
13
14
-
The supported version of .NET depends on both your Functions runtime version and your chosen .NET worker process model:
14
+
The supported version of .NET depends on both your Functions runtime version and your chosen execution model:
0 commit comments