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/functions-versions.md
+70Lines changed: 70 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,60 @@ Any function app pinned to `~2.0` continues to run on .NET Core 2.2, which no lo
69
69
70
70
Azure Functions version 4.x (Preview) is highly backwards compatible to version 3.x. Many apps should safely upgrade to 4.x without significant code changes. Be sure to test extensively before changing the major version in production apps.
71
71
72
+
### Upgrading an existing app
73
+
74
+
#### Local project
75
+
76
+
# [C\#](#tab/csharp)
77
+
78
+
To update a .NET app to .NET 6 and Azure Functions 4.x, update the `TargetFramework` and `AzureFunctionsVersion`:
79
+
80
+
```xml
81
+
<TargetFramework>net6.0</TargetFramework>
82
+
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
83
+
```
84
+
85
+
Also, ensure the NuGet packages references by your app are updated to the latest versions. See [breaking changes](#breaking-changes-between-3x-and-4x) for more information.
86
+
87
+
##### .NET 6 in-process
88
+
89
+
*[Microsoft.NET.Sdk.Functions](https://www.nuget.org/packages/Microsoft.NET.Sdk.Functions/) 4.0.0 or later
90
+
91
+
##### .NET 6 isolated
92
+
93
+
*[Microsoft.Azure.Functions.Worker](https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker/) 1.5.2 or later
94
+
*[Microsoft.Azure.Functions.Worker.Sdk](https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker.Sdk/) 1.2.0 or later
95
+
96
+
# [Java](#tab/java)
97
+
98
+
To update your Java app to Azure Functions 4.x, update your local installation of [Azure Functions Core Tools](functions-run-local.md#install-the-azure-functions-core-tools) to 4.x and update your app's [Azure Functions extensions bundle](functions-bindings-register.md#extension-bundles) to 2.x or above. See [breaking changes](#breaking-changes-between-3x-and-4x) for more information.
99
+
100
+
# [JavaScript](#tab/javascript)
101
+
102
+
To update your Node.js app to Azure Functions 4.x, update your local installation of [Azure Functions Core Tools](functions-run-local.md#install-the-azure-functions-core-tools) to 4.x and update your app's [Azure Functions extensions bundle](functions-bindings-register.md#extension-bundles) to 2.x or above. See [breaking changes](#breaking-changes-between-3x-and-4x) for more information.
103
+
104
+
> [!NOTE]
105
+
> Node.js 10 and 12 are not supported in Azure Functions 4.x.
106
+
107
+
# [PowerShell](#tab/powershell)
108
+
109
+
To update your PowerShell app to Azure Functions 4.x, update your local installation of [Azure Functions Core Tools](functions-run-local.md#install-the-azure-functions-core-tools) to 4.x and update your app's [Azure Functions extensions bundle](functions-bindings-register.md#extension-bundles) to 2.x or above. See [breaking changes](#breaking-changes-between-3x-and-4x) for more information.
110
+
111
+
> [!NOTE]
112
+
> PowerShell 6 is not supported in Azure Functions 4.x.
113
+
114
+
# [Python](#tab/python)
115
+
116
+
To update your Python app to Azure Functions 4.x, update your local installation of [Azure Functions Core Tools](functions-run-local.md#install-the-azure-functions-core-tools) to 4.x and update your app's [Azure Functions extensions bundle](functions-bindings-register.md#extension-bundles) to 2.x or above. See [breaking changes](#breaking-changes-between-3x-and-4x) for more information.
117
+
118
+
> [!NOTE]
119
+
> Python is not supported in Azure Functions 4.x.
120
+
121
+
---
122
+
123
+
124
+
#### Azure
125
+
72
126
To migrate an app from 3.x to 4.x, set the `FUNCTIONS_EXTENSION_VERSION` application setting to `~4` with the following Azure CLI command:
73
127
74
128
```bash
@@ -105,6 +159,8 @@ The following are some changes to be aware of before upgrading a 3.x app to 4.x.
-`InvalidHostServicesException` is now a fatal error. ([#2045](https://github.com/Azure/Azure-Functions/issues/2045))
109
165
110
166
-`EnableEnhancedScopes` is enabled by default. ([#1954](https://github.com/Azure/Azure-Functions/issues/1954))
@@ -119,10 +175,20 @@ The following are some changes to be aware of before upgrading a 3.x app to 4.x.
119
175
120
176
# [JavaScript](#tab/javascript)
121
177
178
+
- Node.js 10 and 12 are not supported in Azure Functions 4.x. ([#1999](https://github.com/Azure/Azure-Functions/issues/1999))
179
+
122
180
- Output serialization in Node.js apps was updated to address previous inconsistencies. ([#2007](https://github.com/Azure/Azure-Functions/issues/2007))
123
181
182
+
# [PowerShell](#tab/powershell)
183
+
184
+
- PowerShell 6 is not supported in Azure Functions 4.x. ([#1999](https://github.com/Azure/Azure-Functions/issues/1999))
185
+
186
+
- Default thread count has been updated. Functions that are not thread-safe or have high memory usage may be impacted. ([#1962](https://github.com/Azure/Azure-Functions/issues/1962))
187
+
124
188
# [Python](#tab/python)
125
189
190
+
- Python 3.6 is not supported in Azure Functions 4.x. ([#1999](https://github.com/Azure/Azure-Functions/issues/1999))
191
+
126
192
- Shared memory transfer is enabled by default. ([#1973](https://github.com/Azure/Azure-Functions/issues/1973))
127
193
128
194
- Default thread count has been updated. Functions that are not thread-safe or have high memory usage may be impacted. ([#1962](https://github.com/Azure/Azure-Functions/issues/1962))
@@ -164,6 +230,10 @@ None.
164
230
165
231
* Node.js 8 is no longer supported and will not execute in 3.x functions.
0 commit comments