Skip to content

DataEngineeringWithNick/AzureFunctionsPythonV2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Videos:

Why Use Azure Functions and What Problem Does it Solve?

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

Steps to create Azure Functions Locally

Local Setup Prerequisites and Initial Configuration:

  1. Open a terminal in Visual Studio Code (or whatever IDE you're using): func init NewFolderName --python -m v2

  2. cd into NewFolderName and activate the Python virtual env (using PowerShell): ./.venv/scripts/activate

  3. Install the requirements.txt file on the virtual env: python -m pip install -r requirements.txt OR pip install -r requirements.txt

  4. 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']

About

Learn Azure Functions Python V2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published