The Azure Quickstart templates are currently available in English

Create Function App and private endpoint-secured Storage

por gabesmsft
Última actualización: 28/02/2021

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

Esta plantilla de Azure Resource Manager (ARM) la creó un miembro de la comunidad, no Microsoft. Su propietario (no Microsoft) le permite usar las plantillas de ARM con arreglo a un contrato de licencia. Microsoft no se responsabiliza de ninguna plantilla de ARM que le proporcionen los miembros de la comunidad (o cuya licencia le otorguen) en cuanto a su seguridad, compatibilidad ni rendimiento. Las plantillas de ARM de la comunidad no reciben ningún tipo de soporte en ningún servicio ni programa de soporte de Microsoft. Dichas plantillas se proporcionan TAL CUAL, sin garantía de ningún tipo.

Parámetros

Nombre del parámetro Descripción
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.

Uso de la plantilla

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/101-function-app-storage-private-endpoints/azuredeploy.json
Instalar y configurar PowerShell de Azure

Línea de comandos

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/101-function-app-storage-private-endpoints/azuredeploy.json
Instalación y configuración de la interfaz de línea de comandos multiplataforma de Azure