Skip to content

Commit a292b83

Browse files
committed
Add images and more cleanup
1 parent be53769 commit a292b83

File tree

3 files changed

+9
-31
lines changed

3 files changed

+9
-31
lines changed
106 KB
Loading
196 KB
Loading

articles/azure-functions/update-java-versions.md

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ Before updating your Java version, make sure your function app is running on the
3333

3434
Use these steps to determine your Functions runtime version:
3535

36-
1. In the [Azure portal](https://portal.azure.com), locate your function app and select**Configuration** on the left-hand side under **Settings**.
36+
1. In the [Azure portal](https://portal.azure.com), locate your function app and select **Configuration** on the left-hand side under **Settings**.
3737

38-
1. Select the **Function runtime settings** tab and see if your function app is running on version 4.x of the Functions runtime (`~4`).
38+
1. Select the **Function runtime settings** tab and check the **Runtime version** value to see if your function app is running on version 4.x of the Functions runtime (`~4`).
39+
40+
:::image type="content" source="media/update-java-versions/update-functions-version-portal.png" alt-text="Screenshot of how to view the Functions runtime version for your app in the Azure portal":::
3941

4042
### [Azure CLI](#tab/azure-cli)
4143

@@ -44,21 +46,11 @@ Use this [`az functionapp config appsettings list`](/cli/azure/functionapp/confi
4446
```azurecli
4547
az functionapp config appsettings list --name "<FUNCTION_APP_NAME>" --resource-group "<RESOURCE_GROUP_NAME>"
4648
```
47-
The `FUNCTIONS_EXTENSION_VERSION` setting dictates the runtime version. A value of `~4` means that your function app is already running on the latest minor version of the latest major version (4.x).
48-
49-
### [Azure PowerShell](#tab/azure-powershell)
50-
51-
The [`Get-AzFunctionAppSetting`](/powershell/module/az.functions/get-azfunctionappsetting) cmdlet returns the existing application settings, as in the following example:
52-
53-
```azurepowershell-interactive
54-
Get-AzFunctionAppSetting -Name <FUNCTION_APP_NAME> -ResourceGroupName <RESOURCE_GROUP_NAME>
55-
```
56-
57-
The `FUNCTIONS_EXTENSION_VERSION` setting dictates the runtime version. A value of `~4` means that your function app is already running on the latest minor version of the latest major version (4.x).
49+
The `FUNCTIONS_EXTENSION_VERSION` setting sets the runtime version. A value of `~4` means that your function app is already running on the latest minor version of the latest major version (4.x).
5850

5951
---
6052

61-
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).
53+
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 this article rather than just manually changing the `FUNCTIONS_EXTENSION_VERSION` setting.
6254

6355
## update your Java function app
6456
:::zone pivot="platform-windows"
@@ -78,8 +70,8 @@ Use the following steps to update the Java version:
7870
1. In the [Azure portal](https://portal.azure.com), locate your function app and select **Configuration** on the left-hand side.
7971

8072
1. In the **General settings** tab, update the **Java version** to `Java 17`.
81-
1.
82-
1.
73+
74+
:::image type="content" source="media/update-java-versions/update-java-version-portal.png" alt-text="Screenshot of how to set the desired Java version for a function app in the Azure portal":::
8375

8476
1. When notified about a restart, select **Continue**, and then **Save**.
8577

@@ -88,7 +80,7 @@ Use the following steps to update the Java version:
8880
You can use the Azure CLI to update the Java version for any hosting plan.
8981

9082
:::zone pivot="platform-windows"
91-
Use this [`az functionapp config appsettings set`](/cli/azure/functionapp/config/appsettings#az-functionapp-config-appsettings-set) command to update the `java-version` setting to `17`:
83+
Run the [`az functionapp config set`](/cli/azure/functionapp/config#az-functionapp-config-set)command to update the Java version site setting to `17`:
9284

9385
```azurecli
9486
az functionapp config set --java-version "17" --name "<APP_NAME>" --resource-group "<RESOURCE_GROUP>"
@@ -104,20 +96,6 @@ az functionapp config set --linux-fx-version "java|17" --name "<APP_NAME>" --res
10496

10597
In this example, replace `<APP_NAME>` and `<RESOURCE_GROUP>` with the name of your function app and resource group, respectively.
10698

107-
### [Azure PowerShell](#tab/azure-powershell)
108-
:::zone pivot="platform-windows"
109-
Use the [`Update-AzFunctionAppSetting`](/powershell/module/az.functions/update-azfunctionappsetting) cmdlet to update the `java-version` setting to `17`:
110-
111-
```azurepowershell
112-
Update-AzFunctionAppSetting -Name <APP_NAME> -ResourceGroupName <RESOURCE_GROUP> -AppSetting @{"java-version" = "17"}
113-
```
114-
115-
In this example, replace `<APP_NAME>` and `<RESOURCE_GROUP>` with the name of your function app and resource group, respectively.
116-
:::zone-end
117-
:::zone pivot="platform-linux"
118-
You can't use PowerShell to update the Java version on Linux. Use the Azure CLI instead.
119-
:::zone-end
120-
12199
---
122100

123101
Your function app restarts after you update the Java version. To learn more about Functions support for Java, see [Language runtime support policy](language-support-policy.md).

0 commit comments

Comments
 (0)