There are different method of creating the virtual machine in Azure. For this tutorial we will be using the Azure portal. The Azure portal provides a browser-based user interface to create VMs and their associated resources.
Step 01 Sign in to your Azure portal
Step 02 Search Virtual Machine in the search bar and select create
Step 03 In the project details
- Choose your subscription (in my own case Azure subscription 1)
- Create a new resource group, click create new and name it (in my own case myRG)
- Under Instance details, type myVMachine for the Virtual machine name and choose Windows Server 2022 Datacenter for the Image
- Choose a region (in my own case Africa (south africa north)
- Select a desired size (your workflow will determine the type of size to choose)
Step 04
- Under Administrator account, enter a username and password. The password must be at least 12 characters long
- Under Inbound port rules, choose Allow selected ports and then select RDP (3389) from the drop-down.
Leave the remaining defaults and then select the Review + create button at the bottom of the page.
After deployment is complete, click Go to resource.
Now let's connect to our virtual machine
We are going to connect to our VM with RDP client.
Step 05 Select the Connect > RDP. in the Connect with RDP page, keep the default options to connect by IP address, over port 3389, and click Download RDP file.
- Open the downloaded RDP file and click Connect when prompted.
When the Windows Security window, select More choices and select Use a different account.
Enter your username and password you created for the virtual machine, and then click OK.
- If there is a certificate warning prompt, Click Yes or Continue to create the connection.
Viola! We are in
Let us add some roles and features in our server manager
Step 06 Click add roles and features leave all settings as default and follow the wizard until it gets to server role. under server roles select Web server (IIS) Select include management tools (if applicable) then add features check restart destination server automatically if required then install
Step 07
- Go to main menu and search Internet information services manager (IIS)
- Click the > at the left pane
- Click sites and click default websites
- right click and select manage websites
- then select advanced settings
- Copy a physical path %SystemDrive%/inetpub\wwwroot.
Step 08
-Open file explorer and paste the physical path into the search bar
- right click and create a new document file
- Open and type few lines of welcome message and save as .html