-
Part 1 (Local Setup and Examples): YouTube Video Part 1
-
Part 2 (Deploy and Use in Azure): YouTube Video Part 2
Allows you to run your Python scripts/functions in Azure without having to create the infrastructure first
Python developer article: Python Functions V2 Developer Guide
-
Install Func core tools: Install Core Tools
-
Command line reference: Command Line Reference
-
Open a terminal in Visual Studio Code (or whatever IDE you're using): func init NewFolderName --python -m v2
-
cd into NewFolderName and activate the Python virtual env (using PowerShell): ./.venv/scripts/activate
-
Install the requirements.txt file on the virtual env: python -m pip install -r requirements.txt OR pip install -r requirements.txt
-
Optional: Add any secrets/connection strings to the local.settings.json file as a new key value pair: "MyNewConnectionString": "Frank12345" Then in function_app.py or whichever file the function is in: import os connection_string = os.environ['MyNewConnectionString']