Skip to content

Azure Flex Consumption Function with Private Networking demo quickstart template written in Bicep using Azure Verified Modules

Notifications You must be signed in to change notification settings

riosengineer/flex-consumption-function-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

⚡Azure Function - Flex Consumption Private Networking Quickstart Bicep Template 💪

This repository contains a Bicep template, written entirely with Azure Verified Modules public registry modules to demo / boiler plate a template to demo Azure Function - Consumption Plan with private networking.

The Bicep template will deploy:

  • Resource Group which will contain:
  • Function App & App Service (Flex Consumption) Plan
  • Application Insights & Log Analytics Workspace
  • Storage Account (to host the deployment runtime)
  • Virtual Network with subnets
  • Network Security Groups
  • Private DNS Zone(s)

The function is connected to storage through managed identity and RBAC. In addition, Application Insights is also connected via Entra ID only with RBAC.

Note

This is a demo / boilerplate quickstart template to show off Function Flex Consumption with private networking. I would not recommend you use Private DNS Zones like this directly in the resource group of your application. Use existing resource to point to your hub where your DNS Zones should be located.

📃 Benefits of Flex Consumption

  • ✅ Can scale to zero.
  • ✅ Private networking and virtual network integration.
  • ✅ Can scale up to 1000 instances, very quickly.
  • ✅ AlwaysOn capability so you do not suffer from cold start issues.
  • ✅ Supports managed identity connections for full platform functionality.

What it can't do (right now): Deployment Slots & Key Vault/App Config access via App Settings (only possible directly via code calls).

Read more about Flex Consumtpion here: https://learn.microsoft.com/en-gb/azure/azure-functions/flex-consumption-plan

🚀 Deploy

Set your main.bicepparam to your desired values and save.

az login
az deployment sub create -l <region> -f bicep/main.bicep -p bicep/main.bicepparam

About

Azure Flex Consumption Function with Private Networking demo quickstart template written in Bicep using Azure Verified Modules

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages