title | description | ms.assetid | ms.topic | ms.date | ms.custom |
---|---|---|---|---|---|
Create a serverless Python function app - Azure CLI |
Create a serverless Python function app using the Azure CLI |
0e221db6-ee2d-4e16-9bf6-a456cd05b6e7 |
sample |
03/24/2022 |
devx-track-python, devx-track-azurecli |
This Azure Functions sample script creates a function app, which is a container for your functions. This script creates an Azure Function app using the Consumption plan.
Note
The function app created runs on Python version 3.9. Python version 3.7 and 3.8 are also supported by Azure Functions.
[!INCLUDE quickstarts-free-trial-note]
[!INCLUDE azure-cli-prepare-your-environment.md]
[!INCLUDE cli-launch-cloud-shell-sign-in.md]
:::code language="azurecli" source="~/azure_cli_scripts/azure-functions/create-function-app-consumption-python/create-function-app-consumption-python.sh" id="FullScript":::
[!INCLUDE cli-clean-up-resources.md]
az group delete --name $resourceGroup
Each command in the table links to command specific documentation. This script uses the following commands:
Command | Notes |
---|---|
az group create | Creates a resource group in which all resources are stored. |
az storage account create | Creates an Azure Storage account. |
az functionapp create | Creates a function app. |
For more information on the Azure CLI, see Azure CLI documentation.
Additional Azure Functions CLI script samples can be found in the Azure Functions documentation.