How to Create a webserver in Azure

How to Create Azure VM (Virtual Machine) with the new version of Windows Server 2019 Datacenter

Assuming we have an Azure subscription now. Follow the below steps to create a Windows virtual machine.

Step-1: Login to https://portal.azure.com.

Step-2: Now click on the “Virtual machines” option from the left side Menu and then click on the “Create” link.

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

how to create virtual machine in windows azure

One more way is to go to the same option from the “Create a resource” link from the left side menu and then select “Compute” and “Virtual machine”.

Step- 3: Fill the details required. You can keep a few options as it is, but based on your business need, you can change those.

  • Subscription: Choose your correct subscription.
  • Resource group: You can choose the existing resource group or you can 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 change it based on your business need.
  • Size: The size you want to assign based on your requirement. I have chosen Standard DS1_v2 as per my requirement.

In the Administrator account section, Choose a Username, 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 you can keep as it is. Now click on “Next: Disks >” button.

In the next screen (Disks), you can add the disk architecture that you want. I kept the default option as it is. You can change it based on your business need. Click on Next: Networking button.

Now you can fill the below details in the Networking screen.

  • Virtual Network: Choose a virtual network or else you can create a new one by clicking the “Create New” link.
  • Subnet: You can keep the default option as it is.
  • Public inbound ports: choose to Allow selected ports.
  • Select inbound ports: This is a very important option. Choose the option as HTTP(80), RDP(3389) here. Once you choose this option in the Basics tab it will automatically show the same option here. Keep the option as it is.

Now for other tabs all the options you can keep as it is. Once you fill all the above details click on the “Review + Create” button. Azure will validate the above details internally and will show a message “Validation passed”.

Step- 4: Now click on the “Create” button. It will show you “Your deployment is complete“.Now click on “Go to resource”

Step- 5: Congratulations, now you have created the VM successfully. Click on the Connect button to connect to the VM.

Step- 6: After download the RDP file click to open, window security window will be popup. Please enter the correct credential to login the server.

Step- 7 After entering the correct credential, Virtual Machine will be loading and after some time you are able to see Windows server2019 interface.

Step- 8 : To run webserver we need to install web server (ISS ) role. Open the server Manager and click to the add role and features and follow the simple step click next.

Step- 9: After that Add roles and Features Wizard is showing.

Step- 10 : Next step will be selection of installation type. In this step you need to select the role-based or feature-based installation and click next.

Step- 11: Now select the VM where we need to install web server and click next

Step- 12: Next section is server Roles, where you able to see multiple roles but you need to select web server (ISS) role and click next

Step- 13: When you Click on “Web Server IIS” than new add roles and feature wizard. In this wizard some tools are showing, and these tools are required for Web Server IIS roles installation.

If you required so, Click on Include management tools and then click on “Add features”.

Step- 14: Next step features no need to change anything just click next.

Step-15: Finally Click on “Install”.

Step- 16: Finally Web server role “Installation Succeeded on myvm1.

Step- 17 : Now you can browse public ip 20.10.178.27 on browser and you able to see webpage

Step- 17:  Now you can create on Webpage on this Webserver.

Open the file location: C:\inetpub\wwwroot

I have downloaded the sample template from: https://www.free-css.com/free-css-templates/page292/chain-app-dev and pate at the below path

Leave a Comment