title | description | services | documentationcenter | author | manager | editor | tags | ms.assetid | ms.service | ms.devlang | ms.topic | ms.tgt_pltfrm | ms.workload | ms.date | ms.author | ms.custom |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Azure CLI Script Sample - Create a Function App for serverless execution | Microsoft Docs |
Azure CLI Script Sample - Create a Function App for serverless execution |
functions |
functions |
syntaxc4 |
cfowler |
azure-service-management |
0e221db6-ee2d-4e16-9bf6-a456cd05b6e7 |
functions |
azurecli |
sample |
na |
web |
07/03/2018 |
glenga |
mvc |
This Azure Functions sample script creates a function app, which is a container for your functions. The function app is created using the consumption plan, which is ideal for event-driven serverless workloads.
[!INCLUDE upgrade runtime]
[!INCLUDE quickstarts-free-trial-note]
[!INCLUDE cloud-shell-try-it.md]
If you choose to install and use the CLI locally, this article requires that you are running the Azure CLI version 2.0 or later. Run az --version
to find the version. If you need to install or upgrade, see Install Azure CLI 2.0.
This script creates an Azure Function app using the consumption plan.
[!code-azurecli-interactivemain]
[!INCLUDE cli-script-clean-up]
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.