# microsoft/azurelinux architecture

> Architecture diagram of the GitHub repository microsoft/azurelinux, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/microsoft/azurelinux
- Repository: https://github.com/microsoft/azurelinux

## Overview

Azure Linux is an RPM-based Linux distribution configured through component definitions and overlays, rendered against Fedora sources, then packaged and assembled into images. The README documents this high-level workflow and VM, container, ISO, and WSL offerings. The supplied tree is a selective sample, so the graph includes visible package helpers and sampled spec sources but cannot map the unsampled configuration, image definitions, or build orchestration in detail.

Main entry points: [`specs`](https://github.com/microsoft/azurelinux/tree/4.0/specs) (Rendered RPM specs), [`base/comps`](https://github.com/microsoft/azurelinux/tree/4.0/base/comps) (Components and overlays), [`base/images`](https://github.com/microsoft/azurelinux/tree/4.0/base/images) (Base images)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_definition["Distro definition"]
  node_component_defs["Components and overlays"]
  node_azldev["azldev renderer"]
end

subgraph group_packaging["Package preparation"]
  node_rendered_specs["Rendered RPM specs"]
  node_kernel_filter["Kernel module grouping<br/>[filtermods.py]"]
  node_kernel_uki["UKI addon helper"]
end

subgraph group_specsources["Package sources"]
  node_ansible_collection["Ansible collection helper"]
  node_cert_converter["Certificate converter<br/>[certdata2pem.py]"]
  node_edk2_build["EDK2 build helper<br/>[edk2-build.py]"]
  node_gdb_orphanripper["GDB orphan reaper<br/>[gdb-orphanripper.c]"]
  node_gettext_msghack["Gettext message helper<br/>[msghack.py]"]
  node_kernel_spec_filter["Kernel module grouping<br/>[filtermods.py]"]
  node_mii_diag["MII diagnostics<br/>[mii-diag.c]"]
  node_ngtcp2_api["ngtcp2 API generator<br/>[mkapiref.py]"]
  node_ocaml_files["OCaml file helper<br/>[ocaml_files.py]"]
  node_petsc_api["PETSc Cython API"]
  node_pyproject_files["Python RPM file helper"]
  node_drive_database["Drive database<br/>[drivedb.h]"]
  node_systemd_split["systemd file splitter<br/>[split-files.py]"]
  node_bcrypt["BCrypt implementation<br/>[BCrypt.java]"]
  node_xerces_javac["Xerces Java compiler<br/>[XJavac.java]"]
end

subgraph group_delivery["Distribution outputs"]
  node_rpm_services["RPM build services"]
  node_images["Base images"]
  node_users(("VM, container, ISO, WSL"))
end

node_developer(("Distro developer"))

node_developer -->|"defines"| node_component_defs
node_component_defs -->|"configures"| node_azldev
node_azldev -->|"renders"| node_rendered_specs
node_rendered_specs -->|"builds with"| node_rpm_services
node_rendered_specs -.->|"provides packages"| node_images
node_images -->|"delivers"| node_users

click node_component_defs "https://github.com/microsoft/azurelinux/tree/4.0/base/comps"
click node_rendered_specs "https://github.com/microsoft/azurelinux/tree/4.0/specs"
click node_kernel_filter "https://github.com/microsoft/azurelinux/blob/4.0/base/comps/kernel/filtermods.py"
click node_kernel_uki "https://github.com/microsoft/azurelinux/blob/4.0/base/comps/kernel/uki_create_addons.py"
click node_ansible_collection "https://github.com/microsoft/azurelinux/blob/4.0/specs/a/ansible-packaging/ansible_collection.py"
click node_cert_converter "https://github.com/microsoft/azurelinux/blob/4.0/specs/c/ca-certificates/certdata2pem.py"
click node_edk2_build "https://github.com/microsoft/azurelinux/blob/4.0/specs/e/edk2/edk2-build.py"
click node_gdb_orphanripper "https://github.com/microsoft/azurelinux/blob/4.0/specs/g/gdb/gdb-orphanripper.c"
click node_gettext_msghack "https://github.com/microsoft/azurelinux/blob/4.0/specs/g/gettext/msghack.py"
click node_kernel_spec_filter "https://github.com/microsoft/azurelinux/blob/4.0/specs/k/kernel/filtermods.py"
click node_mii_diag "https://github.com/microsoft/azurelinux/blob/4.0/specs/n/net-tools/mii-diag.c"
click node_ngtcp2_api "https://github.com/microsoft/azurelinux/blob/4.0/specs/n/ngtcp2/mkapiref.py"
click node_ocaml_files "https://github.com/microsoft/azurelinux/blob/4.0/specs/o/ocaml/ocaml_files.py"
click node_petsc_api "https://github.com/microsoft/azurelinux/blob/4.0/specs/p/petsc/petsc-3.20-PETSc_api_cython3.0.6.h"
click node_pyproject_files "https://github.com/microsoft/azurelinux/blob/4.0/specs/p/pyproject-rpm-macros/pyproject_save_files.py"
click node_drive_database "https://github.com/microsoft/azurelinux/blob/4.0/specs/s/smartmontools/drivedb.h"
click node_systemd_split "https://github.com/microsoft/azurelinux/blob/4.0/specs/s/systemd/split-files.py"
click node_bcrypt "https://github.com/microsoft/azurelinux/blob/4.0/specs/t/trilead-ssh2/BCrypt.java"
click node_xerces_javac "https://github.com/microsoft/azurelinux/blob/4.0/specs/x/xerces-j2/XJavac.java"
click node_images "https://github.com/microsoft/azurelinux/tree/4.0/base/images"

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_component_defs,node_azldev toneBlue
class node_rendered_specs,node_kernel_filter,node_kernel_uki toneAmber
class node_ansible_collection,node_cert_converter,node_edk2_build,node_gdb_orphanripper,node_gettext_msghack,node_kernel_spec_filter,node_mii_diag,node_ngtcp2_api,node_ocaml_files,node_petsc_api,node_pyproject_files,node_drive_database,node_systemd_split,node_bcrypt,node_xerces_javac toneMint
class node_rpm_services,node_images,node_users toneRose
class node_developer toneIndigo
```

## Components

### Distro definition

- [Components and overlays](https://github.com/microsoft/azurelinux/tree/4.0/base/comps): `base/comps`
- **azldev renderer**

### Package preparation

- [Rendered RPM specs](https://github.com/microsoft/azurelinux/tree/4.0/specs): `specs`
- [Kernel module grouping](https://github.com/microsoft/azurelinux/blob/4.0/base/comps/kernel/filtermods.py): `base/comps/kernel/filtermods.py`
- [UKI addon helper](https://github.com/microsoft/azurelinux/blob/4.0/base/comps/kernel/uki_create_addons.py): `base/comps/kernel/uki_create_addons.py`

### Package sources

- [Ansible collection helper](https://github.com/microsoft/azurelinux/blob/4.0/specs/a/ansible-packaging/ansible_collection.py): `specs/a/ansible-packaging/ansible_collection.py`
- [Certificate converter](https://github.com/microsoft/azurelinux/blob/4.0/specs/c/ca-certificates/certdata2pem.py): `specs/c/ca-certificates/certdata2pem.py`
- [EDK2 build helper](https://github.com/microsoft/azurelinux/blob/4.0/specs/e/edk2/edk2-build.py): `specs/e/edk2/edk2-build.py`
- [GDB orphan reaper](https://github.com/microsoft/azurelinux/blob/4.0/specs/g/gdb/gdb-orphanripper.c): `specs/g/gdb/gdb-orphanripper.c`
- [Gettext message helper](https://github.com/microsoft/azurelinux/blob/4.0/specs/g/gettext/msghack.py): `specs/g/gettext/msghack.py`
- [Kernel module grouping](https://github.com/microsoft/azurelinux/blob/4.0/specs/k/kernel/filtermods.py): `specs/k/kernel/filtermods.py`
- [MII diagnostics](https://github.com/microsoft/azurelinux/blob/4.0/specs/n/net-tools/mii-diag.c): `specs/n/net-tools/mii-diag.c`
- [ngtcp2 API generator](https://github.com/microsoft/azurelinux/blob/4.0/specs/n/ngtcp2/mkapiref.py): `specs/n/ngtcp2/mkapiref.py`
- [OCaml file helper](https://github.com/microsoft/azurelinux/blob/4.0/specs/o/ocaml/ocaml_files.py): `specs/o/ocaml/ocaml_files.py`
- [PETSc Cython API](https://github.com/microsoft/azurelinux/blob/4.0/specs/p/petsc/petsc-3.20-PETSc_api_cython3.0.6.h): `specs/p/petsc/petsc-3.20-PETSc_api_cython3.0.6.h`
- [Python RPM file helper](https://github.com/microsoft/azurelinux/blob/4.0/specs/p/pyproject-rpm-macros/pyproject_save_files.py): `specs/p/pyproject-rpm-macros/pyproject_save_files.py`
- [Drive database](https://github.com/microsoft/azurelinux/blob/4.0/specs/s/smartmontools/drivedb.h): `specs/s/smartmontools/drivedb.h`
- [systemd file splitter](https://github.com/microsoft/azurelinux/blob/4.0/specs/s/systemd/split-files.py): `specs/s/systemd/split-files.py`
- [BCrypt implementation](https://github.com/microsoft/azurelinux/blob/4.0/specs/t/trilead-ssh2/BCrypt.java): `specs/t/trilead-ssh2/BCrypt.java`
- [Xerces Java compiler](https://github.com/microsoft/azurelinux/blob/4.0/specs/x/xerces-j2/XJavac.java): `specs/x/xerces-j2/XJavac.java`

### Distribution outputs

- **RPM build services**
- [Base images](https://github.com/microsoft/azurelinux/tree/4.0/base/images): `base/images`
- **VM, container, ISO, WSL**

### Other components

- **Distro developer**

## Connections

- Distro developer → Components and overlays: defines (evidence: `README.md`)
- Components and overlays → azldev renderer: configures (evidence: `README.md`)
- azldev renderer → Rendered RPM specs: renders (evidence: `README.md`)
- Rendered RPM specs → RPM build services: builds with (evidence: `README.md`)
- Rendered RPM specs → Base images: provides packages
- Base images → VM, container, ISO, WSL: delivers (evidence: `README.md`)
