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
::: zone pivot="programming-language-csharp,programming-language-java,programming-language-javascript,programming-language-typescript,programming-language-python"
9
+
You might also need to update the `linuxFxVersion` site setting to target your specific language language version. If you already have the correct value of `linuxFxVersion` set, you can skip this step. For more information, see [Valid `linuxFxVersion` values](../articles/azure-functions/functions-app-settings.md#valid-linuxfxversion-values).
10
+
::: zone-end
11
+
::: zone pivot="programming-language-powershell"
12
+
PowerShell apps aren't supported on Linux before Functions 4.x. This means you shouldn't need to upgrade a PowerShell function app running on Linux.
13
+
::: zone-end
14
+
::: zone pivot="programming-language-csharp"
15
+
```azurecli
16
+
az functionapp config set --name <APP_NAME> --resource-group <RESOURCE_GROUP_NAME> --linux-fx-version "DOTNET|6.0"
17
+
```
18
+
If you are migrating to .NET Functions isolated worker process, use either `DOTNET-ISOLATED|6.0` or `DOTNET-ISOLATED|7.0` for `--linux-fx-version`.
19
+
:::zone-end
20
+
::: zone pivot="programming-language-java"
21
+
```azurecli
22
+
az functionapp config set --name <APP_NAME> --resource-group <RESOURCE_GROUP_NAME> --linux-fx-version "Java|11"
23
+
```
24
+
The `--linux-fx-version` value must match your target Java version. To find all supported values, see [Valid `linuxFxVersion` values](../articles/azure-functions/functions-app-settings.md#valid-linuxfxversion-values).
25
+
:::zone-end
26
+
::: zone pivot="programming-language-javascript,programming-language-typescript"
27
+
```azurecli
28
+
az functionapp config set --name <APP_NAME> --resource-group <RESOURCE_GROUP_NAME> --linux-fx-version "Node|16"
29
+
```
30
+
The `--linux-fx-version` value must match your target Node.js version. To find all supported values, see [Valid `linuxFxVersion` values](../articles/azure-functions/functions-app-settings.md#valid-linuxfxversion-values).
31
+
:::zone-end
32
+
::: zone pivot="programming-language-powershell"
33
+
```azurecli
34
+
az functionapp config set --name <APP_NAME> --resource-group <RESOURCE_GROUP_NAME> --linux-fx-version "PowerShell|7.2"
35
+
```
36
+
The `--linux-fx-version` value must match your target PowerShell version. To find all supported values, see [Valid `linuxFxVersion` values](../articles/azure-functions/functions-app-settings.md#valid-linuxfxversion-values).
37
+
:::zone-end
38
+
::: zone pivot="programming-language-python"
39
+
```azurecli
40
+
az functionapp config set --name <APP_NAME> --resource-group <RESOURCE_GROUP_NAME> --linux-fx-version "Python|3.9"
41
+
```
42
+
The `--linux-fx-version` value must match your target PowerShell version. To find all supported values, see [Valid `linuxFxVersion` values](../articles/azure-functions/functions-app-settings.md#valid-linuxfxversion-values).
When running .NET apps on Linux, you also need to update the `linuxFxVersion` site setting for .NET 6.0.
56
-
::: zone pivot="programming-language-csharp"
57
-
```azurecli
58
-
az functionapp config set --name <APP_NAME> --resource-group <RESOURCE_GROUP_NAME> --linux-fx-version "DOTNET|6.0"
59
-
```
60
-
If you are migrating to .NET Functions isolated worker process, use either `DOTNET-ISOLATED|6.0` or `DOTNET-ISOLATED|7.0` for `--linux-fx-version`. For more information, see [Valid `linuxFxVersion` values](../articles/azure-functions/functions-app-settings.md#valid-linuxfxversion-values).
61
-
:::zone-end
62
-
::: zone pivot="programming-language-java"
63
-
```azurecli
64
-
az functionapp config set --name <APP_NAME> --resource-group <RESOURCE_GROUP_NAME> --linux-fx-version "Java|11"
65
-
```
66
-
The `--linux-fx-version` value must match your target Java version. To find all supported values, see [Valid `linuxFxVersion` values](../articles/azure-functions/functions-app-settings.md#valid-linuxfxversion-values).
67
-
:::zone-end
68
-
::: zone pivot="programming-language-javascript,programming-language-typescript"
69
-
```azurecli
70
-
az functionapp config set --name <APP_NAME> --resource-group <RESOURCE_GROUP_NAME> --linux-fx-version "Node|16"
71
-
```
72
-
The `--linux-fx-version` value must match your target Node.js version. To find all supported values, see [Valid `linuxFxVersion` values](../articles/azure-functions/functions-app-settings.md#valid-linuxfxversion-values).
73
-
:::zone-end
74
-
::: zone pivot="programming-language-powershell"
75
-
```azurecli
76
-
az functionapp config set --name <APP_NAME> --resource-group <RESOURCE_GROUP_NAME> --linux-fx-version "PowerShell|7.2"
77
-
```
78
-
The `--linux-fx-version` value must match your target PowerShell version. To find all supported values, see [Valid `linuxFxVersion` values](../articles/azure-functions/functions-app-settings.md#valid-linuxfxversion-values).
79
-
:::zone-end
80
-
::: zone pivot="programming-language-python"
81
-
```azurecli
82
-
az functionapp config set --name <APP_NAME> --resource-group <RESOURCE_GROUP_NAME> --linux-fx-version "Python|3.9"
83
-
```
84
-
The `--linux-fx-version` value must match your target PowerShell version. To find all supported values, see [Valid `linuxFxVersion` values](../articles/azure-functions/functions-app-settings.md#valid-linuxfxversion-values).
@@ -111,7 +82,8 @@ The [`Update-AzFunctionAppSetting`](/powershell/module/az.functions/update-azfun
111
82
```azurecli
112
83
az functionapp config appsettings set --settings WEBSITE_OVERRIDE_STICKY_EXTENSION_VERSIONS=0 -g <RESOURCE_GROUP_NAME> -n <APP_NAME>
113
84
```
114
-
This command causes the app running in the production slot to restart.
85
+
86
+
In this example, replace `<APP_NAME>` with the name of your function app and `<RESOURCE_GROUP_NAME>` with the name of the resource group. This command causes the app running in the production slot to restart.
115
87
116
88
1. Use the following command to also set `WEBSITE_OVERRIDE_STICKY_EXTENSION_VERSIONS` in the staging slot:
117
89
@@ -137,13 +109,9 @@ The [`Update-AzFunctionAppSetting`](/powershell/module/az.functions/update-azfun
137
109
138
110
.NET 6 is required for function apps in any language running on Windows.
139
111
140
-
# [Linux](#tab/linux/azure-cli)
112
+
# [Linux](#tab/linux)
141
113
142
-
When running on Linux, you also need to update the `linuxFxVersion` site setting for .NET 6.0.
143
-
144
-
```azurecli
145
-
az functionapp config set --name <APP_NAME> --resource-group <RESOURCE_GROUP_NAME> --linux-fx-version "DOTNET|6.0"
0 commit comments