# azure/azure-functions-core-tools architecture

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

- Interactive diagram: https://gitdiagram.com/azure/azure-functions-core-tools
- Repository: https://github.com/azure/azure-functions-core-tools

## Overview

Azure Functions Core Tools is a cross-platform CLI for creating, developing, running, testing, and debugging Functions locally, with additional Azure publishing and Kubernetes/container deployment workflows. Users invoke `func` commands; the CLI dispatches actions that configure projects or start the local host, while separate commands manage Durable Functions and cloud deployment. The graph includes major README capabilities and core modules named by the source index. Some action routing and unsampled deployment internals are only indicated at subsystem level; those links are dashed rather than asserted as inspected calls.

Main entry points: [`src/Cli/func/Actions`](https://github.com/azure/azure-functions-core-tools/tree/main/src/Cli/func/Actions) (Command actions), [`src/Cli/func/Common/TemplatesManager.cs`](https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Common/TemplatesManager.cs) (Project templates), [`src/Cli/func/Program.cs`](https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Program.cs) (CLI entry), [`src/Cli/func/Actions/AzureActions`](https://github.com/azure/azure-functions-core-tools/tree/main/src/Cli/func/Actions/AzureActions) (Azure commands)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["CLI and project workflows"]
  node_program["CLI entry<br/>[Program.cs]"]
  node_commands["Command actions"]
  node_templates["Project templates"]
  node_template["Template model<br/>[Template.cs]"]
  node_filesystem["Project files"]
  node_runtimeconfig["Runtime settings"]
  node_worker["Worker selection"]
  node_extensions["Extension bundles"]
end

subgraph group_local["Local Functions runtime"]
  node_localhost["Local host<br/>[StartHostAction.cs]"]
  node_localserver["Local server"]
end

subgraph group_cloud["Cloud and deployment"]
  node_azureactions["Azure commands"]
  node_azurehelper["Azure resources<br/>[AzureHelper.cs]"]
  node_connection["Connection strings"]
  node_durable["Durable management<br/>[DurableManager.cs]"]
  node_deploy["Deployment commands"]
  node_kubernetes["Kubernetes deployment"]
  node_containerapps["Container Apps"]
end

subgraph group_telemetry["Telemetry delivery"]
  node_telemetry["Telemetry client<br/>[Telemetry.cs]"]
  node_channel["Persistent channel"]
  node_storage[("Telemetry storage<br/>[StorageService.cs]")]
  node_transmission["Transmission format"]
end

node_user(("Developer"))
node_ai(("Application Insights"))

node_user -->|"runs commands"| node_program
node_program -.->|"dispatches actions"| node_commands
node_program -->|"registers service"| node_templates
node_user -.->|"runs locally"| node_localhost
node_templates -->|"uses model"| node_template
node_templates -->|"loads bundles"| node_extensions
node_templates -->|"uses file helpers"| node_filesystem
node_runtimeconfig -->|"selects worker"| node_worker
node_commands -.->|"starts host"| node_localhost
node_localhost -.->|"starts server"| node_localserver
node_commands -.->|"manages Azure"| node_azureactions
node_azureactions -->|"queries resources"| node_azurehelper
node_azureactions -->|"stores connection"| node_connection
node_commands -.->|"manages instances"| node_durable
node_user -.->|"publishes functions"| node_deploy
node_user -.->|"deploys to Kubernetes"| node_kubernetes
node_user -.->|"deploys containers"| node_containerapps
node_telemetry -->|"configures channel"| node_channel
node_channel -->|"queues transmissions"| node_storage
node_storage -->|"serializes files"| node_transmission
node_channel -->|"sends HTTPS telemetry"| node_ai

click node_program "https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Program.cs"
click node_commands "https://github.com/azure/azure-functions-core-tools/tree/main/src/Cli/func/Actions"
click node_templates "https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Common/TemplatesManager.cs"
click node_template "https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Common/Template.cs"
click node_filesystem "https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Common/FileSystemHelpers.cs"
click node_runtimeconfig "https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Helpers/GlobalCoreToolsSettings.cs"
click node_worker "https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Helpers/WorkerRuntimeLanguageHelper.cs"
click node_extensions "https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/ExtensionBundle/ExtensionBundleHelper.cs"
click node_localhost "https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Actions/HostActions/StartHostAction.cs"
click node_localserver "https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/FunctionsLocalServer.cs"
click node_azureactions "https://github.com/azure/azure-functions-core-tools/tree/main/src/Cli/func/Actions/AzureActions"
click node_azurehelper "https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Helpers/AzureHelper.cs"
click node_connection "https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Common/ConnectionString.cs"
click node_durable "https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Common/DurableManager.cs"
click node_deploy "https://github.com/azure/azure-functions-core-tools/tree/main/src/Cli/func/Actions/DeployActions"
click node_kubernetes "https://github.com/azure/azure-functions-core-tools/tree/main/src/Cli/func/Actions/KubernetesActions"
click node_containerapps "https://github.com/azure/azure-functions-core-tools/tree/main/src/Cli/func/Actions/ContainerService"
click node_telemetry "https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Telemetry/Telemetry.cs"
click node_channel "https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Telemetry/PersistenceChannel/PersistenceChannel.cs"
click node_storage "https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Telemetry/PersistenceChannel/StorageService.cs"
click node_transmission "https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Telemetry/PersistenceChannel/StorageTransmission.cs"

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_program,node_commands,node_templates,node_template,node_filesystem,node_runtimeconfig,node_worker,node_extensions toneBlue
class node_localhost,node_localserver toneAmber
class node_azureactions,node_azurehelper,node_connection,node_durable,node_deploy,node_kubernetes,node_containerapps toneMint
class node_telemetry,node_channel,node_storage,node_transmission toneRose
class node_user,node_ai toneIndigo
```

## Components

### CLI and project workflows

- [CLI entry](https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Program.cs): `src/Cli/func/Program.cs`
- [Command actions](https://github.com/azure/azure-functions-core-tools/tree/main/src/Cli/func/Actions): `src/Cli/func/Actions`
- [Project templates](https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Common/TemplatesManager.cs): `src/Cli/func/Common/TemplatesManager.cs`
- [Template model](https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Common/Template.cs): `src/Cli/func/Common/Template.cs`
- [Project files](https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Common/FileSystemHelpers.cs): `src/Cli/func/Common/FileSystemHelpers.cs`
- [Runtime settings](https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Helpers/GlobalCoreToolsSettings.cs): `src/Cli/func/Helpers/GlobalCoreToolsSettings.cs`
- [Worker selection](https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Helpers/WorkerRuntimeLanguageHelper.cs): `src/Cli/func/Helpers/WorkerRuntimeLanguageHelper.cs`
- [Extension bundles](https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/ExtensionBundle/ExtensionBundleHelper.cs): `src/Cli/func/ExtensionBundle/ExtensionBundleHelper.cs`

### Local Functions runtime

- [Local host](https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Actions/HostActions/StartHostAction.cs): `src/Cli/func/Actions/HostActions/StartHostAction.cs`
- [Local server](https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/FunctionsLocalServer.cs): `src/Cli/func/FunctionsLocalServer.cs`

### Cloud and deployment

- [Azure commands](https://github.com/azure/azure-functions-core-tools/tree/main/src/Cli/func/Actions/AzureActions): `src/Cli/func/Actions/AzureActions`
- [Azure resources](https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Helpers/AzureHelper.cs): `src/Cli/func/Helpers/AzureHelper.cs`
- [Connection strings](https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Common/ConnectionString.cs): `src/Cli/func/Common/ConnectionString.cs`
- [Durable management](https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Common/DurableManager.cs): `src/Cli/func/Common/DurableManager.cs`
- [Deployment commands](https://github.com/azure/azure-functions-core-tools/tree/main/src/Cli/func/Actions/DeployActions): `src/Cli/func/Actions/DeployActions`
- [Kubernetes deployment](https://github.com/azure/azure-functions-core-tools/tree/main/src/Cli/func/Actions/KubernetesActions): `src/Cli/func/Actions/KubernetesActions`
- [Container Apps](https://github.com/azure/azure-functions-core-tools/tree/main/src/Cli/func/Actions/ContainerService): `src/Cli/func/Actions/ContainerService`

### Telemetry delivery

- [Telemetry client](https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Telemetry/Telemetry.cs): `src/Cli/func/Telemetry/Telemetry.cs`
- [Persistent channel](https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Telemetry/PersistenceChannel/PersistenceChannel.cs): `src/Cli/func/Telemetry/PersistenceChannel/PersistenceChannel.cs`
- [Telemetry storage](https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Telemetry/PersistenceChannel/StorageService.cs): `src/Cli/func/Telemetry/PersistenceChannel/StorageService.cs`
- [Transmission format](https://github.com/azure/azure-functions-core-tools/blob/main/src/Cli/func/Telemetry/PersistenceChannel/StorageTransmission.cs): `src/Cli/func/Telemetry/PersistenceChannel/StorageTransmission.cs`

### Other components

- **Developer**
- **Application Insights**

## Connections

- Developer → CLI entry: runs commands
- CLI entry → Command actions: dispatches actions
- CLI entry → Project templates: registers service (evidence: `src/Cli/func/Program.cs`)
- Developer → Local host: runs locally
- Project templates → Template model: uses model (evidence: `src/Cli/func/Common/TemplatesManager.cs`)
- Project templates → Extension bundles: loads bundles (evidence: `src/Cli/func/Common/TemplatesManager.cs`)
- Project templates → Project files: uses file helpers (evidence: `src/Cli/func/Common/TemplatesManager.cs`)
- Runtime settings → Worker selection: selects worker (evidence: `src/Cli/func/Helpers/GlobalCoreToolsSettings.cs`)
- Command actions → Local host: starts host
- Local host → Local server: starts server
- Command actions → Azure commands: manages Azure (evidence: `src/Cli/func/Actions/AzureActions/AddStorageAccountSettingAction.cs`)
- Azure commands → Azure resources: queries resources (evidence: `src/Cli/func/Actions/AzureActions/AddStorageAccountSettingAction.cs`)
- Azure commands → Connection strings: stores connection (evidence: `src/Cli/func/Actions/AzureActions/AddStorageAccountSettingAction.cs`)
- Command actions → Durable management: manages instances
- Developer → Deployment commands: publishes functions
- Developer → Kubernetes deployment: deploys to Kubernetes
- Developer → Container Apps: deploys containers
- Telemetry client → Persistent channel: configures channel (evidence: `src/Cli/func/Telemetry/Telemetry.cs`)
- Persistent channel → Telemetry storage: queues transmissions (evidence: `src/Cli/func/Telemetry/PersistenceChannel/PersistenceChannel.cs`)
- Telemetry storage → Transmission format: serializes files (evidence: `src/Cli/func/Telemetry/PersistenceChannel/StorageService.cs`)
- Persistent channel → Application Insights: sends HTTPS telemetry (evidence: `src/Cli/func/Telemetry/PersistenceChannel/PersistenceChannel.cs`)
