Skip to content

Commit 8c76a69

Browse files
committed
Fix linux tabs
1 parent 6397405 commit 8c76a69

File tree

3 files changed

+58
-51
lines changed

3 files changed

+58
-51
lines changed

articles/azure-functions/migrate-version-3-version-4.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ To update your project to Azure Functions 4.x:
189189

190190
::: zone-end
191191
::: zone pivot="programming-language-java"
192-
1. If needed, move to one of the [Java versions supported on version 4.x](./functions-reference-java.md#supported-versions).
193-
1. Update the app's `POM.xml` file to modify the `FUNCTIONS_EXTENSION_VERSION` setting to `~4`, as in the following example:
192+
3. If needed, move to one of the [Java versions supported on version 4.x](./functions-reference-java.md#supported-versions).
193+
4. Update the app's `POM.xml` file to modify the `FUNCTIONS_EXTENSION_VERSION` setting to `~4`, as in the following example:
194194

195195
```xml
196196
<configuration>
@@ -211,13 +211,13 @@ To update your project to Azure Functions 4.x:
211211
```
212212
::: zone-end
213213
::: zone pivot="programming-language-javascript,programming-language-typescript"
214-
1. If needed, move to one of the [Node.js versions supported on version 4.x](functions-reference-node.md#node-version).
214+
3. If needed, move to one of the [Node.js versions supported on version 4.x](functions-reference-node.md#node-version).
215215
::: zone-end
216216
::: zone pivot="programming-language-powershell"
217-
1. If needed, move to one of the [PowerShell versions supported version 4.x](functions-reference-powershell.md#powershell-versions).
217+
3. If needed, upgrade to PowerShell 7.2. For more information, see [PowerShell versions](functions-reference-powershell.md#powershell-versions).
218218
::: zone-end
219219
::: zone pivot="programming-language-python"
220-
1. If you're using Python 3.6, move to one of the [supported versions](functions-reference-python.md#python-version).
220+
3. If you're using Python 3.6, move to one of the [supported versions](functions-reference-python.md#python-version).
221221
::: zone-end
222222

223223
[!INCLUDE [functions-migrate-v4](../../includes/functions-migrate-v4.md)]
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
author: ggailey777
3+
ms.service: azure-functions
4+
ms.topic: include
5+
ms.date: 11/03/2022
6+
ms.author: glenga
7+
---
8+
::: 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).
43+
:::zone-end

includes/functions-migrate-v4.md

Lines changed: 10 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ az functionapp config appsettings set --settings FUNCTIONS_EXTENSION_VERSION=~4
2525
# [Azure PowerShell](#tab/azure-powershell)
2626

2727
```azurepowershell
28-
Update-AzFunctionAppSetting -AppSetting @{FUNCTIONS_EXTENSION_VERSION = "~4"} -Name <APP_NAME> -ResourceGroupName <RESOURCE_GROUP_NAME> -Force
28+
Update-AzFunctionAppSetting -AppSetting @{"FUNCTIONS_EXTENSION_VERSION" = "~4"} -Name <APP_NAME> -ResourceGroupName <RESOURCE_GROUP_NAME> -Force
2929
```
30-
3130
---
3231

32+
During upgrade, you must also set an additional setting, which differs between Windows and Linux.
33+
3334
# [Windows](#tab/windows/azure-cli)
3435

3536
When running on Windows, you also need to enable .NET 6.0, which is required by version 4.x of the runtime.
@@ -52,37 +53,7 @@ Set-AzWebApp -NetFrameworkVersion v6.0 -Name <APP_NAME> -ResourceGroupName <RESO
5253

5354
# [Linux](#tab/linux/azure-cli)
5455

55-
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).
85-
:::zone-end
56+
[!INCLUDE [functions-migrate-v4-linuxfxversion](./functions-migrate-v4-linuxfxversion.md)]
8657

8758
# [Linux](#tab/linux/azure-powershell)
8859

@@ -111,7 +82,8 @@ The [`Update-AzFunctionAppSetting`](/powershell/module/az.functions/update-azfun
11182
```azurecli
11283
az functionapp config appsettings set --settings WEBSITE_OVERRIDE_STICKY_EXTENSION_VERSIONS=0 -g <RESOURCE_GROUP_NAME> -n <APP_NAME>
11384
```
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.
11587
11688
1. Use the following command to also set `WEBSITE_OVERRIDE_STICKY_EXTENSION_VERSIONS` in the staging slot:
11789
@@ -137,13 +109,9 @@ The [`Update-AzFunctionAppSetting`](/powershell/module/az.functions/update-azfun
137109
138110
.NET 6 is required for function apps in any language running on Windows.
139111
140-
# [Linux](#tab/linux/azure-cli)
112+
# [Linux](#tab/linux)
141113
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"
146-
```
114+
[!INCLUDE [functions-migrate-v4-linuxfxversion](./functions-migrate-v4-linuxfxversion.md)]
147115
148116
---
149117
@@ -203,13 +171,9 @@ To minimize the downtime in your production app, you can swap the `WEBSITE_OVERR
203171
204172
.NET 6 is required for function apps in any language running on Windows.
205173
206-
# [Linux](#tab/linux/azure-cli)
207-
208-
When running on Linux, you also need to update the `linuxFxVersion` site setting for .NET 6.0.
174+
# [Linux](#tab/linux)
209175
210-
```azurecli
211-
az functionapp config set --name <APP_NAME> --resource-group <RESOURCE_GROUP_NAME> --linux-fx-version "DOTNET|6.0"
212-
```
176+
[!INCLUDE [functions-migrate-v4-linuxfxversion](./functions-migrate-v4-linuxfxversion.md)]
213177
214178
---
215179

0 commit comments

Comments
 (0)