Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 2.16 KB

functions-cli-create-premium-plan.md

File metadata and controls

49 lines (32 loc) · 2.16 KB
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

Create a function app in a Premium plan - Azure CLI

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]

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-premium-plan/create-function-app-premium-plan.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 plan create Creates a Premium plan in a specific SKU.
az functionapp create Creates a function app in the App Service plan.

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.