Hi ,
Thanks for reaching out to Microsoft Q&A.
As of today, Azure Functions does not yet support Java 21 on Windows-based function apps. While Java 21 is generally available for Linux-based Azure Functions, its support on Windows remains pending.
Previously, the Azure Functions team had estimated Java 21 support for Windows-based function apps by early March 2025. However, as of now, there have been no official updates or announcements confirming this support.
For the most current information, it's advisable to monitor the Azure Functions language support documentation and the Azure Updates page. Microsoft Learn+3Azure documentation+3Azure documentation+3
Please feel free to click the 'Upvote' (Thumbs-up) button and 'Accept as Answer'. This helps the community by allowing others with similar queries to easily find the solution.