# AlmaLinux OS in Azure Cloud

AlmaLinux offers images for Azure across all Azure regions via the Azure Marketplace. Images are deployable via the marketplace, portal and CLI and for both Gen1 and Gen2 machines. The images are completely free of charge regardless of the deployment channel.

The AlmaLinux team and community would like to thank Microsoft Azure for their sponsorship of AlmaLinux which helped make this, and other initiatives possible.

Azure Community Galleries allow anyone to publicly share virtual machine images. The AlmaLinux Foundation uploads images to the gallery almalinux-56b45196-f8a2-4e53-858a-bc4d0ebca440. Microsoft provides examples (opens new window) of using community gallery images via az CLI, the portal, and REST.

To use an image in a program, you will need to send an ImageReference (opens new window) like this one to the API:

"imageReference": {
  "communityGalleryImageId": "/CommunityGalleries/almalinux-56b45196-f8a2-4e53-858a-bc4d0ebca440/Images/almalinux-9-gen2/Versions/latest"

# Azure Marketplace

The Azure Marketplace is a curated digital catalog used to find, deploy and manage software offerings. All Azure Marketplace products undergo thorough review and vetting by the Azure team to ensure security and quality. Additionally, the AlmaLinux image has gone through significant automated testing with Microsoft's test suite to ensure compatibility across a wide range of Azure compute resources.

The official images can be found below:

The Azure Marketplace makes new images available more slowly than the Community Gallery. It also requires each subscription using AlmaLinux for the first time to accept a EULA before successfully creating any VM with the offering.

# Azure Portal

When deploying a new Virtual Machine instance in the Azure portal, Select Image -> See All Images, and in the marketplace pop search for AlmaLinux.

# Azure CLI

You can easily deploy images using the Azure CLI (opens new window). You can list all available images by running:

az vm image list --all --publisher almalinux -o table

You can then deploy by running:

# AlmaLinux OS 8 x86_64

az vm create -n MyVm -g MyResourceGroup --image almalinux:almalinux-x86_64:8-gen1:latest
az vm create -n MyVm -g MyResourceGroup --image almalinux:almalinux-x86_64:8-gen2:latest

# AlmaLinux OS 9 x86_64

az vm create -n MyVm -g MyResourceGroup --image almalinux:almalinux-x86_64:9-gen1:latest
az vm create -n MyVm -g MyResourceGroup --image almalinux:almalinux-x86_64:9-gen2:latest

# AlmaLinux OS 8 AArch64

az vm create -n MyVm -g MyResourceGroup --image almalinux:almalinux-arm:8-arm-gen2:latest

# AlmaLinux OS 9 AArch64

az vm create -n MyVm -g MyResourceGroup --image almalinux:almalinux-arm:9-arm-gen2:latest

For a full range of options that are customizable from the CLI please check the Azure CLI Reference Docs (opens new window).