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

  • 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