Disks section of the image configuration defines the physical disk layout, partition structure, and output artifacts for your Azure Linux image.
Disk Configuration
Each disk entry defines a complete disk layout:Partition table type:
gpt or mbrMaximum disk size in megabytes (for virtual disks)
Array of artifact definitions specifying output image format
Array of partition definitions. Omit for rootfs-only images
Required for unattended ISO installer. Defines physical disk for installation
Example Disk Configuration
Artifacts
Artifacts define the output image format and compression:Base name for the output artifact
Image type:
vhd, vhdx, iso, qcow2, etc. Default: raw disk imageCompression format:
tar.gz, gz, xz, etc.VHDX Disk Image
Compressed Rootfs
Rootfs artifacts (with compression like
tar.gz) do not support partitions.Partition Configuration
Partitions define the layout of each disk:Unique identifier for the partition
Partition label. Required when using
partlabel mount identifierStart offset in megabytes from beginning of disk
End offset in megabytes. Set to
0 to use remaining spaceFilesystem type:
fat32, fat16, vfat, ext2, ext3, ext4, xfs, linux-swapSpecial partition flags for boot handling
Partition type using friendly name (alternative to TypeUUID)
Partition type UUID (alternative to Type)
EFI Boot + Root Partition
Legacy GRUB Boot + Root Partition
Three-Partition Layout (EFI + Boot + Root)
Partition Flags
Special flags control boot and partition handling:UEFI ESP (EFI System Partition)
Boot partition
GRUB boot partition
BIOS GRUB boot partition
Device mapper root device (for encryption)
Partition Types
Friendly names for partition types (alternative to TypeUUID):| Type | UUID | Description |
|---|---|---|
linux | 0fc63daf-8483-4772-8e79-3d69d8477de4 | Generic Linux filesystem |
esp | c12a7328-f81f-11d2-ba4b-00a0c93ec93b | EFI System Partition |
xbootldr | bc13c2ff-59e6-4262-a352-b275fd6f7172 | Extended boot loader |
linux-root-amd64 | 4f68bce3-e8cd-4db1-96e7-fbcaf984b709 | Linux root (x86-64) |
linux-swap | 0657fd6d-a4ab-43c4-84e5-0933c84b4f4f | Linux swap |
linux-home | 933ac7e1-2eb4-4f13-b844-0e14e2aef915 | Linux home |
linux-srv | 3b8f8425-20e0-4f3b-907f-1a25a76f98e8 | Linux /srv |
linux-var | 4d21b016-b534-45c2-a9fb-5c16e091fd2d | Linux /var |
linux-tmp | 7ec6f557-3bc5-4aca-b293-16ef5df639d1 | Linux /tmp |
linux-lvm | e6d6d379-f507-44c2-a23c-238f2a3df928 | Linux LVM |
linux-raid | a19d880f-05fc-4d3b-a006-743f0f84911e | Linux RAID |
linux-luks | ca7d7ccb-63ed-4c53-861c-1742536059cc | Linux LUKS |
linux-dm-crypt | 7ffec5c9-2d00-49b7-8941-3ea10a5586b7 | Linux dm-crypt |
Using Partition Types
Target Disk (ISO Installer)
Required for unattended ISO installers to specify installation target:Common Configurations
Virtual Machine (VHDX)
Container Rootfs
Container rootfs images do not include partitions.
Next Steps
System Configuration
Configure partition mounting and system settings
Examples
View complete configuration examples