Sample setup using Poetry to build a sane Azure Functions development environment for Python in VSCode.
- Install Azure Functions Core-Tools: https://github.com/Azure/azure-functions-core-tools
- Make sure that you're using Python 3.6.7 inside the repository (I highly recommend using pyenv: https://github.com/pyenv/pyenv)
- Install Poetry: https://github.com/sdispater/poetry
- Run
poetry installfrom the repository - Copy local.settings.json-example to local.settings.json and adjust the values
- Copy .vscode/settings.json-example to .vscode/settings.json and adjust the values
- In VSCode install the Python extension
- Install dotnet-sdk: https://dotnet.microsoft.com/download
- Run
func extensions installfrom the repository - Run the VSCode task
Run Functions - Attach to debug