News

Azure Functions 4.0 Preview Out with Support for .NET 6

Azure Functions 4.0 is out in a public preview, complete with support for the upcoming .NET 6.

The offering is used for serverless cloud computing, wherein chunks of code -- functions -- respond to events, triggering some type of functionality. It's the Azure equivalent of AWS Lambda and Google Cloud Functions.

After providing support for .NET 5 in March, the dev team gave developers a sneak peek of Azure Functions on .NET 6 in June.

That .NET 5 support, for technical reasons, had to move to an out-of-process model that runs a .NET 5 worker process alongside the runtime. Thus the new public preview comes with two programing models, one in-process (the model in .NET Core 3.1) and one isolated.

Differences with .NET Class Library Functions
[Click on image for larger view.] Differences with .NET Class Library Functions (source: Microsoft).

"With the in-process programming model and Azure Functions 4.0, you can write .NET 6 function apps that take advantage of advanced features such as Durable Functions," Microsoft's Anthony Chu said in a recent blog post. "".NET 6 is also supported in Azure Functions 4.0 using the isolated process programming model. The isolated model gives you full control over the language worker startup configuration and provides useful features like dependency injection and middleware. Currently, you can use the command line to create and deploy your .NET 6 isolated apps. .NET 6 isolated process support is coming soon to Visual Studio and Visual Studio Code."

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

Azure Functions 4.0 supports these programming languages and runtimes:

  • NET 6.0 (in-process and isolated process)
  • Node.js 14
  • Python 3.7, 3.8, 3.9
  • Java 8, 11
  • PowerShell 7.0
  • Custom Handlers

While the team works to provide a ready-to-go product in time for the general availability release of .NET 6 next month, some breaking changes will be introduced, which can be tracked with the help of a subscription to App Service Announcements.

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • Copilot AI Enhanced in Flurry of Visual Studio v17.12 Previews

    Since announcing Visual Studio 2022 v17.11 in August, Microsoft's dev team has been busy shipping a series of AI-heavy previews for the next edition.

  • How Visual Studio IntelliCode Helped Shape GitHub Copilot and Modern AI

    Microsoft has baked advanced GitHub Copilot tech into the latest edition of Visual Studio, but the aging IntelliCode feature of the IDE actually helped shape the modern experience.

  • Winnow Classification Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the Winnow classification technique. Winnow classification is used for a very specific scenario where the target variable to predict is binary and all the predictor variables are also binary.

  • VS Code Is Latest Microsoft Dev Tooling Weaponized by Threat Actors

    Cybersecurity threat actors keep leveraging Microsoft development tooling as attack vectors, with the new one coming via malware phishing.

Subscribe on YouTube