Rocky Linux 9
Overview
This guide shows you how to deploy and configure Rocky Linux 9 on Microsoft Azure. It uses SecureAnyCloud's preconfigured virtual machine image from the Azure Marketplace.
What you get:
- Rocky Linux 9.6, binary compatible with RHEL 9
- Azure Linux Agent (waagent) for cloud integration
- chronyd for NTP time synchronisation
- SELinux in enforcing mode
- Gen2 Hyper-V virtual machine support
- 24/7 SecureAnyCloud support
Platform: Microsoft Azure (Gen2 Hyper-V)
Default user: azureuser
Prerequisites
Before you deploy this image, make sure you have:
- An active Microsoft Azure subscription
- Access to the Azure Portal or Azure CLI
- An SSH key pair for Linux VM access
- Familiarity with Azure VM management
Recommended VM size: Standard_B2s (2 vCPU, 4 GB RAM) or larger.
Deploy the Virtual Machine
Option A: Azure Portal
- Open the Azure Marketplace and search for "Rocky Linux 9 on Azure SecureAnyCloud".
- Select the image and click Create.
- Configure the basics:
- Subscription: Select your Azure subscription.
- Resource Group: Create a new group or select an existing one.
- Virtual Machine Name: Enter a name for your VM.
- Region: Select your preferred Azure region.
- Size: Select
Standard_B2s(recommended).
- Under Administrator Account, select SSH public key and enter your key.
- Under Inbound Port Rules, allow SSH (port 22).
- Click Review + Create, then click Create.
Option B: Azure CLI
az vm image terms accept --urn sac1647283583153:rocky-linux-9:default:latest
az vm create \
--resource-group myResourceGroup \
--name my-rocky-linux-9-azure-vm \
--image sac1647283583153:rocky-linux-9:default:latest \
--size Standard_B2s \
--admin-username azureuser \
--generate-ssh-keys \
--public-ip-sku StandardConnect via SSH
When your VM is running, connect to it over SSH:
ssh azureuser@<public-ip-address>To find your VM's public IP address, run:
az vm show --resource-group myResourceGroup --name my-rocky-linux-9-azure-vm --show-details --query publicIps -o tsvVerify the Installation
After you connect, verify the operating system:
cat /etc/os-release uname -rCheck the disk space and memory:
df -h free -hVerify that the Azure Linux Agent is running:
systemctl status waagentUpdate the System
Apply the latest security patches to keep your system up to date:
sudo dnf update -yConfigure Firewall (Optional)
The Azure Network Security Group (NSG) controls inbound and outbound traffic. You can also configure the local firewall on the VM:
sudo firewall-cmd --list-allTo allow additional ports, run:
sudo firewall-cmd --permanent --add-port=80/tcp sudo firewall-cmd --permanent --add-port=443/tcp sudo firewall-cmd --reloadCommon Use Cases
- Enterprise application hosting
- Container and Kubernetes workloads
- Database and middleware deployments
- Development and testing environments
Troubleshooting
Cannot connect via SSH
- Verify that the VM is in the Running state in the Azure Portal.
- Check that port 22 is allowed in the Network Security Group.
- Make sure you are using the correct username:
azureuser. - Verify that your SSH key matches the one you configured during deployment.
Azure agent not running
sudo systemctl start waagent
sudo systemctl enable waagentPackage manager issues
sudo dnf update -yIf the repositories are unreachable, check DNS resolution:
nslookup google.comImportant Notes
Rocky Linux is free and open source software. No licence is required.
Support
For help with this image, contact SecureAnyCloud support:
- Website: secureanycloud.com
- Product catalogue: secureanycloud.com/products
- User guides: secureanycloud.com/guides
- SLA: 24 hour response guaranteed
Deploy on Azure
Launch Rocky Linux 9 on Azure with 24/7 support from SecureAnyCloud.
View this image
Need Help?
Our support team is available 24/7.
sales@secureanycloud.com