How to Launch an Azure Virtual Machine with cPanel & WHM

This guide explains how to create and configure an Azure virtual machine using the official cPanel & WHM Marketplace image. It covers selecting the OS image, configuring project and instance details, authentication methods, deployment steps, accessing WHM for the first time, and managing your Azure VM.c

Azure Virtual Machine,cPanel WHM AzureLaunch VM Guide

~4 min read · Updated Feb 24, 2026

1. Overview


This document explains how to create a Microsoft Azure® virtual machine using the official cPanel & WHM image from the Azure Marketplace.




2. Log In to Your Azure Account


Sign in to your Azure account. If you do not have one, create a new Azure account.




3. Access the cPanel & WHM Marketplace Listing


Warning: Always create your VM from the official cPanel & WHM Marketplace listing. Creating a VM directly from the Virtual Machines interface will not configure required settings properly.


Choose your preferred operating system:

  • cPanel & WHM – BYOL for CentOS
  • cPanel & WHM on Ubuntu – BYOL
  • cPanel & WHM on Rocky Linux – BYOL

Click Create to open the VM creation interface.




4. Create the Virtual Machine


4.1 Project Details


  • Subscription — Select the subscription to bill.
  • Resource group — Choose an existing group or create a new one.

Note: Creating a new resource group for each VM makes cleanup easier.


4.2 Instance Details


  • Virtual machine name — Choose a name (cannot be changed later).
  • Region — Select a region close to you or your customers.
  • Availability options — Choose redundancy settings.
  • Security type — Options include:
    • Standard
    • Trusted launch virtual machines
    • Confidential virtual machines
  • Image — The selected cPanel & WHM OS image.
  • VM architecture — Choose the desired architecture.
  • Azure SpotDo not enable for cPanel & WHM.
  • Size — Select the VM size.

Warning: Minimum requirements: 1GB RAM and 20GB disk. Recommended: 2GB RAM and 40GB disk.


4.3 Authentication Type


You may authenticate using either:

  • Password
  • SSH key

Notes:

  • Password authentication allows immediate WHM login.
  • SSH key authentication requires extra steps before first WHM login.

4.4 SSH Key Options


  • Generate a new key pair
  • Use existing key stored in Azure
  • Use existing public key

4.5 Additional Configuration Tabs


You may configure Disks, Networking, Management, Monitoring, Advanced, and Tags. These are optional.


Click Review + create, verify the VM details, then click Create.


Note: If you generated a new SSH key pair, download it when prompted.




5. Deployment


Azure will deploy the VM and display progress. Once complete, click Go to resource.


Your VM’s public IP address appears under Public IP address. Use this IP for SSH and WHM access.




6. WHM Installation Process


WHM installation begins automatically in the background.


To monitor installation:

sudo su -l

Warning: Installation takes 10–15 minutes. You cannot log in to WHM until it completes.




7. Logging in to WHM for the First Time


7.1 If Using a Password


Open your browser and go to:


https://IPADDRESS:2087


Log in using your administrator username and password.


To access the root account:

  • Log in to WHM
  • Go to WHM » Server Configuration » Change Root Password

You cannot change the root password from the Azure portal.


7.2 If Using an SSH Key


Before logging in to WHM, add your SSH key to your computer.


macOS:

mv ~/Downloads/example.pem ~/.ssh
chmod 600 ~/.ssh/example.pem
ssh-add ~/.ssh/example.pem

Then connect to your VM:

ssh -i key user@IP

To get a temporary WHM login URL:

sudo whmlogin

Use the URL to set a root password.




8. Configure WHM


After logging in, complete the initial setup. For full configuration details, refer to the WebHost Manager documentation.


You can also follow the From WHM to Website guide to quickly build a website.


Note: A valid cPanel & WHM license is required. New installations qualify for a free 15‑day trial.




9. Manage Your Azure Virtual Machine


For more information on managing Azure VMs, refer to Microsoft’s official documentation.




Conclusion


This guide covers the complete process of launching, configuring, and accessing a cPanel & WHM virtual machine on Azure. Following these steps ensures a stable, secure, and fully functional hosting environment.


Written & researched by Dr. Shahin Siami

Related Articles

How to Restore Your cPanel Account: A Complete Guide for New System Administrators

This guide explains how new system administrators can restore a cPanel account using WHM, transfer accounts and configurations between servers, and enable diagnostic logging for transfer and restore operations. It covers essential concepts such as WHM vs. cPanel, root access, backup handling, SFTP uploads, transfer methods, and advanced debugging tools.

Continue

آموزش کامل انتقال تمام اکانت‌های cPanel از یک سرور به سرور دیگر

این مقاله نحوه انتقال همه اکانت‌های cPanel، تنظیمات سرویس‌ها، گواهی‌های SSL و IP اصلی سرور را از یک سرور قدیمی (Source) به یک سرور جدید (Target) توضیح می‌دهد. شامل نصب سرور جدید، انتقال تنظیمات، انتقال اکانت‌ها، تغییر IP، تنظیم DNS و نصب مجدد SSL است.

Continue

How to Migrate a WordPress® Installation to a cPanel & WHM Server

This guide explains how to migrate a WordPress installation from a macOS-hosted environment to a cPanel & WHM server. It covers exporting the database, uploading WordPress files, creating and importing a MySQL database, updating URLs, configuring wp-config.php, fixing broken links, and finalizing the migration.

Continue

How to Manually Transfer an Account Between Servers in cPanel & WHM

This article explains how to manually transfer a cPanel account between servers when the account is too large for WHM’s automated transfer tools. It covers creating temporary directories, compressing public_html and log files, securely transferring data with SCP, and restoring the files on the destination server.

Continue

How to Manually Migrate Horde Calendars and Contacts to Roundcube in cPanel & WHM

This article explains how to manually migrate Horde calendars and contacts to Roundcube in cPanel & WHM version 108 through 118. It covers exporting Horde data, placing it in the correct directories, and importing it into Roundcube using built‑in plugins or manual import tools.

Continue

How to Manually Migrate Accounts to cPanel & WHM from Unsupported Control Panels

This article explains how experienced system administrators can manually migrate accounts from unsupported third‑party control panels to cPanel & WHM. It covers pre‑migration steps, installation requirements, file and directory transfers, database restoration, SSL migration, and post‑migration tasks.

Continue