Every now and then, I receive many requests from people asking me how to create a Virtual Machine in Azure. This Azure tutorial will explore multiple approaches to achieve this goal, followed by a Video tutorial for your convenience.
How to create VM in Azure
We can create a virtual machine (VM) in Azure for free.
Note: For Azure VM creation for free, you can sign up for a 30-day Azure free trial. Here, we will discuss creating the VM with the new version of Windows Server 2019 Datacenter. Ensure you have a subscription to Azure before beginning. If you don’t have a subscription, create a free Azure account.
Creating Windows VM
Approach 1: Using Azure Portal
To create VM in Azure, follow the steps below.
1. Log in to https://portal.azure.com.
2. Now, click on the “Virtual machines” option from the left side Menu and then click on the “Create“ link.

Or go to the “Virtual machines” option from the “Azure services” section.

Another option is to navigate to the same setting from the “Create a resource” link in the left-side menu, then select “Compute” and “Virtual machine”.


For the same option, you can also go to the “Create a resource” link from the “Azure services” section and then select “Compute” and “Virtual machine”.

You can see the option “Virtual machine’ like below:

3. Fill in the details required. A few of the options you can keep as it is, but based on your business needs, you can change those.
- Subscription: Choose your correct subscription.
- Resource group: You can choose the existing resource group or create a new one by clicking the “Create New” option. It acts like a container that stores the resources related to an Azure solution.
- Virtual machine name: Provide a name for your virtual machine.
- Region: This is where you will create all the resources related to the virtual machine.
- Image: Choose the Windows Server 2019 Datacenter. You can adjust it according to your business needs.
- Size: The size you want to assign based on your requirements. I have chosen Standard D2s v3 in accordance with my business requirements.
In the Administrator account section, choose a Username and password that you will use to log in to the VM once created.
Select Inbound port: Choose HTTP(80), RDP(3389). This is a very important option.
All other options can be left unchanged. Now click on the “Next: Disks >” button.
