DEV Community

Cover image for Step-by-Step Guide: How to Create and Connect a Windows 11 Pro Azure Virtual Machine
Abisola Adesegun
Abisola Adesegun

Posted on

Step-by-Step Guide: How to Create and Connect a Windows 11 Pro Azure Virtual Machine

``Table of contents
Step 1: Create an Azure Account
Step 2: Create a Virtual Machine
Step 3: Choosing VM Configuration
Step 4: Review and Validation
Step 5: Deploying the Virtual Machine
Step 6: Download Key Pair (For SSH Access):
Step 7: Connect to virtual machine
Step 8: Clean up resources

In this blog, I'll be creating an Azure Virtual Machine
Below are step-by-step instructions:

Step 1: Create an Azure Account
If you don't have an Azure account, sign up for one at Azure Portal.

Image description

Step 2: Create a Virtual Machine

Image description

  • Navigating to Virtual Machines After logging in, you’ll land on the Azure dashboard. In the left-hand menu, click on “Virtual machines”This will take you to the Virtual machines section, where you can manage your VMs.

Image description

  • Creating a New Virtual Machine Click the “+ Add” button to start creating a new virtual machine.

Image description

Step 3: Choosing VM Configuration

Begins with configuring the basics of your VM under which we have the following:

  • Subscription: Choose the appropriate subscription.

  • Resource Group: Create a new or select an existing resource group.

  • Virtual machine name: Give your VM a unique name.
    Region: Choose the data center region closest to you.

  • Availability options: Select the availability preferences.
    Image: Choose the operating system image you want to use.

  • Size:select the appropriate configuration for your VM based on CPU, memory, and storage requirements. Carefully review the available sizes and consider your workload needs.

  • Administrator account: provide a username and a password. The password must be at least 12 characters long and meet the defined complexity requirements.

  • Inbound port: Choose Allow selected ports and then select RDP (3389) from the drop-down.

Image description

Leave the remaining defaults and then select the Review + create button at the bottom of the page.

Image description

Step 4: Review and Validation

Review all your configuration settings to ensure accuracy.
Validate that your selections align with your intended VM setup.

Image description

Step 5: Deploying the Virtual Machine

  • After validation runs, select the Create button at the bottom of the page.

Image description

  • After deployment is completed, select Go to resource.

Image description

Step 6: Download Key Pair (For SSH Access):

If you’ve chosen SSH key authentication, now is a good time to download the generated key pair. This key pair will be crucial for securely logging into your virtual machine. Make sure to store the private key in a safe and accessible location, as it will be used to authenticate your SSH sessions.

Image description

Step 7: Connect to virtual machine

  • Create a remote desktop connection to the virtual machine. These directions tell you how to connect to your VM from a Windows computer. On a Mac, you'll upneed an RDP client such as this Remote Desktop Client from the Mac App Store. On the virtual machine section, select the Connect > RDP

Image description

  • In the Connect with RDP tab, keep the default options to connect by IP address, over port 3389, and click Download RDP file

  • Open the downloaded RDP file and click Connect when prompted.

Image description

  • In the Security window, select More choices and then Use a different account. Type the username and password you created for the virtual machine, and then click OK.

Image description

  • You may receive a certificate warning during the sign-in process. Click Yes or Continue to create the connection.

Image description

Step 8: Clean up resources

Delete resources
When no longer needed, you can delete the resource group, virtual machine, and all related resources.

On the Overview page for the VM, select the Resource group link.

  • At the top of the page for the resource group, select Delete resource group.

Image description

  • A page will open warning you that you are about to delete resources. Type the name of the resource group and select Delete to finish deleting the resources and the resource group.

Image description

Top comments (1)

Collapse
 
wasifali profile image
wasifali

Very nice. Thanks for sharing this interesting article.