Jon Rumsey

An online markdown blog and knowledge repository.


Project maintained by nojronatron Hosted on GitHub Pages — Theme by mattgraham

About Azure Functions

This document was created to store learnings about Azure Functions.

Azure Friday: Develop Azure Functions Using V2 For Python

Host: Scott Hanselman Presenter: Gavin Aguiar Presenter: Shreya Batra

Overview

Azure Functions:

Common Azure Function Use-Cases:

Features of V2 Model

Fewer files, more intuitive Python development experience with Decorators, etc.

Integrated programming model:

Bindings are like Params and Return values, but for Cloud-based Functions.

Note: Other languages are available like JavaScript, C#, and more!

Demo and Example Notes

How to create a function using V2 Programming Model?

  1. VS Code with a new project folder.
  2. Open Command Pallette => Create Function
  3. Select Python (New Programming Model) (this creates a Virtualized Python Dev environment)
  4. Review getting_started.md
  5. Code is generated as a sample that the developer can edit and take forward.
  6. Open a Terminal and run func host start

Functions can also be created "on the fly" instead of with the Command Palette.

Note: AzureWebJobsStorage configuration item must be set properly for Storage Emulator service to work locally.

Gavin's second demo showed what amounts to a minimal API with CRUD capability using decorated Python code pushed to Azure Functions.

Decorators Add The Magic

Azure Functions are just plain Python functions, but the Decorators in Python tell Azure the Function should be run in the Azure Functions service!

References

Azure Functions V2 Python Programming Model

Azure Functions Python Developer Guide

Quickstart: Create JavaScript function in Azure using VS Code

Return to ContEd Index

Return to Root README