** * You don't need an Azure account because you can start up and check the operation locally and not deploy to Azure **
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
Python
Azure Functions When the installation is completed, the Azure button will increase in the menu on the left, and when selected, the "FUNCTIONS" display will increase.
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
Select "Azure Functions v3" and Enter
⇒Wait until the installation is completed
Tap func
from the terminal to display the Azure Functions mark etc.
Create an Azure Functions project by referring to the following https://docs.microsoft.com/ja-jp/azure/python/tutorial-vs-code-serverless-python-02
HTTP trigger
because it will be an API)
__init__.py
will be displayed.
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
It is displayed as below and you can confirm that the API is executed
name
parameter in the query string or request body, the default is to displayHello {name}!
.
Recommended Posts