VS Code + Azure Functions + Python environment construction procedure

Prerequisites

** * You don't need an Azure account because you can start up and check the operation locally and not deploy to Azure **

Environment

Python(3.7.x) Download and install the ** 64bit version ** of 3.7.4 from the following Enforce Disable Path length limit at the end of the process

Install VS Code plugin

Azure Functions Core Tools Press "F1" on VS Code ⇒ Enter "Azure Functions: Install or Update Azure Functions Core Tools" and Enter ※reference https://docs.microsoft.com/ja-jp/azure/javascript/tutorial-vscode-serverless-node-01#install-the-azure-functions-core-tools vscode_core_tools1.png Select "Azure Functions v3" and Enter ⇒Wait until the installation is completed vscode_core_tools2.png Tap func from the terminal to display the Azure Functions mark etc. vscode_func.png

Creating an Azure Functions project (Python)

Create an Azure Functions project by referring to the following https://docs.microsoft.com/ja-jp/azure/python/tutorial-vs-code-serverless-python-02

  1. Select a folder image.png
  2. Select a language (Python) image.png
  3. Select Python version (3.7.4) image.png
  4. Select a trigger (select HTTP trigger because it will be an API) image.png
  5. Set the function name (function name = endpoint) image.png
  6. Select the approval level (Anonymous) image.png
  7. When the project creation is completed, the project will be created in the folder selected in 1. and __init__.py will be displayed. image.png

Start & check operation

Start Functions from "Debug" ⇒ "Start Debugging" in the menu When the startup is completed, the URL will be displayed, so access it from the browser with Ctrl + click image.png

It is displayed as below and you can confirm that the API is executed

Recommended Posts

VS Code + Azure Functions + Python environment construction procedure
Anaconda3 python environment construction procedure
Python environment construction
Environment construction (python)
python environment construction
Python --Environment construction
Python environment construction
python environment construction
Python (anaconda) development environment construction procedure (SpringToolsSuites) _2020.4
Python project environment construction procedure (for windows)
Environment construction procedure: Ubuntu + Apache2 + Python + Pyramid
python windows environment construction
homebrew python environment construction
Python (Windows 10) Virtual Environment / Package with VS Code
Python development environment construction
python2.7 development environment construction
Use Python in Anaconda environment with VS Code
Mac environment construction Python
Python environment construction @ Win7
Make your Python environment "easy" with VS Code
Build a python execution environment with VS Code
Python local development environment construction template [Flask / Django / Jupyter with Docker + VS Code]
Easy Python data analysis environment construction with Windows10 Pro x VS Code x Docker
Google App Engine / Python development environment construction procedure (late 2014)
Procedure to exe python file from Ubunts environment construction
Python + Anaconda + Pycharm environment construction
Python with VS Code (Windows 10)
Python environment construction (Windows10 + Emacs)
CI environment construction ~ Python edition ~
Python environment construction For Mac
Debug Python with VS Code
Python3 environment construction (for beginners)
Python environment construction and TensorFlow
Python environment construction under Windows7 environment
[MEMO] [Development environment construction] Python
Environment construction of python2 & 3 (OSX)
Environment construction for those who want to study python easily with VS Code (for Mac)
Golang + Gin + Docker hot reload, VS Code debugging environment construction
Python environment construction procedure memo using Docker on Windows10 Home
UpNext2 Development Record # 1 Build Python CI environment in VS Code
Build a Python environment with WSL + Pyenv + Jupyter + VS Code
Execute C ++ functions from Python with Pybind11 (for Windows & Visual Studio Code people) Environment construction
Environment construction of python and opencv
Python environment construction memo on Windows 10
Azure Functions: Try Durable Functions for Python
Get started with Python! ~ ① Environment construction ~
Anaconda python environment construction on Windows 10
Python + Unity Reinforcement learning environment construction
[Django] Memorandum of environment construction procedure
I checked Mac Python environment construction
Python environment construction memo on Mac
Python environment construction (pyenv, anaconda, tensorflow)
[Python3] Development environment construction << Windows edition >>
Python development environment construction on macOS
Python environment construction (pyenv + poetry + pipx)
Environment construction of python3.8 on mac
Python3 environment construction with pyenv-virtualenv (CentOS 7.3)
Python3 TensorFlow for Mac environment construction
Emacs Python development environment construction memo
pytorch @ python3.8 environment construction with pipenv
[docker] python3.5 + numpy + matplotlib environment construction