Sie sind auf Seite 1von 25

Lab Exercises

Creating your first resource

1. First log into the Azure portal


2. Then you can create a resource in multiple ways

So, in the below diagram, showing 2 ways in which you can go ahead and begin the creation of a
resource

OR

If you are creating a specific resource such as a virtual machine, then you can go to Virtual Machines
and click on Add
3. Next you need to choose the underlying Operating system for your virtual machine. So in our
demo , we will choose Windows Server.

4. Choose the version of Windows required. In our example , we will choose Windows Server
2016.
Click on the Create button after you select the version of Windows you want.

5. Next you need to configure the basic settings for the virtual machine
1) So, first is the name for your virtual machine
2) Next is the underlying Disk type. Choose SSD for better performance for the underlying disk.
3) Give the user name which you will use to log into the Virtual Machine
4) Give the password. Remember the password, you will need this to log into the Virtual
Machine
5) Choose your subscription. Note that if you have created the Free account, it should show up
here.
6) Next create the resource group. You can also choose an existing one if you already have one
in place
7) Choose the location for where your virtual machine needs to be placed.
8) Then click on the OK button
6. In the next screen you have to choose the size for the virtual machine. This will determine
one factor of how much you will pay for the virtual machine.

7. In the Settings screen, leave the main settings as they are. Just ensure the select the security
ports to allow incoming traffic. This will allow you to log into the Virtual Machine.
You can also disable boot diagnotics
Click on the OK button

8. And then in the final screen , just agree to the terms and conditions and then click on Create.
You will then get a notification in the right-hand corner showing that the deployment is taking place.

Once the deployment is succeeded, you will see a number of resources available in the All resources
section
9. Click on your virtual machine to get the details of your machine

10. To connect to the Virtual Machine , make sure you are in the Overview blade of your virtual
machine
Then click on Connect and Download RDP file.

11. This will download the RDP file

Click on Connect for the RDP file.


Enter the user name and password

And then you will be logged into your instance


Azure Marketplace

1. Here we will see how to setup a simple Wordpress instance using the AWS Marketplace
2. So, in the Azure portal, click on Create a resource. In the Azure Marketplace, just search for
Wordpress.

3. Choose Wordpress on Windows Server 2016


4. Make a note of the Installation steps and then click on Create

5. Configure the basic settings as you would do for any virtual machine
6. Choose your virtual Machine size
7. Work with the settings in the same way as you would create a virtual machine which was
discussed in the earlier lab exercise

8. Understand the additional cost. This should be covered under the credit for the free trial
account
Once the virtual machine is in place , go to the Overview blade , take the public IP and browse for it.

You will then be presented with the configuration steps for Wordpress.
State of the Virtual Machine

1. To assign a static IP to your virtual machine, just go to the Public IP settings for the virtual
machine via the Overview blade

2. In the next screen you can change the Public IP address from Dynamic to Static
Click on the Save button to save the settings.

3. To add a virtual disk to the VM , go to the Disks section.


4. In the next screen perform the following steps
1) Click on Add data disk
2) Click on Create Disk

5. In the next screen specify the settings for the disk


1) Give a name for the disk
2) Ensure it is part of the resource group
3) Let the disk be as Premium SSD
4) Let it be a new empty source disk
5) Specify a size for the disk
6) Click on the Create button

6. You will then be directed back to the main page for the Disks
Ensure to click on Save to ensure the new disk becomes part of the VM

7. Now if you go back to your Windows Virtual machine and then go to Disks , you will see the
new disk added

8. To make a volume out of the disk , perform the following steps


Right click and Initialize the disk

Once done , right click on the Disk to create a new Volume

Follow the steps of the Wizard to complete the Volume creation


You will then see the new volume in the Windows Explorer
Deleting Resources

1. Always delete resources which are not required

To delete a resource , there are multiple ways , so you can go to the resource and click on the Delete
icon.

Or in the main resource explorer

1) Choose your resource


2) Click on the Delete icon
3) Type in yes for confirmation
4) And then click on the Delete button
You can also choose multiple resources and delete them at once

Please note that sometimes, resources may not get deleted for various reasons. See the
notification section always to see the reason if a resource does not get deleted

You can also delete an entire resource group

1) Go to resource groups
2) Choose the Resource group
3) Click the Context menu to delete the resource group

Das könnte Ihnen auch gefallen