Skip to main content

Command Palette

Search for a command to run...

How to create a windows virtual machine in Azure portal

Updated
6 min read
How to create a windows virtual machine in Azure portal
A

An ardent enthusiast of cloud computing and Devops, I'm dedicated to navigating the intricate realms of technology. Continuously exploring new innovations, I seek to optimize processes and systems. With a fervent passion for problem-solving and optimizing workflows, I aim to foster efficiency and advancement in the tech domain

INTRODUCTION

In the world of cloud computing, virtual machines are like virtual computers that can run different operating systems or applications machine. They are important because they help businesses and individuals save money by using virtualized resources instead of buying and maintaining physical hardware.

Azure is a popular cloud platform that offers virtual machine services. With Azure, you can easily create and manage virtual machines without the need for physical hardware. In this guide, we will create a Windows virtual machine using the Azure portal. By the end, you will be able to create your own virtual machine on Azure.

Overview of Azure Portal

The Azure portal serves as a web-based management interface for Azure services, designed to provide an easy-to-use platform for users to create, configure, monitor, and oversee a wide range of Azure resources. It simplifies the administration of cloud services by offering a single, user-friendly dashboard where users can control virtual machines, databases, web applications, and more, while also gaining insights into the performance and health of these services. This portal is an essential tool for cloud administrators and developers. The advantages of using the Azure portal for virtual machine creation include its user-friendly interface, speedy setup with customization choices, monitoring and management capabilities, scalability, seamless integration with other Azure services, security and compliance assurance, and effective cost management.

Step-by-Step Guide

Step 1: Signing in to the Azure portal

  1. Go to the Azure portal at https://portal.azure.com in a web browser.

  2. Enter your Azure account email address.

  3. Type in your password.

  4. If required, complete multi-factor authentication (MFA) steps.

  5. Click the "Sign In" button.

  6. You'll now have access to the Azure portal for managing your Azure resources.

Step 2: Creating a Windows virtual machine

  1. In the Azure portal, navigate to the left-hand side and select the "+ Create a resource" button.
    1. Within the "New" pane, you'll find a search bar at the top. Enter "Windows Server" in the search bar and hit Enter. This action will display a list of Windows Server options that you can choose from.

  1. After selecting "Windows Server," click "Create" and choose a server that aligns with your requirements. This action will lead you to the "Basics" tab, where you can configure your virtual machine's settings.

a. Project Details: Opt for an existing resource group or establish a new one for your virtual machine. A resource group serves as an organized container for efficiently managing interconnected Azure resources.

b. Instance Details: Assign a distinctive name to your virtual machine and designate the Azure region in which you intend to deploy it.

c. Image: Select the specific Windows Server version that will serve as the foundational image for your virtual machine.

d. Size: Select the virtual machine's specifications, taking into account aspects such as CPU power, memory, and storage capacity.

e. Administrator Account: Create a username and password for the administrator account, which will grant you access to and control over the virtual machine.

f. Inbound Port Rules: Adjust the settings for incoming network traffic to control what can reach your virtual machine. It's important to open certain doors (ports) to let remote access into your virtual machine. This is necessary for tasks like controlling, checking, or hosting services on the machine. When deciding which ports to open, think about the specific things you want to do on your virtual machine. Choose the right ports to make sure everything works correctly and stays secure.

g. Disks and Networking: Adjust extra options associated with storage and networking if necessary.

  • Reviewing Virtual Machine Configuration:

    • After you've configured all the necessary settings for your virtual machine, it's essential to review them before deployment.

    • Check details such as the VM's name, size, region, and any custom configurations you've made, like network settings, storage options, and OS image.

    • Ensure that any security settings and access controls are correctly configured.

  1. After you've provided all the required details, select the "Review + Create" button to move forward with the setup and examine your configurations.
  • 5. Initiating Deployment:

    • Once you are satisfied with the configuration, you can initiate the deployment by clicking on the "Create" button.

    • This action will trigger the creation of the virtual machine based on your specified parameters.

    • The deployment process may take some time, depending on the complexity of your configuration and the cloud provider you're using.

    • During deployment, the cloud platform will allocate the necessary resources, install the operating system, and configure the VM according to your settings.

It's crucial to carefully follow these steps to make sure your virtual machine gets set up correctly and works as it should.

Step 3: Connecting to a VM in Azure using RDP

Remote Desktop Protocol (RDP) is a tool that lets you connect to and control a computer from another computer. It's like seeing and using the desktop of one computer on your own screen. RDP is commonly used for accessing and managing remote computers, allowing you to work on them as if you were physically present at that computer.

  1. When the deployment is complete, select Go to resource, and you'll be able to access your virtual machine's dashboard

  2. Go to the properties of your VM, and at the top, click Connect. This will show you the IP addresses assigned to the VM and give you the option to download a preconfigured.rdp file that Windows then opens in the RDP client.

  3. Click Select to connect via native RDP without any additional software needed. Recommended for testing only.

  4. Then select Download RDP File and save it to your computer.

  5. On Windows, find the file using Explorer, double-click on the file and select Connect.

  6. In the Windows Security dialog box, enter the username and password that you created previously, then click Ok.

  7. In the second Remote Desktop Connection dialog box, note the certificate errors, and then select Yes.

  8. The Virtual machine is up and running.

In summary, creating a Windows virtual machine on the Azure portal is a great way to use cloud computing. Whether you're a developer, an IT administrator, or a business owner, Azure makes it easy to set up and manage virtual machines.

By following the steps in this guide, you've taken the first step in using the cloud's power. Your Windows VM can run apps, host websites, and manage your data efficiently and easily.

Azure offers many services to enhance your VM's performance and security. As technology advances, Azure keeps your VM up to date and secure.

We hope this article helps you on your Azure journey. Explore Azure's documentation and community for more information as you make the most of your Windows VM. Azure has endless possibilities, and we wish you success with your new virtual machine.

VITAL NOTIFICATION: Delete and dissociate resources and IP addresses. Once unnecessary, you have the option to eliminate the resource group, virtual machine, and associated resources. Navigate to the Resource group link on the Overview page of the VM. Click on 'Delete resource group' at the top of the resource group page. A confirmation page will appear, cautioning about the impending deletion of resources. Input the resource group name and click 'Delete' to complete the deletion process for both resources and the resource group.