# azure-samples/azure-functions-flex-consumption-samples architecture

> Architecture diagram of the GitHub repository azure-samples/azure-functions-flex-consumption-samples, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/azure-samples/azure-functions-flex-consumption-samples
- Repository: https://github.com/azure-samples/azure-functions-flex-consumption-samples

## Overview

This repository is a catalog of Azure Functions Flex Consumption samples, not a single function application. Its documented workflows cover starter triggers and integrations, larger end-to-end scenarios, and four infrastructure-as-code deployment formats. The README describes these capabilities but no implementation excerpts were supplied, so sample behavior is represented only at the documented scenario level; IaC nodes point to the templates named in the file tree.

Main entry points: [`IaC/armtemplate/azuredeploy.json`](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/IaC/armtemplate/azuredeploy.json) (ARM template), [`IaC/bicep/main.bicep`](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/IaC/bicep/main.bicep) (Bicep template), [`IaC/terraformazapi/main.tf`](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/IaC/terraformazapi/main.tf) (Terraform AzAPI), [`IaC/terraformazurerm/main.tf`](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/IaC/terraformazurerm/main.tf) (Terraform AzureRM)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_starters["Starter samples"]
  node_http["HTTP quickstarts<br/>[README.md]"]
  node_blob["Blob Event Grid<br/>[README.md]"]
  node_timer["Timer quickstart<br/>[README.md]"]
  node_cosmos["Cosmos DB triggers<br/>[README.md]"]
  node_sql["SQL triggers<br/>[README.md]"]
  node_servicebus["Service Bus triggers<br/>[README.md]"]
  node_durable["Durable Functions<br/>[README.md]"]
  node_mcp_functions["Functions MCP<br/>[README.md]"]
  node_mcp_sdk["Anthropic MCP SDK<br/>[README.md]"]
end

subgraph group_e2e["End-to-end samples"]
  node_http_eventhubs["HTTP to Event Hubs<br/>[README.md]"]
  node_telemetry["Telemetry streaming<br/>[README.md]"]
  node_sb_vnet["Service Bus VNet<br/>[README.md]"]
  node_pdf_text["PDF text processing<br/>[README.md]"]
  node_orders["Order workflow<br/>[README.md]"]
  node_chat["SignalR chatroom<br/>[README.md]"]
end

subgraph group_iac["Infrastructure as code"]
  node_arm["ARM template<br/>[azuredeploy.json]"]
  node_bicep["Bicep template<br/>[main.bicep]"]
  node_azapi["Terraform AzAPI<br/>[main.tf]"]
  node_azurerm["Terraform AzureRM<br/>[main.tf]"]
end

node_developer(("Sample developer"))
node_flex["Azure Functions Flex Consumption"]

node_developer -->|"uses quickstart"| node_http
node_developer -->|"uses quickstart"| node_blob
node_developer -->|"uses quickstart"| node_timer
node_developer -->|"uses quickstart"| node_cosmos
node_developer -->|"uses quickstart"| node_sql
node_developer -->|"uses quickstart"| node_servicebus
node_developer -->|"uses quickstart"| node_durable
node_developer -->|"uses quickstart"| node_mcp_functions
node_developer -->|"uses quickstart"| node_mcp_sdk
node_developer -->|"explores scenario"| node_http_eventhubs
node_developer -->|"explores scenario"| node_telemetry
node_developer -->|"explores scenario"| node_sb_vnet
node_developer -->|"explores scenario"| node_pdf_text
node_developer -->|"explores scenario"| node_orders
node_developer -->|"explores scenario"| node_chat
node_developer -->|"deploys with ARM"| node_arm
node_developer -->|"deploys with Bicep"| node_bicep
node_developer -->|"deploys with Terraform"| node_azapi
node_developer -->|"deploys with Terraform"| node_azurerm
node_arm -->|"deploys app"| node_flex
node_bicep -->|"deploys app"| node_flex
node_azapi -->|"deploys app"| node_flex
node_azurerm -->|"deploys app"| node_flex

click node_http "https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md"
click node_blob "https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md"
click node_timer "https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md"
click node_cosmos "https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md"
click node_sql "https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md"
click node_servicebus "https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md"
click node_durable "https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md"
click node_mcp_functions "https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md"
click node_mcp_sdk "https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md"
click node_http_eventhubs "https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md"
click node_telemetry "https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md"
click node_sb_vnet "https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md"
click node_pdf_text "https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md"
click node_orders "https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md"
click node_chat "https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md"
click node_arm "https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/IaC/armtemplate/azuredeploy.json"
click node_bicep "https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/IaC/bicep/main.bicep"
click node_azapi "https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/IaC/terraformazapi/main.tf"
click node_azurerm "https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/IaC/terraformazurerm/main.tf"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_http,node_blob,node_timer,node_cosmos,node_sql,node_servicebus,node_durable,node_mcp_functions,node_mcp_sdk toneBlue
class node_http_eventhubs,node_telemetry,node_sb_vnet,node_pdf_text,node_orders,node_chat toneAmber
class node_arm,node_bicep,node_azapi,node_azurerm toneMint
class node_developer,node_flex toneIndigo
```

## Components

### Starter samples

- [HTTP quickstarts](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md): `README.md`
- [Blob Event Grid](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md): `README.md`
- [Timer quickstart](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md): `README.md`
- [Cosmos DB triggers](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md): `README.md`
- [SQL triggers](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md): `README.md`
- [Service Bus triggers](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md): `README.md`
- [Durable Functions](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md): `README.md`
- [Functions MCP](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md): `README.md`
- [Anthropic MCP SDK](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md): `README.md`

### End-to-end samples

- [HTTP to Event Hubs](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md): `README.md`
- [Telemetry streaming](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md): `README.md`
- [Service Bus VNet](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md): `README.md`
- [PDF text processing](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md): `README.md`
- [Order workflow](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md): `README.md`
- [SignalR chatroom](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/README.md): `README.md`

### Infrastructure as code

- [ARM template](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/IaC/armtemplate/azuredeploy.json): `IaC/armtemplate/azuredeploy.json`
- [Bicep template](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/IaC/bicep/main.bicep): `IaC/bicep/main.bicep`
- [Terraform AzAPI](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/IaC/terraformazapi/main.tf): `IaC/terraformazapi/main.tf`
- [Terraform AzureRM](https://github.com/azure-samples/azure-functions-flex-consumption-samples/blob/main/IaC/terraformazurerm/main.tf): `IaC/terraformazurerm/main.tf`

### Other components

- **Sample developer**
- **Azure Functions Flex Consumption**

## Connections

- Sample developer → HTTP quickstarts: uses quickstart (evidence: `README.md`)
- Sample developer → Blob Event Grid: uses quickstart (evidence: `README.md`)
- Sample developer → Timer quickstart: uses quickstart (evidence: `README.md`)
- Sample developer → Cosmos DB triggers: uses quickstart (evidence: `README.md`)
- Sample developer → SQL triggers: uses quickstart (evidence: `README.md`)
- Sample developer → Service Bus triggers: uses quickstart (evidence: `README.md`)
- Sample developer → Durable Functions: uses quickstart (evidence: `README.md`)
- Sample developer → Functions MCP: uses quickstart (evidence: `README.md`)
- Sample developer → Anthropic MCP SDK: uses quickstart (evidence: `README.md`)
- Sample developer → HTTP to Event Hubs: explores scenario (evidence: `README.md`)
- Sample developer → Telemetry streaming: explores scenario (evidence: `README.md`)
- Sample developer → Service Bus VNet: explores scenario (evidence: `README.md`)
- Sample developer → PDF text processing: explores scenario (evidence: `README.md`)
- Sample developer → Order workflow: explores scenario (evidence: `README.md`)
- Sample developer → SignalR chatroom: explores scenario (evidence: `README.md`)
- Sample developer → ARM template: deploys with ARM (evidence: `README.md`)
- Sample developer → Bicep template: deploys with Bicep (evidence: `README.md`)
- Sample developer → Terraform AzAPI: deploys with Terraform (evidence: `README.md`)
- Sample developer → Terraform AzureRM: deploys with Terraform (evidence: `README.md`)
- ARM template → Azure Functions Flex Consumption: deploys app (evidence: `README.md`)
- Bicep template → Azure Functions Flex Consumption: deploys app (evidence: `README.md`)
- Terraform AzAPI → Azure Functions Flex Consumption: deploys app (evidence: `README.md`)
- Terraform AzureRM → Azure Functions Flex Consumption: deploys app (evidence: `README.md`)
