DEV Community

tomia456
tomia456

Posted on

How to Create a Virtual Machine and RDp into it, install a Webserver and initialize a new usable Data Disk

Step 1

Go to search bar, Search and Click for Virtual Machine

Image description

Step 2

Click on Create

Image description

Step 3

Subscription: Select your Subscription
Select: or Create your Resource group
Virtual machine: Give Virtual machine a name (it must be a unique name)
Region: Select your Region (preferable east Us)
Availability Option: must be set at "Availability zone"
Zone: Click on the your Preferred zone(Zone 1)
Security type: standard
img: **windows Server 2019 Datacenter x64 Gen2
**size:
Standard

Image description

Step 4

*Create a userName and passWord of your choice
*Inbound Port :Allow and choose HTTP(80) and RDP(3389)

Image description

Step 5

Select and Click on Review + Create

Image description

Step 6

Once Validation has been passed click on Create

Image description

Step 7
CLick and Select Go to Resource

Image description

Step 8

Select and Click on Connect

Image description

Step 9

Select and Download the RDP file

Image description

Step 10

Click and Open the downloaded file

Image description

Step 11

click and Connect to your vm windows

Image description

Step 12

Type in your userName and Password you created in step 4

Image description

Step 13
Congratulations You have Successfully Create a VM and RDP into it

Image description

                        **Stage 2**
Enter fullscreen mode Exit fullscreen mode

"How to Install a Webserver into your VM"

Step 1

Go to your Vm Search bar and Search on PowerShell

Image description

Step 2

Right click and click on Run As Administrator

Image description

Step 3

Once PowerShell has been Opened type the following Cmd click on enter

install-windowsfeature web-server

Image description

Step 4
Now Wait till your Webserver has finished installing

Image description

Step 5

To truly check if webServer has successfully installed

Go to your Azure Portal on your web browser click on overview

Image description

Step 6

On the Networking area Copy the Public IP address

Image description

Step 7

open a new web Tab browser, Paste the IP address and click on enter to visit it

Image description

Step 8

Congratulations Your Webserver has successfully in Installed

Image description

                        **Stage 3**
Enter fullscreen mode Exit fullscreen mode

How initialize a new usable Data Disk

Step 1

Go to your Azure Portal on your web browser click on Disk

Image description

Step 2

click on create a new disk

Image description

Step 3

Name your disk and select your preferred disk size

Image description

Step 4
Select and click on Save

Image description

Step 5

Congratulations your Disk as been successfully created

Image description

Step 6
To initialize your disk

go to your vM and Search on Disk Management and click on it

Image description

Step 7

a pop Up windows is gonna ask to initialize the newly created DISK 2 this click on OK

Image description

Step 8
Scroll to Disk 2 and right click on it then select "NEW Simple Volume"

Image description

Step 9

Continue to Click on next till you get to Format Partittion

Image description

Step 10

Once you get to Format Partittion

Rename Label Volume to your preferred name and Click on Next

Image description

Step 11

Click on finish

Image description

Step 12

Congratulation you´ve Create and initialized a Disk and can now be used

Image description

NOTE:
That will be the end Make sure to always delete Azure Resource when they are not in use

Top comments (0)