The Azure Quickstart templates are currently available in English

Create Function App and private endpoint-secured Storage

Por gabesmsft
Última atualização: 11/05/2021

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

Este modelo do ARM (Azure Resource Manager) foi criado por um membro da comunidade, e não pela Microsoft. Cada modelo do ARM é licenciado para você de acordo com o contrato de licença de seu proprietário, e não da Microsoft. A Microsoft não é responsável por modelos do ARM fornecidos e licenciado por membros da comunidade e não avalia sua segurança, compatibilidade ou desempenho. Modelos do ARM da comunidade não têm suporte de nenhum programa ou serviço de suporte da Microsoft e são disponibilizados DA FORMA COMO ESTÃO, sem nenhum tipo de garantia.

Parâmetros

Nome do parâmetro Descrição
Location Location to deploy resources to.
AppName Name of the Function App.
plan Name of the Elastic Premium Plan for the Function App.
skuName The Sku name/size of the Elastic Premium plan
vnetName Name of the VNET that the Function App and Storage account will communicate over.
functionsSubnetName The subnet that the Function App will use for VNET traffic.
storagePESubnetName The subnet that will be used for the Storage private endpoints.
StorageAccountName Name of the Storage account that the Function App will use for operations and content.
virtualNetworkAddressPrefix VNET address space.
functionSubnetAddressPrefix Function App's subnet address range.
privateEndpointSubnetAddressPrefix Storage account's private endpoint's subnet address range.
postDeploymentScript An optional script to run after resource deployment to help ensure that the Functions host is able to start after the content share is pointing to the secured Storage account. This script will make an authenticated GET request to the Function App's Kudu site. If none is specified, this script won't be run.
identityName Name of an existing user managed identity used to run the optional deployment script. This parameter will be ignored if you specify none for the postDeploymentScript parameter.
identityNameResourceGroup Resource group of existing user managed identity used to run the optional deployment script. This parameter will be ignored if you specify none for the postDeploymentScript parameter.

Usar o modelo

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
Instale e configure o PowerShell do Azure

Linha de comando

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
Instalar e configurar a Interface de Linha de Comando de Plataforma Cruzada do Azure