News

Azure Functions Boosted with .NET 7 Support

Azure Functions, Microsoft's serverless cloud computing offering, is previewing new functionality coming with its new support of .NET 7 as a runtime.

"For those customers who are looking into building serverless functions in Azure with the latest innovation from .NET runtime, this makes it possible for all developers on the planet to focus on coding with .NET 7 new features, ready-to-code while on a large scale without worrying about the underlying infrastructure," Microsoft's Melony Qin announced last week.

That new support brings the ability to build serverless applications with .NET 7 (currently in Preview 6) in Azure Functions using the .NET Isolated Worker model.

Azure Functions in a Hybrid Environment
[Click on image for larger view.] Azure Functions in a Hybrid Environment (source: Microsoft).

Running in a .NET isolated process brings benefits beyond the existing tightly integrated model for .NET functions, which run as a class library in the same process as the host. The .NET Isolated Worker decouples that tight integration, separating function code from the Azure Functions runtime. Along with providing flexibility in the choice of .NET versions to work with, Microsoft says isolated process approach results in benefits such as:

  • Fewer conflicts: because the functions run in a separate process, assemblies used in your app won't conflict with different version of the same assemblies used by the host process.
  • Full control of the process: you control the start-up of the app and can control the configurations used and the middleware started.
  • Dependency injection: because you have full control of the process, you can use current .NET behaviors for dependency injection and incorporating middleware into your function app.

"The isolated worker model also allows you to use current .NET behaviors for dependency injection and incorporating middleware into your function app," Qin said. "Choose the isolated model if you're upgrading from .NET 5 Azure functions v3."

The .NET Isolated Worker model is available for preview in all Windows-based plans, Linux dedicated and premium plans, with a Linux consumption plan to be added later.

In May, Microsoft announced the same isolated worker model support for the old .NET Framework (precursor to the open source, cross-platform "Core" .NET versions that evolved into just .NET 5, .NET 6 and so on.).

.NET on Azure Functions Roadmap
[Click on image for larger view.] .NET on Azure Functions Roadmap (source: Microsoft).

Going forward, the .NET on Azure functions roadmap shows various items and initiatives in different stages. In the public preview (dev/test) stage -- along with the isolated worker support announced for .NET 7 and .NET Framework -- are Durable Functions support in .NET Isolated worker and .NET 7.0 support isolated for AF v4. Other items in their respective stages are presented below (along with links for more information).

"We're looking forward to hearing your feedback and your use cases, please feel free to share them on announcement related discussions here," Qin said. "Also, if you discover potential issues, please record them on the Azure Functions .NET language worker GitHub repository."

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube