Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 2.03 KB

functions-cli-create-serverless-python.md

File metadata and controls

51 lines (33 loc) · 2.03 KB
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

Create a serverless Python function app using Azure CLI

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]

Sample script

[!INCLUDE cli-launch-cloud-shell-sign-in.md]

Run the script

:::code language="azurecli" source="~/azure_cli_scripts/azure-functions/create-function-app-consumption-python/create-function-app-consumption-python.sh" id="FullScript":::

Clean up resources

[!INCLUDE cli-clean-up-resources.md]

az group delete --name $resourceGroup

Sample reference

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.

Next steps

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.