Azure Functions drops Java 8, 11 and 17 on 1 September 2027: move to Java 25

List every Java function app, move Linux Consumption apps to Flex Consumption, test Java 25 in a slot or copy, then switch before 1 September 2027.

Read time
16 min
Word count
2.4K
Sections
11
FAQs
8
Share
Two engineers sorting planning cards beside a laptop, under an Azure Functions Java migration title and Azure and Java logos
On this page · 11 sections
  1. What Microsoft announced on 25 November
  2. What actually happens after 1 September 2027
  3. Why Java 25 and not Java 21
  4. Step 1: find every Java function app
  5. Step 2: let the hosting plan decide the route
  6. Step 3: change the code and the build
  7. Step 4: switch the runtime with a safe rollback
  8. Key dates
  9. A sensible plan for the next nine months
  10. How eCorpIT can help
  11. References

Summary. Microsoft posted a retirement notice on 25 November 2026: support for Java 8, 11 and 17 in Azure Functions ends on 1 September 2027, 277 days from today. Function apps on those versions will keep running after that date, but they get no security updates and no customer support, and Microsoft's stated required action is an upgrade to Java 25. The Functions support policy adds two less visible risks: retired stacks lose performance work, and Microsoft may cap such apps at a single instance. Java 25 reached general availability in Azure Functions on 30 April 2026, on Windows and Linux plans including Flex Consumption, and Microsoft lists it as supported until May 2029, against September 2028 for Java 21. The catch is hosting: Java 21 is the last version the Linux Consumption plan will ever get, and that plan itself retires on 30 September 2028, so those apps must move to Flex Consumption before they can run Java 25. Our verdict: inventory every Java function app this quarter, migrate Linux Consumption apps first, and treat Java 21 as a stop only where a dependency blocks Java 25.

About this article. This is for engineering leads, platform teams and Java developers who run Azure Functions in production, in India and elsewhere. On 28 November 2026 we checked every date, version and command here against the Azure Updates retirement and release records, Microsoft Learn pages for Azure Functions, the Microsoft Build of OpenJDK support roadmap, Oracle's Java SE support roadmap and the OpenJDK JEP pages. This is technical guidance, not legal or licensing advice; Microsoft can change support dates, and no vendor paid for inclusion. Researched with AI assistance and checked against the primary sources listed in the references.

What Microsoft announced on 25 November

The Azure Updates record for the change is tagged as a retirement for Azure Functions, was created on 25 November 2026 and gives September 2027 as the retirement month. It names three language versions, Java 8, 11 and 17, and one end date, 1 September 2027. It does not touch Java 21.

The notice makes three points. Apps hosted on Azure Functions continue to run. Security updates stop. Microsoft will no longer provide customer service for those three versions. The required action links to the Learn guide on updating language stack versions and asks you to move to Java 25 before 1 September 2027.

None of this is a surprise for anyone who reads the support tables. The Functions supported languages page already listed September 2027 as the end of support for Java 8, 11 and 17, and Microsoft's own build of OpenJDK gives September 2027 as the earliest end-of-support date for its builds of OpenJDK 11 and 17. What is new is the formal notice and the explicit target version.

Java versions in Azure Functions today

Java version Supported in Functions until JDK Functions provides Runs on Linux Consumption
Java 8 September 2027 Eclipse Adoptium Yes
Java 11 September 2027 Microsoft Build of OpenJDK Yes
Java 17 September 2027 Microsoft Build of OpenJDK Yes
Java 21 September 2028 Microsoft Build of OpenJDK Yes, the last version it gets
Java 25 May 2029 Microsoft Build of OpenJDK No

Support dates and the Linux Consumption cap come from the Functions supported languages page; the JDK builds for Java 8 to 21 come from the Java developer guide, and Microsoft's Java team said on 29 September 2025 that its OpenJDK 25 build is supported on Azure Functions.

One detail to note: Microsoft lists Java 25 in Functions only until May 2029, while its OpenJDK 25 build has an earliest end-of-support date of September 2030. The Functions policy says support ends at the earlier of the community end-of-support date for the language and the end of support for the underlying base operating system, so the Functions date is the one to plan against.

What actually happens after 1 September 2027

Nothing switches off on the day. The Functions language support policy describes a notification phase, in which Microsoft emails owners of affected apps, followed by a retirement phase. In the retirement phase:

  • Apps on a retired version can still be created and deployed, and they keep running.
  • They are not eligible for new features, security patches or performance optimisations until they move to a supported version.
  • Where required, Microsoft may limit the number of instances allocated to them, including limiting scale to one instance.
  • If you raise a support case for such an app, you are required to upgrade before you receive support.

The scaling clause is the one most teams miss. A queue-triggered or HTTP function app that scales out under load could find itself held to one instance after the retirement date, which turns a patching problem into an availability problem.

The security gap is real as well. Java 8 in Functions runs on Adoptium's build and Java 11 and 17 run on the Microsoft Build of OpenJDK, which ships quarterly updates in January, April, July and October. Microsoft's builds of OpenJDK 11 and 17 reach their earliest end-of-support date in September 2027, the same month Functions drops them, so there is no supported JDK patch stream to fall back on inside the platform.

Why Java 25 and not Java 21

Java 21 is still supported in Functions, so a smaller jump from 17 to 21 is tempting. We would only take it where something concrete blocks Java 25.

Question Java 21 Java 25
Functions support ends September 2028 May 2029
Microsoft OpenJDK earliest end of support September 2028 September 2030
Runs on Linux Consumption Yes No, needs Flex Consumption or another plan
Microsoft's named target in the notice No Yes
Oracle JDK licence for updates OTN terms since 20 October 2026 No-fee terms for updates up to September 2028

The Functions and OpenJDK dates are from Microsoft's support tables, the notice names Java 25, and the licence row is from Oracle's Java SE support roadmap. The licence row matters only if you build or test locally on Oracle JDK; in Azure, Functions provides Microsoft and Adoptium builds. Our earlier piece on the Oracle JDK 21 OTN licence and Java audits covers that risk in detail.

Going to Java 21 buys 12 months and forces a second upgrade project in 2028. Going to Java 25 buys 20 months beyond the September 2027 deadline in Functions and lines up with the next LTS cycle. Oracle plans Java 29 as the next LTS in September 2027, so by the time Java 25 leaves Functions you will be looking at Java 29 anyway. Our Java 29 release date and upgrade guide sets out that path.

Step 1: find every Java function app

Start with an inventory per subscription. The Learn upgrade guide documents az functionapp show queries for the Java version on Windows and the linuxFxVersion site setting on Linux. A short loop reads both for every function app:


            az functionapp list --query "[].{name:name, rg:resourceGroup}" -o tsv |
while read -r name rg; do
  win=$(az functionapp show -n "$name" -g "$rg" --query "siteConfig.javaVersion" -o tsv)
  lin=$(az functionapp show -n "$name" -g "$rg" --query "siteConfig.linuxFxVersion" -o tsv)
  echo "$name $rg windows=$win linux=$lin"
done
          

Flag any app whose Windows value is 1.8, 8, 11 or 17, or whose Linux value starts with Java and carries 8, 11 or 17. Record the hosting plan for each, and the runtime version too: the upgrade guide expects FUNCTIONS_EXTENSION_VERSION set to ~4, and tells you to follow the 1.x or 3.x migration guides rather than just editing that setting.

Linux Consumption apps are App Service plans with pricing tier Dynamic (Y1) and operating system Linux, which is how Microsoft's retirement notice for that plan tells you to find them.

Two more checks while you are in the inventory:

  • Debian Bullseye images. Existing Java 8, 11 or 17 apps on Linux Elastic Premium or Dedicated plans may still use a Debian Bullseye managed image. The Java developer guide says to move them to an Ubuntu Noble image to remain on a supported Linux distribution, and the supported languages page lists the values, such as Java|17|4.0 in place of Java|17|2.0.
  • Deployment slots. Note which apps have slots. Slots are your safest upgrade path, and Flex Consumption does not support them.

Step 2: let the hosting plan decide the route

Hosting plan Can run Java 25 Upgrade route
Flex Consumption Yes Test in a separate non-production app, then update; slots not supported
Elastic Premium Yes Staging slot, change version, swap
Dedicated (App Service) Yes Staging slot, change version, swap
Windows Consumption Not excluded by Microsoft; confirm with list-runtimes Staging slot where configured; plan the later Flex move
Linux Consumption No Migrate to Flex Consumption first, then upgrade

The plan rules come from the Java 25 GA notice, the supported languages page, the upgrade guide and the Flex Consumption migration guide.

Linux Consumption. Microsoft stopped adding features and language versions to this plan, and it retires on 30 September 2028. Java 21 is its ceiling. The migration guide offers az functionapp flex-migration list to sort your apps into eligible and ineligible lists, and the flex-migration commands automate creating and configuring the new app. Do the plan migration and the Java upgrade as two separate changes, so you know which one broke something.

Windows Consumption. Not affected by the Linux Consumption retirement today, but the consumption plan page tells Windows Consumption users to migrate to Flex Consumption as well, and Flex Consumption is Linux only. If you are moving these apps anyway, do it before the Java upgrade.

Step 3: change the code and the build

The Functions part of the change is small. The Java part depends on where you start.

Build settings. The version your app runs on in Azure is set in pom.xml. The Java developer guide shows two elements: java.version, used by the compiler plug-in, and javaVersion inside the runtime block of the Azure Functions Maven plug-in, which sets the Java version the app runs on in Azure. Set both to 25, and make sure JAVA_HOME points to a JDK at least as new as the compiler setting. When we checked, the developer guide's version tables still stopped at Java 21 even though the supported languages page and the GA notice list Java 25, so confirm your Maven or Gradle plug-in version accepts 25 by building and deploying to a test app.


            <properties>
  <java.version>25</java.version>
</properties>
...
<runtime>
  <os>linux</os>
  <javaVersion>25</javaVersion>
</runtime>
          

Extension bundle. The upgrade guide recommends version 4.x extension bundles in host.json and lists an old bundle as a common reason an app fails to start after a version change. If you are still on an older range, fix that first.

From Java 8. Expect the most work. Java 11 removed the Java EE and CORBA modules, including JAX-WS, JAXB and JAF, from the JDK, so code that relied on them needs explicit library dependencies. Allow time for library upgrades across the board: frameworks that support Java 25 often dropped Java 8 several major versions ago.

From Java 11 or 17. Most code compiles unchanged, but three platform changes catch real applications:

  • Since JDK 24 the Security Manager is permanently disabled; it was deprecated for removal in Java 17. Any code or library that installs one will fail.
  • Since JDK 24 the JVM warns on the first use of memory-access methods in sun.misc.Unsafe, which were terminally deprecated in JDK 23. Older serialisation, caching and networking libraries are the usual source.
  • Since JDK 21 the JVM warns when an agent is loaded dynamically into a running JVM, as a step towards disallowing it by default. Check monitoring or profiling agents that attach at run time.

If your functions sit on Spring Boot, check the Spring version's Java 25 support before you start; our note on Spring Boot 4.1 end of support covers that calendar.

Step 4: switch the runtime with a safe rollback

The Learn upgrade guide gives the sequence. Our condensed version:

  1. Run the app locally on JDK 25 and pass your tests.
  1. Create a staging slot (or, on Flex Consumption, a separate non-production app).
  1. Deploy the Java 25 build to the slot.
  1. Change the slot's Java version in the portal under Settings > Configuration > General settings, or with the CLI below.
  1. Verify the version and the functions, then swap the slot into production.
  1. Keep the previous build and settings ready for a swap back.

For Windows apps, list the valid values and set the version on the slot:


            az functionapp list-runtimes --os "windows" --query "[?runtime == 'java'].{Version:version}" --output table
az functionapp config set --java-version "<VERSION>" --name "<FUNCTION_APP_NAME>" --resource-group "<RESOURCE_GROUP_NAME>" --slot "staging"
          

For Linux apps on Premium, Dedicated or Flex Consumption, read the exact linuxFxVersion value for Java 25 from the runtime list and set it:


            az functionapp list-runtimes --os linux --query "[?runtime == 'java'].{Version:version, linuxFxVersion:linux_fx_version}" --output table
az functionapp config set --linux-fx-version "<LANGUAGE|VERSION>" --name "<FUNCTION_APP_NAME>" --resource-group "<RESOURCE_GROUP_NAME>" --slot "staging"
          

The app restarts after the change and is unavailable for a short time, typically 30 to 60 seconds, and in-flight requests are terminated. Without a slot, do it in a maintenance window. On Flex Consumption, the upgrade guide points to the rolling update strategy as a possible way to update a running app.

Rollback is the reverse: swap the slot back, or set the previous version and redeploy the previous build.

Key dates

Date Event
16 September 2025 JDK 25 general availability
26 September 2025 Linux Consumption retirement announced
18 November 2025 Java 25 in Azure Functions enters public preview
30 April 2026 Java 25 in Azure Functions generally available
25 November 2026 Java 8, 11 and 17 retirement notice posted
1 September 2027 Java 8, 11 and 17 support ends in Azure Functions
September 2027 Java 29, the next planned LTS, from Oracle
September 2028 Java 21 support ends in Azure Functions
30 September 2028 Linux Consumption plan retires
May 2029 Java 25 support ends in Azure Functions

Dates come from the OpenJDK JDK 25 project page, the Azure Updates records for each event, the Functions supported languages page and Oracle's roadmap.

A sensible plan for the next nine months

  • December 2026 to January 2027. Run the inventory, tag every Java 8, 11 and 17 app with its plan, owner and slot status.
  • February to April 2027. Migrate Linux Consumption apps to Flex Consumption on their current Java version; move Bullseye images to Ubuntu Noble.
  • April to June 2027. Upgrade code and builds to Java 25, starting with Java 17 apps (least work) and leaving Java 8 apps the most time.
  • July 2027. Switch production runtimes through slots, and leave August for stragglers.

For Indian teams, the Indian financial year closes on 31 March, so keep production runtime switches away from your own year-end close and book them for July. Teams already planning other Azure Functions changes, such as the OpenAI extension retirement in April 2027, can combine the inventory work.

How eCorpIT can help

eCorpIT is a Gurugram-based technology organisation, founded in 2021, assessed at CMMI Level 5 and MSME certified, with senior-led engineering teams working across AWS, Microsoft and Google platforms. Our cloud migration services team can inventory your Java function apps, move Linux Consumption apps to Flex Consumption and run the Java 25 upgrade through staging before 1 September 2027. Talk to us at /contact-us/.

Last updated: 28 November 2026.

References

  1. Retirement: Support for Java 8, 11 and 17 in Azure Functions ends on September 1, 2027 (25 November 2026) — Microsoft Azure Updates
  1. Azure Functions language stack support policy — Microsoft Learn
  1. Generally Available: Azure Functions support for Java 25 (30 April 2026) — Microsoft Azure Updates
  1. Supported languages in Azure Functions — Microsoft Learn
  1. Retirement: The Linux Consumption hosting plan of Azure Functions will be retired on September 30, 2028 (26 September 2025) — Microsoft Azure Updates
  1. Update language stack versions in Azure Functions (Java) — Microsoft Learn
  1. Support roadmap for the Microsoft Build of OpenJDK — Microsoft Learn
  1. Azure Functions Java developer guide — Microsoft Learn
  1. Microsoft's OpenJDK builds now ready for Java 25 (29 September 2025) — Microsoft for Java Developers blog
  1. Oracle Java SE Support Roadmap — Oracle
  1. Migrate Consumption plan apps to the Flex Consumption plan in Azure Functions — Microsoft Learn
  1. Azure Functions Consumption plan hosting — Microsoft Learn
  1. JEP 320: Remove the Java EE and CORBA Modules — OpenJDK
  1. JEP 486: Permanently Disable the Security Manager — OpenJDK
  1. JEP 498: Warn upon Use of Memory-Access Methods in sun.misc.Unsafe — OpenJDK
  1. JEP 451: Prepare to Disallow the Dynamic Loading of Agents — OpenJDK
  1. JDK 25 — OpenJDK
  1. Public Preview: Azure Functions support for Java 25 (18 November 2025) — Microsoft Azure Updates

Frequently asked

Quick answers.

01 Will my Java 17 function app stop running on 1 September 2027?
No. Microsoft says apps on Java 8, 11 and 17 keep running after that date. What stops is security updates and customer support for those versions. The Functions support policy also allows Microsoft to limit instances for apps on retired versions, in some cases to a single instance, so scaling can suffer.
02 Is Java 21 affected by this retirement?
No. The notice covers only Java 8, 11 and 17. Microsoft's supported languages table lists Java 21 as supported in Azure Functions until September 2028. It is a valid stop if a dependency blocks Java 25, but it gives you only one extra year before another upgrade is due.
03 Can a Linux Consumption plan app run Java 25?
No. Microsoft states that Java 21 is the last Java version added to the Linux Consumption plan, and the plan itself retires on 30 September 2028. To run Java 25, migrate the app to the Flex Consumption plan first, then change the Java version as a separate step.
04 How long will Java 25 be supported in Azure Functions?
The supported languages page lists Java 25 as generally available and supported until May 2029. That is earlier than the September 2030 earliest end-of-support date for Microsoft's OpenJDK 25 build, because Functions support ends at whichever comes first, the language or the underlying operating system support.
05 How much downtime does changing the Java version cause?
Microsoft's upgrade guide says the app restarts and is unavailable briefly, typically 30 to 60 seconds, and in-flight requests are terminated. Using a staging slot and swapping avoids that window in production. Flex Consumption has no slots, so test in a separate app and consider its rolling update strategy.
06 Which pom.xml settings do I change for Java 25?
Change the java.version property used by the compiler plug-in and the javaVersion element in the runtime block of the Azure Functions Maven plug-in, setting both to 25. Point JAVA_HOME at a JDK 25 install, rebuild, run your tests locally and deploy to a staging slot before production.
07 What breaks most often when moving from Java 8?
Code that relied on the Java EE and CORBA modules, such as JAXB and JAX-WS, because Java 11 removed them from the JDK. You need to add those libraries as explicit dependencies. Old framework versions are the other big cost, since many current releases dropped Java 8 support years ago.
08 Do I need to pay Oracle to run Java on Azure Functions?
Not for the runtime Azure provides. Functions runs Microsoft Build of OpenJDK and Eclipse Adoptium builds, which are free to use. Licence questions arise only if your teams download Oracle JDK for local builds, where Java 21 updates now fall under Oracle's OTN licence terms.

About the author

Manu Shukla

Founder & Director

Founder of eCorpIT. Hands-on engineer leading senior-only delivery for AI apps, custom software, and cloud systems for global clients.

Subscribe

One engineering note a week. No fluff, no spam.

Senior-architect playbooks on AI agents, mobile apps, cloud, security, data, and marketing — delivered every Wednesday.

Past the reading

Read enough. Let's build something.

A senior architect responds in 24 working hours with scope, indicative cost, and a timeline. NDA before any technical conversation.

Weekly engineering notes

Enjoying this article? Get one like it every Wednesday.

Senior-architect playbooks on AI agents, mobile apps, cloud, security, data and marketing. Unsubscribe in one click.

We email a link to confirm your address. Privacy

Loading search…

Browse all guides