Simultaneously deploy multiple functions in a single Azure function app

Dipin P Joseph
3 min readNov 1, 2021

In this article, I will explain a method I used while working with multiple functions to manage multiple azure functions under an azure function app.

Issue with VSCode: In Visual Studio Code, each time I create a python function, it will add a new project directory along with a separate virtual environment, host.json and other config files. When I try to deploy a function it will delete existing azure functions in the function app.

Resolution: With Azure CLI, using ‘func’ command, multiple python functions are created with common virtual environment, requirements.txt, host.json and local.settings.json. Deploying from the parent directory will make sure all functions are deployed and are in the latest versions.

Detailed Explanation:

Starting with the basics, open command prompt/terminal/powershell and login to Azure CLI (Command: az login). A new tab will be opened in your browser and ask for login info. After successful login, you will be redirected to terminal and window will look as below,

Now, check if func is available on your machine. Else follow azure cli tools tutorial which involves node.js and npm installation. Use command func — -version for verification. Refer the screenshot below,

Creating the function app/project which holds multiple azure functions. Command to create the app/project is func init <app-name> — <language>

--

--

Dipin P Joseph

Full Stack Developer with deep enthusiasm in Data Science.