title | description | ms.service | ms.topic | ms.date | ms.custom |
---|---|---|---|---|---|
Create a function app in a Premium plan - Azure CLI |
Create a function app in a scalable Premium plan in Azure using the Azure CLI |
azure-functions |
sample |
03/24/2022 |
devx-track-azurecli |
This Azure Functions sample script creates a function app, which is a container for your functions. The function app that is created uses a scalable Premium plan.
[!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-premium-plan/create-function-app-premium-plan.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 plan create | Creates a Premium plan in a specific SKU. |
az functionapp create | Creates a function app in the App Service plan. |
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.