azurelinux
Copilot instructions5.3k starsChanged 2 months agoMITView on GitHub
Azure Linux is a TOML-defined Linux distribution that imports RPM specs from upstream distros (primarily Fedora) and customizes them via an overlay system — no spec forking required. The azldev CLI tool drives all component and image workflows. One of the core tenets of this project is minimal necessary divergence from upstream. Overlays should be surgical and only change what's needed to meet Azure Linux requirements. Upstream packages should be preferred over bespoke components, and local specs should be a…
Trending
Quiet since September.about the whole repository
Who's talking about microsoft/azurelinux
- A Hacker News story“Microsoft's Azure Linux”Hacker News · Jan 29, 2026 · 66 points
- @blowdart.me“github.com/microsoft/az...”Bluesky · Dec 13, 2024 · 10 likes
- A Hacker News story“Microsoft Azure Linux”Hacker News · May 19, 2026 · 4 points
- @matsuu.bsky.social“Microsoft、従来CBL-Marinerと呼んでいた自家製Linuxディストリビューションの名称をAzure Linuxに変更した模様。わいわい”Bluesky · Mar 10, 2024 · 4 likes
- project-copacetic/copacetic“[BUG] copa overwrites /usr/sbin symlink for mariner distroless/debug”GitHub · Nov 26, 2024 · 3 reactions
The biggest 5 of 40 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 40
Talked about on GitHub, Bluesky and Hacker News (40 times).
On GitHub · 26
- Nov 26, 2024[BUG] copa overwrites /usr/sbin symlink for mariner distroless/debug — project-copacetic/copacetic3 reactions · 1 comment
- Sep 7, 2025Release Expat 2.7.2 (ETA 2025-09-16) — libexpat/libexpat2 reactions
- May 28, 2025Add shadow-utils to our AZL3 images — dotnet/dotnet-buildtools-prereqs-docker2 reactions · 2 comments
- Mar 25, 2025Release Expat 2.7.1 (ETA 2025-03-27) — libexpat/libexpat2 reactions · 2 comments
- Sep 18, 2026Support Azure Linux 3 — microsoft/nvx1 reaction · 1 comment
21 more on GitHub
- Jun 10, 2024Add Azure Linux OS — repology/repology-updater1 reaction · 3 comments
- May 20, 2024Latest Azure Linux 3.0 drop is getting TLS error during `dotnet restore` — dotnet/dotnet-docker1 reaction · 1 comment
- Mar 19, 2024cbl-mariner images don't include useradd — microsoft/go1 reaction · 5 comments
- Sep 18, 2026feat(config): add VM SKU groups for test fan-out — microsoft/azure-linux-dev-tools0 reactions
- Jul 27, 2026Add Support For AzureLinux 4.0 — microsoft/WSL0 reactions · 6 comments
- Jul 8, 2026[New Product] Azure Linux — endoflife-date/endoflife.date0 reactions · 1 comment
- Jul 3, 2026Azure Linux 4.0 base image — alanta/azure-egress-proxy0 reactions · 2 comments
- Apr 2, 2026when running `azldev config dump` images return only an absolute path — microsoft/azure-linux-dev-tools0 reactions
- Sep 2, 2025Enable `CONFIG_INET_DIAG_DESTROY` kernel config in the Docker Desktop's linuxkit kernel — docker/roadmap0 reactions
- Aug 6, 2025[RFE] Enable CONFIG_INET_DIAG_DESTROY — flatcar/Flatcar0 reactions · 18 comments
- Jul 25, 2025Consume expanded BTF info on Azure Linux — microsoft/retina0 reactions
- May 11, 2025Update install.sh to ignore mkdir errors — microsoft/KeysInUse-OpenSSL0 reactions
- Mar 10, 2025This is an auto-generated pull request to cherry-pick commit 328a3a73fcdb595b632250fda537fa4037aa55f1 to 3.0-dev. Original PR: #12825 — Pitan1993/NiceHashBot0 reactions
- Mar 10, 2025This is an auto-generated pull request to cherry-pick commit 328a3a73fcdb595b632250fda537fa4037aa55f1 to 3.0-dev. Original PR: #12825 — nicehash/NiceHashMiner0 reactions · 2 comments
- Feb 4, 2025CVE-2024-46854 CVE-2024-43849 CVE-2024-46852 CVE-2024-46853 CVE-2024-41080 CVE-2024-46849 CVE-2024-50086 CVE-2024-47671 CVE-2022-48635 CVE-2024-43834 CVE-2024-36893 CVE-2024-46695 CVE-2024-43846 CVE-2024-50036 CVE-2024-47672 CVE-2024-44931 CVE-2024-50058 CVE-2024-46858 CVE-2024-43835 CVE-2024-36972 — solflare-wallet/utl-aggregator0 reactions
- Nov 26, 2024LiveOS ISOs cannot boot when SELinux is enabled — dracut-ng/dracut0 reactions · 10 comments
- Sep 18, 2024Extension fails on Azure Linux 3.0 as an unsupported distro — Azure/Guest-Configuration-Extension0 reactions · 1 comment
- Sep 5, 2024Request: New azurelinux tags — PowerShell/PowerShell-Docker0 reactions
- Aug 1, 2024Won't build due to error obtaining VCS status: exit status 128 (and workaround) — cblichmann/btrfscue0 reactions · 1 comment
- Mar 28, 2024FYI issue reported to CBL-mariner: tdnf cannot install ca-certificates due to certificate error — microsoft/wslg0 reactions · 3 comments
- Aug 22, 2022Add support for cgmanifest — aboutcode-org/scancode-toolkit0 reactions
On Bluesky · 11
- Dec 13, 2024github.com/microsoft/az... — @blowdart.me10 likes and reposts · 1 reply
- Mar 10, 2024Microsoft、従来CBL-Marinerと呼んでいた自家製Linuxディストリビューションの名称をAzure Linuxに変更した模様。わいわい — @matsuu.bsky.social4 likes and reposts
- May 19, 2026So Microsoft have a new server OS eh? Azure Linux https://github.com/microsoft/azurelinux — @ruari.velocipederider.com.ap.brid.gy2 likes and reposts · 2 replies
- Jun 6, 2026Microsoft circa 2000: Linux is communism Microsoft now: Has it's own Linux OS github.com/microsoft/az... — @martin-s.bsky.social1 likes and repost · 1 reply
- May 19, 2026Azure Linuxのリモートリポジトリはこちら github.com/microsoft/az... — @woodstream.jp1 likes and repost
6 more on Bluesky
- Jan 29, 2026Microsoft's Azure Linux Discussion | hackernews | Author: AbuAssar — @news.karthihegde.dev1 likes and repost
- Jan 29, 2026Microsoft's Azure Linux | Discussion — @hackernewsbot.bsky.social1 likes and repost
- Oct 8, 2025they do!! github.com/microsoft/az... — @jon.me.uk1 likes and repost
- Dec 11, 2024github.com/microsoft/az... — @mahdi.simply-vibing.com1 likes and repost
- Sep 25, 2024📦 microsoft / azurelinux ⭐ 4,196 (+18) 🗒 RPM Spec Linux OS for Azure 1P services and edge appliances — @github-trending.bsky.social1 likes and repost
- Sep 25, 2024今日のGitHubトレンド microsoft/azurelinux CBL-Marinerは、マイクロソフトのクラウドインフラおよびエッジ製品・サービス向けのLinuxディストリビューションです。… — @dailygithubtrends.bsky.social1 likes and repost
On Hacker News · 3
- Jan 29, 2026Microsoft's Azure Linux66 points · 109 comments
- May 19, 2026Microsoft Azure Linux4 points
- Sep 23, 2024Microsoft Azure Linux (cloud v3 and not Wal)2 points · 1 comment
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- base/comps/AGENTS.mdAGENTS.md
- distro/AGENTS.mdAGENTS.md
- azldev-add-componentSkill
- azldev-build-componentSkill
- azldev-comp-tomlSkill
- azldev-imageSkill
- azldev-mockSkill
- azldev-overlay-metadataSkill
- azldev-overlaysSkill
- azldev-remove-componentSkill
- azldevSkill
- azldev-update-componentSkill
- skill-aks-healthSkill
- skill-deployment-contextSkill
- skill-fedora-mirror-injectionsSkill
- skill-koji-triageSkill
- skill-kql-queriesSkill
- skill-mass-triageSkill
- skill-metricsSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 60
When making a PR, the lock and rendered specs must be updated and self-consistent.
- Very specific: line 72
Run all commands from the repo root (where azldev.toml lives).
- Very specific: line 74
Agent-friendly flags: Use -q (quiet) to reduce noise and -O json for machine-parseable output.
- Very specific: line 100
Overlay descriptions: Every overlay MUST include a description field explaining *why* the change is needed.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Azure Linux — Copilot Instructions
Azure Linux is a TOML-defined Linux distribution that imports RPM specs from upstream distros (primarily Fedora) and customizes them via an overlay system — no spec forking required. The azldev CLI tool drives all component and image workflows.
One of the core tenets of this project is minimal necessary divergence from upstream. Overlays should be surgical and only change what's needed to meet Azure Linux requirements. Upstream packages should be preferred over bespoke components, and local specs should be a last resort. This keeps maintenance overhead low and makes it easier to pull in new versions and security updates from upstream.
While AZL derives from Fedora, it is also an enterprise focused distro which tries to align with RHEL where it makes sense. At times this can cause conflicts in spec files that normally expect the Fedora and RHEL macros to be mutually exclusive. Use your best judgement when navigating these conflicts, but in general the guiding principle should be to minimize divergence from Fedora while still producing a stable enterprise distro suitable for use in the Azure cloud. If a spec file has complex conditional logic to handle differences between Fedora and RHEL, consult with the user to understand the rationale and determine the best path forward for AZL.
Repository Layout
azldev.toml # Root config — includes distro/ and base/
├── base/ # The "base" project
│ ├── project.toml # Project metadata, output dirs, default distro ref
│ ├── out/ # Built RPMs/SRPMs (configured by output-dir in project.toml)
│ ├── build/ # Build artifacts (configured by log-dir, work-dir)
│ │ ├── logs/ # Build logs
│ │ └── work/<name>/ # Per-component working directories
│ └── comps/ # Component definitions
│ ├── components.toml # Main component list (includes **/*.comp.toml)
│ ├── <name>/<name>.comp.toml # Dedicated component files (when overlays/config needed)
│ └── <name>/ # May also contain local spec files and overlay sources
├── distro/ # Distro definitions (shared across projects)
│ ├── azurelinux.distro.toml # Azure Linux 4.0: default distro, mock configs, build defines
│ ├── distro.toml # Includes all *.distro.toml
│ ├── fedora.distro.toml # Fedora: dist-git URIs, lookaside, version branches
│ └── mock/ # Mock build environment configs
├── specs/ # Rendered specs (generated by `azldev comp render`)
│ └── <first-char>/<name>/ # Per-component: spec, patches, scripts (no source tarballs)
└── external/schemas/
└── azldev.schema.json # Authoritative schema for all TOML config filesRendered Specs (specs/)
The specs/ directory (as specified by rendered-specs-dir config) contains rendered spec files generated by azldev comp render. These are the final specs with all overlays applied — ready for check-in. After adding or modifying components/overlays, re-render:
azldev comp render -p <name> # Single component
azldev comp render -a # All components (slow)To inspect what a component's spec looks like after overlays, read specs/<first-char>/<name>/<name>.spec directly — no need to run prep-sources just to view the result. Use prep-sources when you need the full source tree (tarballs) or want to diff pre/post overlay output for debugging.
Lock Files (locks/)
The locks/ directory (as specified by lock-dir config) contains per-component lock files that pin upstream commits + an input fingerprint. They are managed by azldev comp update:
azldev comp update -p <name> # Refresh a single lock
azldev comp update -a # Refresh all locksAlways re-run update before opening a PR, even after minor edits — the input fingerprint is computed from the full component config, and the Update Locks CI check runs against the committed state.
⚠️ Critical quirk — %changelog and Release: are derived from git log for the component, not the working tree. In this mono-repo, commits that change a component's tracked inputs (for example base/comps/<name>/ and/or locks/<name>.lock) drift the rendered output, so after committing you must re-render and amend (or commit the spec separately). See azldev-update-component for the finalize-and-amend pattern that keeps Check Rendered Specs and Update Locks both green, including the pin-bump variant.
Prior to PR
When making a PR, the lock and rendered specs must be updated and self-consistent.
Key Concepts
Components = unit of packaging (→ one or more RPMs). Spec sources: upstream (default, from Fedora dist-git), local, or pinned upstream. See the azldev-comp-toml skill for syntax.
Overlays modify upstream specs/sources without forking. See the azldev-overlays skill for types, syntax, and pitfalls. Schema: azldev.schema.json.
TOML include hierarchy: azldev.toml → distro/distro.toml + base/project.toml → base/comps/components.toml → **/*.comp.toml (stitched into single namespace).
azldev CLI Reference
Run all commands from the repo root (where azldev.toml lives). If the terminal's cwd has drifted, use azldev -C /path/to/repo <command>. Use azldev --help and azldev <command> --help for current syntax — the tool is under active development.
Agent-friendly flags: Use -q (quiet) to reduce noise and -O json for machine-parseable output. These are global flags and work on all commands.
| Task | Command |
| List all components | azldev comp list -a -q -O json |
| List a specific component | azldev comp list -p <name> -q -O json |
| List with wildcard | azldev comp list -p "azurelinux*" -q -O json |
| Query a component (parsed spec, slow) | azldev comp query -p <name> -q -O json |
| Add a component | azldev comp add |
| Build a component | azldev comp build -p <name> -q |
| Build chain (auto-publish to local repo) | azldev comp build --local-repo-with-publish ./base/out -p <a> -p <b> -q |
| Render all specs for check-in | azldev comp render -a |
| Render a single component | azldev comp render -p <name> |
| Update a single lock file | azldev comp update -p <name> |
| Update all lock files | azldev comp update -a |
| Prepare sources (apply overlays) | azldev comp prep-sources -p <name> --force -o <dir> -q |
| Prepare sources (skip overlays) | azldev comp prep-sources -p <name> --skip-overlays --force -o <dir> -q |
| Build, keep env on failure | azldev comp build -p <name> --preserve-buildenv on-failure -q |
| List images | azldev image list |
| Build an image | azldev image build |
| Boot an image in QEMU | azldev image boot |
| Dump resolved config | azldev config dump -q -f json |
| Advanced commands (like mock shell) | azldev adv --help (hidden from normal help) |
Repository Hygiene Rules
- Overlay descriptions: Every overlay MUST include a
descriptionfield explaining why the change is needed. - Naming: Component names should match the upstream package name. Use
upstream-namewhen the upstream name differs (e.g.,upstream-name = "redhat-rpm-config"forazurelinux-rpm-config). - Schema validation: The authoritative schema is
external/schemas/azldev.schema.json. Do NOT add$schemakeys to TOML files —$is invalid at the start of a bare TOML key. - Don't edit generated output: Build artifacts in
base/out/andbase/build/are generated (configured byoutput-dir,log-dir,work-dirinbase/project.toml) — never edit them directly. Note:prep-sources -o <dir>writes to a user-specified directory, separate from these project output dirs. - Mandatory testing: Any change that affects a component's output (overlays, build config, spec edits, version bumps, new components) MUST be validated by building AND testing the resulting RPMs. A successful build alone is not sufficient — smoke-test in a mock chroot. Pure organizational changes (moving definitions between files, editing descriptions/comments) do not require rebuild. See
AGENTS.mdfor the full testing protocol. - New specs use autorelease: For any spec we author ourselves (local specs), use
%autoreleaseand%autochangelograther than a staticRelease:with a hand-written%changelog. Set the component'srelease = { calculation = "autorelease" }in its.comp.tomlso azldev preserves and expands the macros. This is the team convention for newly authored specs even though it differs from upstream-Fedora overlay handling.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

