How to Create Azure Virtual Machine and configure IIS.
In this article you might learn about creating Azure VM and configuring IIS in VM.
Prerequisites
- Azure subscription
Creating Azure Virtual Machine using Azure Portal
Step 1
Go to https://portal.azure.com/
and Sign-in the portal
Step 2 || Create a Resource Group.
- Select the subscription
- Give a unique resource group name.
- Select a Region
- Review + create
Step 3 || Create Azure Virtual Machine
- Click on Virtual machine
- Click on Create
- Select Azure virtual machine
Step 4
- Select specific subscription (if you have multiple). Select the resource group (Test_RG) or you can create a new resource group.
- Give a VM name (TestVM) or you can choose any other name as well.
- Region (By default appear based on your resource group region, you can change the region as well)
- Availability options: Select No infrastructure redundancy required/ you may select another based on your requirements
- Security type: Standard - Select the Image (operating system): Windows Server 2022 Datacenter
- Select the Size | Standard_DS1_V2 ($53.29/month). Based on you selection cost will apply, so be careful on that. We can change the size later anytime as well.
- Administrator account: Provide- Username, Password, Confirm password and remember it.
- Select inbound ports: (HTTP, HTTPS, RDP)
Step 5 | Disks and Networking
Keep as it is, if you don’t want to add extra disk. You can add or remove disk after creating the VM as well.
Keep as it is, if you don’t want to configure. You can it after creating the VM as well.
Click on Review + create
Validation passed
Click on Create
Step 6 |
Click on Go to resource or check the VM under Virtual machine navigation
- Click on TestVM
- Connect
- Download RDP file
Step 7 | Connect to VM
Open the downloaded RDP file
- Check the TestVM IP, and provide the correct credentials that we have provided in Administrator account section
- Click on OK
- Yes
Successfully connected!
Click on Add roles and features
Next
Next | Role-based or feature-based installation
Next | Select a server from the server pool
TestVM
Next | Select Web Server (IIS), click on Add Features
Next | Select ASP.NET 4.8
Next
Next | Check Restart this destination server automatically if required
Click on Install
Installation Started …..
|| Installation Succeeded
Now check IIS page
Open Edge Browser and type “localhost”
Type TestVM IP address as well
If you forget to add HTTP, HTTPS inbound port, just add under Network settings in Inbound port rule