From 8a9346267f4d297567661dca91f80b08c0897cd4 Mon Sep 17 00:00:00 2001 From: Paul Yuknewicz Date: Sat, 21 Feb 2026 11:32:13 -0800 Subject: [PATCH 1/2] Upgrade Java runtime from 17 to 21 (latest LTS) Fixes #15 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- http/pom.xml | 4 ++-- infra/main.bicep | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/http/pom.xml b/http/pom.xml index 131ad74..f7932ed 100644 --- a/http/pom.xml +++ b/http/pom.xml @@ -11,7 +11,7 @@ UTF-8 - 17 + 21 1.36.0 3.1.0 contoso-functions @@ -83,7 +83,7 @@ linux - 17 + 21 diff --git a/infra/main.bicep b/infra/main.bicep index d5018d2..d4a8f22 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -59,7 +59,7 @@ module api './app/api.bicep' = { applicationInsightsName: monitoring.outputs.applicationInsightsName appServicePlanId: appServicePlan.outputs.id runtimeName: 'java' - runtimeVersion: '17' + runtimeVersion: '21' storageAccountName: storage.outputs.name identityId: apiUserAssignedIdentity.outputs.identityId identityClientId: apiUserAssignedIdentity.outputs.identityClientId From 19f6a4c1dca2de3874392de3e1a07e60aa6aca3b Mon Sep 17 00:00:00 2001 From: Paul Yuknewicz Date: Sat, 21 Feb 2026 14:54:10 -0800 Subject: [PATCH 2/2] Fix: Add '21' to allowed Java runtime versions Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- infra/core/host/functions-flexconsumption.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/core/host/functions-flexconsumption.bicep b/infra/core/host/functions-flexconsumption.bicep index d3de0ef..ae85fe9 100644 --- a/infra/core/host/functions-flexconsumption.bicep +++ b/infra/core/host/functions-flexconsumption.bicep @@ -17,7 +17,7 @@ param identityId string 'dotnet-isolated', 'node', 'python', 'java', 'powershell', 'custom' ]) param runtimeName string -@allowed(['3.10', '3.11', '7.4', '8.0', '10', '11', '17', '20']) +@allowed(['3.10', '3.11', '7.4', '8.0', '10', '11', '17', '20', '21']) param runtimeVersion string param kind string = 'functionapp,linux'