# azure-samples/functions-quickstart-python-http-azd architecture

> Architecture diagram of the GitHub repository azure-samples/functions-quickstart-python-http-azd, 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/functions-quickstart-python-http-azd
- Repository: https://github.com/azure-samples/functions-quickstart-python-http-azd

## Overview

This is a small Azure Functions Python HTTP-trigger sample. Callers send GET or POST requests to the function app: GET greets using an optional name; POST parses and validates name and age, then returns a greeting or a 400 response. The README also documents deploying the app with managed identity and an optional-by-parameter VNet. The function source was shown; infrastructure files were not, so their internal resource wiring is not inferred.

Main entry points: [`infra/main.bicep`](https://github.com/azure-samples/functions-quickstart-python-http-azd/blob/main/infra/main.bicep) (Azure resources), [`function_app.py`](https://github.com/azure-samples/functions-quickstart-python-http-azd/blob/main/function_app.py) (GET handler), [`infra/app/api.bicep`](https://github.com/azure-samples/functions-quickstart-python-http-azd/blob/main/infra/app/api.bicep) (Function app), [`infra/app/vnet.bicep`](https://github.com/azure-samples/functions-quickstart-python-http-azd/blob/main/infra/app/vnet.bicep) (Virtual network)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["HTTP runtime"]
  node_get["GET handler<br/>[function_app.py]"]
  node_post["POST handler<br/>[function_app.py]"]
end

subgraph group_deployment["Azure deployment"]
  node_azure["Azure resources<br/>[main.bicep]"]
  node_function_resource["Function app<br/>[api.bicep]"]
  node_network["Virtual network<br/>[vnet.bicep]"]
  node_identity["Identity access<br/>[rbac.bicep]"]
end

node_caller(("HTTP caller"))

node_caller -->|"sends GET"| node_get
node_caller -->|"sends POST"| node_post
node_get -->|"returns greeting"| node_caller
node_post -->|"returns response"| node_caller
node_azure -.->|"provisions"| node_function_resource
node_azure -.->|"provisions"| node_network
node_azure -.->|"provisions"| node_identity
node_function_resource -.->|"uses when enabled"| node_network

click node_get "https://github.com/azure-samples/functions-quickstart-python-http-azd/blob/main/function_app.py"
click node_post "https://github.com/azure-samples/functions-quickstart-python-http-azd/blob/main/function_app.py"
click node_azure "https://github.com/azure-samples/functions-quickstart-python-http-azd/blob/main/infra/main.bicep"
click node_function_resource "https://github.com/azure-samples/functions-quickstart-python-http-azd/blob/main/infra/app/api.bicep"
click node_network "https://github.com/azure-samples/functions-quickstart-python-http-azd/blob/main/infra/app/vnet.bicep"
click node_identity "https://github.com/azure-samples/functions-quickstart-python-http-azd/blob/main/infra/app/rbac.bicep"

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_get,node_post toneBlue
class node_azure,node_function_resource,node_network,node_identity toneAmber
class node_caller toneIndigo
```

## Components

### HTTP runtime

- [GET handler](https://github.com/azure-samples/functions-quickstart-python-http-azd/blob/main/function_app.py): `function_app.py`
- [POST handler](https://github.com/azure-samples/functions-quickstart-python-http-azd/blob/main/function_app.py): `function_app.py`

### Azure deployment

- [Azure resources](https://github.com/azure-samples/functions-quickstart-python-http-azd/blob/main/infra/main.bicep): `infra/main.bicep`
- [Function app](https://github.com/azure-samples/functions-quickstart-python-http-azd/blob/main/infra/app/api.bicep): `infra/app/api.bicep`
- [Virtual network](https://github.com/azure-samples/functions-quickstart-python-http-azd/blob/main/infra/app/vnet.bicep): `infra/app/vnet.bicep`
- [Identity access](https://github.com/azure-samples/functions-quickstart-python-http-azd/blob/main/infra/app/rbac.bicep): `infra/app/rbac.bicep`

### Other components

- **HTTP caller**

## Connections

- HTTP caller → GET handler: sends GET (evidence: `README.md`)
- HTTP caller → POST handler: sends POST (evidence: `README.md`)
- GET handler → HTTP caller: returns greeting (evidence: `function_app.py`)
- POST handler → HTTP caller: returns response (evidence: `function_app.py`)
- Azure resources → Function app: provisions
- Azure resources → Virtual network: provisions
- Azure resources → Identity access: provisions
- Function app → Virtual network: uses when enabled (evidence: `README.md`)
