📖 Scenario: You are starting a new project and need a virtual machine (VM) to run your application. You will create a VM in the Azure Portal step-by-step.
🎯 Goal: Build a simple Azure virtual machine with basic settings using the Azure Portal interface.
📋 What You'll Learn
Create a resource group named MyResourceGroup
Create a virtual machine named MyVM
Use Standard_B1s as the VM size
Use UbuntuLTS as the VM image
Set the admin username to azureuser
💡 Why This Matters
🌍 Real World
Creating virtual machines is a common task to run applications or services in the cloud.
💼 Career
Cloud engineers and developers often create and manage VMs to deploy software and test environments.
Progress0 / 4 steps
1
Create a resource group
In the Azure Portal, create a resource group named MyResourceGroup. This will hold your VM and related resources.
Azure
Hint
Resource groups help organize your Azure resources. Use the exact name MyResourceGroup.
2
Start creating the virtual machine
Begin creating a virtual machine named MyVM inside the resource group MyResourceGroup.
Azure
Hint
Use the exact VM name MyVM and select the resource group MyResourceGroup.
3
Configure VM size and image
Set the VM size to Standard_B1s and select the image UbuntuLTS for your virtual machine.
Azure
Hint
Choose the VM size Standard_B1s for a small VM and the image UbuntuLTS for the operating system.
4
Set admin username and create VM
Set the admin username to azureuser and complete the VM creation process.
Azure
Hint
Use the exact admin username azureuser to access your VM after creation.
Practice
(1/5)
1. What is the first step when creating a Virtual Machine (VM) in the Azure Portal?
easy
A. Choose the VM name and region
B. Connect to the VM using SSH
C. Select the VM size after creation
D. Install software on the VM
Solution
Step 1: Start VM creation in Azure Portal
When creating a VM, you first open the Azure Portal and start the 'Create a virtual machine' process.
Step 2: Enter basic details like name and region
The first required details are the VM's name and the region where it will be hosted.
Final Answer:
Choose the VM name and region -> Option A
Quick Check:
First step is naming and region selection [OK]
Hint: Name and region come first when creating a VM [OK]
Common Mistakes:
Trying to connect before VM is created
Selecting size before naming VM
Installing software before VM setup
2. Which option correctly describes the step to select the operating system image when creating a VM in Azure Portal?
easy
A. Skip image selection; Azure picks automatically
B. Choose the image after VM creation
C. Upload your own OS image only
D. Select the image during VM setup under 'Image' section
Solution
Step 1: Locate the 'Image' section in VM creation
During VM setup, there is a section called 'Image' where you select the OS image.
Step 2: Select a predefined OS image
You pick from available images like Windows Server or Ubuntu Linux before creating the VM.
Final Answer:
Select the image during VM setup under 'Image' section -> Option D
Quick Check:
Image selection happens during setup [OK]
Hint: Pick OS image during VM setup, not after [OK]
Common Mistakes:
Thinking image is chosen after VM is created
Assuming Azure picks image automatically
Believing you must upload your own image
3. After creating a Linux VM in Azure Portal, which method is used to connect to it?
medium
A. Remote Desktop Protocol (RDP)
B. SSH (Secure Shell)
C. FTP (File Transfer Protocol)
D. HTTP (Hypertext Transfer Protocol)
Solution
Step 1: Identify the OS type of the VM
The VM is Linux-based, which typically uses SSH for secure command-line access.
Step 2: Use SSH to connect
SSH is the standard protocol to connect securely to Linux VMs remotely.
Final Answer:
SSH (Secure Shell) -> Option B
Quick Check:
Linux VM connection uses SSH [OK]
Hint: Linux VMs connect via SSH, Windows via RDP [OK]
Common Mistakes:
Trying to use RDP on Linux VM
Using FTP or HTTP to connect to VM
Confusing protocols for connection
4. You created a Windows VM but cannot connect using Remote Desktop. What is the most likely cause?
medium
A. Network security group (NSG) blocks RDP port 3389
B. The VM size is too small
C. You selected a Linux image by mistake
D. The VM name is invalid
Solution
Step 1: Check network security settings
Remote Desktop uses port 3389, which must be allowed in the VM's network security group (NSG).
Step 2: Identify blocked port issue
If NSG blocks port 3389, RDP connections fail even if VM is running.
Final Answer:
Network security group (NSG) blocks RDP port 3389 -> Option A
Quick Check:
Blocked RDP port causes connection failure [OK]
Hint: Open port 3389 in NSG for Windows VM RDP [OK]
Common Mistakes:
Assuming VM size affects RDP connection
Confusing OS image type after creation
Thinking VM name affects connectivity
5. You want to create a VM in Azure Portal that can be accessed securely from anywhere. Which combination of settings is best?
hard
A. Use a Linux VM, use password authentication, block all inbound ports
B. Use a Windows VM, use password authentication, open port 3389 to all IPs
C. Use a Linux VM, select SSH key authentication, open port 22 in NSG
D. Use a Windows VM, disable NSG, connect via RDP
Solution
Step 1: Choose secure authentication method
SSH key authentication is more secure than passwords for Linux VMs.
Step 2: Open only necessary port in NSG
Opening port 22 for SSH allows secure remote access; avoid opening unnecessary ports.
Step 3: Avoid insecure options
Opening RDP port 3389 to all IPs or disabling NSG reduces security.
Final Answer:
Use a Linux VM, select SSH key authentication, open port 22 in NSG -> Option C
Quick Check:
SSH key + port 22 open = secure access [OK]
Hint: Use SSH keys and open only port 22 for secure Linux VM access [OK]
Common Mistakes:
Using password authentication over SSH
Opening RDP port to all IPs
Disabling NSG for convenience
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.