If you’re new to Azure and want to run Linux in the cloud, creating an Ubuntu Virtual Machine (VM) is a great place to start. In this guide, I’ll walk you through the process step-by-step using the Azure Portal.
What you’ll need
An Azure account
A subscription
Step 1: Create a Virtual Machine
a. Sign in to the Azure Portal.
b. Search for Virtual Machines.
c. Click Create → Azure virtual machine
Step 2: Configure the Basics by filling in the following details:
a. Subscription: Select your subscription
b. Resource group: Create new or select existing
c. Virtual machine name: e.g. Ubuntu-vm
d. Region: Choose the nearest region
e. Image: Ubuntu Server 22.04 LTS because we are creating a Ubuntu VM
f. Size: Any basic size, I used Standard.
Step 3: Authentication
a. Authentication type: SSH public key
b. Username: e.g. azureuser
c. SSH key: Generate a new key pair. Download and store it securely when the prompt comes up. This key is important for authentication purposes.
Step 4: Networking
a. Public inbound ports: Allow selected ports
b. Select inbound ports: SSH (22). This allows you to securely connect to the Ubuntu VM.
Step 5: Review and Create
a. Click Review + Create
b. Validation runs automatically
c. Click Create
Azure will now deploy your Ubuntu VM.
Video Walkthrough
Here’s a full video walkthrough showing the entire process in the Azure Portal:
Top comments (0)