Skip navigation

Create Function App and private endpoint-secured Storage

Last updated: 2021-07-21

This template allows you to deploy an Azure Function App that communicates with Azure Storage over private endpoints.

This Azure Resource Manager (ARM) template was created by a member of the community and not by Microsoft. Each ARM template is licensed to you under a licence agreement by its owner, not Microsoft. Microsoft is not responsible for ARM templates provided and licensed by community members and does not screen for security, compatibility or performance. Community ARM templates are not supported under any Microsoft support programme or service, and are made available AS IS without warranty of any kind.

Parameters

Parameter Name Description
location The location into which the resources should be deployed.
functionAppName The name of the Azure Function app.
functionAppPlanName The name of the Azure Function hosting plan.
functionPlanOS Specifies the OS used for the Azure Function hosting plan.
functionAppPlanSku Specifies the Azure Function hosting plan SKU.
functionStorageAccountName The name of the backend Azure storage account used by the Azure Function app.
vnetName The name of the virtual network for virtual network integration.
functionSubnetName The name of the virtual network subnet to be associated with the Azure Function app.
privateEndpointSubnetName The name of the virtual network subnet used for allocating IP addresses for private endpoints.
vnetAddressPrefix The IP adddress space used for the virtual network.
functionSubnetAddressPrefix The IP address space used for the Azure Function integration subnet.
privateEndpointSubnetAddressPrefix The IP address space used for the private endpoints.

Use the template

PowerShell

New-AzResourceGroup -Name <resource-group-name> -Location <resource-group-location> #use this command when you need to create a new resource group for your deployment
New-AzResourceGroupDeployment -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.web/function-app-storage-private-endpoints/azuredeploy.json
Installing and configuring Azure PowerShell

Command line

az group create --name <resource-group-name> --location <resource-group-location> #use this command when you need to create a new resource group for your deployment
az group deployment create --resource-group <my-resource-group> --template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.web/function-app-storage-private-endpoints/azuredeploy.json
Installing and configuring the Azure cross-platform command-line interface