News

Azure Functions Now Supports Python

Azure Functions, Microsoft's take on cloud-hosted, serverless, event-driven computing, now officially supports the Python programming language.

The general availability of Python support follows a preview in which it has already been adopted by companies such as General Electric Aviation and TCF Bank.

Like AWS Lambda in the Amazon cloud and Google Cloud Functions in the Google Cloud Platform, Azure Functions lets developers provide code that gets executed -- typically in response to events or bindings -- without the need to provision or manage servers, which is done automatically.

Microsoft has been busy bolstering the functionality of Azure Functions, having added Java support and improving TypeScript support in February. Now that Python support has been added, Azure Functions covers two of the perennially most popular programming languages.

"You can now develop Python 3.6 apps to run on the cross-platform, open source Functions 2.0 runtime," said Daria Grigoriu of the Azure Functions team in an Aug. 19 blog post. "These can be published as code or Docker containers to a Linux-based serverless hosting platform in Azure."

Triggers and Bindings with Python in Azure Functions
[Click on image for larger view.] Triggers and Bindings with Python in Azure Functions (source: Microsoft).

Grigoriu said Python is especially suited for many workloads leveraging the serverless model, especially pertaining to data science/machine learning and automated resource management.

Examples of such workloads for each include:

  • Simplified data science pipelines:
    • Use Azure Functions to deploy a trained ML model along with a scoring script to create an inferencing application.
    • Leverage triggers and data bindings to ingest, move prepare, transform, and process data using Functions.
    • Use Functions to introduce event-driven triggers to re-training and model update pipelines when new datasets become available.
  • Automated resource management:
    • Process Azure Monitor alerts generated by Azure services.
    • React to Azure events captured by Azure Event Grid and apply operational requirements on resources.
    • Leverage Azure Logic Apps to connect to external systems like IT service management, DevOps, or monitoring systems while processing the payload with a Python function.
    • Perform scheduled operational tasks on virtual machines, SQL Server, web apps, and other Azure resources.

Developers can use Azure Functions Core Tools with the IDE or text editor of choice, while an Azure Functions extension for Visual Studio Code provides a tightly integrated editing experience within Microsoft's popular, cross-platform, open source code editor, Grigoriu said.

More resources for interested developers include:

Developers can sign up for a free Azure account here.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Mastering Blazor Authentication and Authorization

    At the Visual Studio Live! @ Microsoft HQ developer conference set for August, Rockford Lhotka will explain the ins and outs of authentication across Blazor Server, WebAssembly, and .NET MAUI Hybrid apps, and show how to use identity and claims to customize application behavior through fine-grained authorization.

  • Linear Support Vector Regression from Scratch Using C# with Evolutionary Training

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the linear support vector regression (linear SVR) technique, where the goal is to predict a single numeric value. A linear SVR model uses an unusual error/loss function and cannot be trained using standard simple techniques, and so evolutionary optimization training is used.

  • Low-Code Report Says AI Will Enhance, Not Replace DIY Dev Tools

    Along with replacing software developers and possibly killing humanity, advanced AI is seen by many as a death knell for the do-it-yourself, low-code/no-code tooling industry, but a new report belies that notion.

  • Vibe Coding with Latest Visual Studio Preview

    Microsoft's latest Visual Studio preview facilitates "vibe coding," where developers mainly use GitHub Copilot AI to do all the programming in accordance with spoken or typed instructions.

  • Steve Sanderson Previews AI App Dev: Small Models, Agents and a Blazor Voice Assistant

    Blazor creator Steve Sanderson presented a keynote at the recent NDC London 2025 conference where he previewed the future of .NET application development with smaller AI models and autonomous agents, along with showcasing a new Blazor voice assistant project demonstrating cutting-edge functionality.

Subscribe on YouTube