How to Create a Virtual Machine on Macbook
Tags: azure, cloud, virtualmachine, macbook
Published: 2023-03-24 18:15:52

## What is a Virtual Machine (VM)?
A Virtual Machine is a software emulations of physical computers, they include a virtual processor, memory, storage and networking resources. A virtual machine host an operating system and you can install and run software just like a physical computer.

## Steps to create a Virtual Machine

**Step 1:**
Visit [portal.azure.com](url), login or sign up if you don't have an account, you can get a free account at [azure.microsoft.com/en-us/free/](url)

**Step 2:**
Type Virtual Machine into the search box as seen in the image below, then select Virtual Machine from the search result.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l9urafz4o0xrg0h2kbxj.png)

**Step 3:**
Click Create and select Azure Virtual Machine from the drop down options.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pbbcfhmigz0fj2pb2526.png)

**Step 4:**
Resource group
Create a new resource group by clicking create new option shown below the input bar, you can use any name of your choice.
Then what is a Resource Group, A resource group is a container that holds related resources for an Azure solution.

Virtual Machine Name
Input the Virtual Machine name of your choice, in this example i will be using **VM**

Region
Select a region where the Virtual Machine will be located, in this example i will be using **East US**

Availability Option
Select **No infrastructure redundancy required**

Security type
Select **Standard**

Image
Select an operating system (which is image) of your choice, in this example i will be using **Windows Server 2019 Datacenter x64 Gen2**

VM Architecture
Select x64

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tmlm0fxunyxxwqmh1gb7.png)

**Step 5:**
Enter a username which must be between 1 and 20 characters long, in this example i will be using **azureuser** as my username.
Set a password that the value is between 12 and 123 characters long, in this example i will be using **Password123*** as my password.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5v4cq5v2oh6t17z3p2re.png)

**Step 6:**
Set Public Inbound Ports as **Allow Selected Ports**.
For Select Inbound Ports leave as **RDP(3389)**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/23qgq1qo8oxt6910ieot.png)

**Step 7:**
Click **Review+Create** button as seen in the image below.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t24g6c40fl0cay1dyyri.png)

**Step 8:**
Goto monitoring and disable **Boot diagnostics**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a30f46csv8oow4ftez8j.png)

**Step 9:**
Go back to **review+create** tab and click the **create button**.
After clicking create the portal will start your Virtual Machine deployment process

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/36fuzm53dsw7fwtthmrt.png)

**Step 10:**
After the deployment process is complete click the **Goto Resource button**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/srojisokptnp2ac047h1.png)

**Step 11:**
Click connect button and a drop down will show select **RDP** from the dropdown options.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0rlo73pg5tztuxdtfpxh.png)

**Step 12:**
Click **Download RDP File** and your Virtual Machine RDP file will be downloaded

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7z4bwpqils3enoulo0dv.png)

**Step 13:**
Goto downloads and open the **RDP File**, make sure you have **Microsoft Remote Desktop application** installed, Download and Install it here: [apps.apple.com/us/app/microsoft-remote-desktop/id1295203466?mt=12](url)

**Step 14:**
Open the **RDP File** and input your username and password you set while creating your Virtual Machine

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5ukcyu45j5n0qpdxpv39.png)

**Step 15:**
A prompt window will pop up **click continue**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pamj4d998adepsz2e8di.png)

**Step 16:**
Viola your Virtual Machine is ready!

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h43066emqt40imlfp912.png)