Create Azure Virtual Machine - Attach Data Disk | AZ-100 Exam Lab Answer

Attach Data Disk to Azure Virtual Machine

Question

SIMULATION -

Overview -

The following section of the exam is a lab. In this section, you will perform a set of tasks in a live environment. While most functionality will be available to you as it would be in a live environment, some functionality (e.g., copy and paste, ability to navigate to external websites) will not be possible by design.

Scoring is based on the outcome of performing the tasks stated in the lab. In other words, it doesn't matter how you accomplish the task, if you successfully perform it, you will earn credit for that task.

Labs are not timed separately, and this exam may have more than one lab that you must complete. You can use as much time as you would like to complete each lab. But, you should manage your time appropriately to ensure that you are able to complete the lab(s) and all other sections of the exam in the time provided.

Please note that once you submit your work by clicking the Next button within a lab, you will NOT be able to return to the lab.

To start the lab -

You may start the lab by clicking the Next button.

You recently created a virtual machine named Web01.

You need to attach a new 80-GB standard data disk named Web01-Disk1 to Web01.

What should you do from the Azure portal?

Explanations

See explanation below.

Add a data disk -

Step 1. In the Azure portal, from the menu on the left, select Virtual machines.

Step 2. Select the Web01 virtual machine from the list.

Step 3. On the Virtual machine page, , in Essentials, select Disks.

Step 4. On the Disks page, select the Web01-Disk1 from the list of existing disks.

Step 5. In the Disks pane, click + Add data disk.

Step 6. Click the drop-down menu for Name to view a list of existing managed disks accessible to your Azure subscription. Select the managed disk Web01-Disk1 to attach:

https://docs.microsoft.com/en-us/azure/virtual-machines/linux/attach-disk-portal

To attach a new 80-GB standard data disk named Web01-Disk1 to the virtual machine Web01, follow the steps below:

  1. Log in to the Azure portal (https://portal.azure.com).
  2. In the left navigation menu, click on Virtual Machines.
  3. In the list of virtual machines, select the virtual machine named Web01.
  4. In the Virtual machine pane, click on Disks under the Settings section.
  5. In the Disks pane, click on the + Add data disk button.
  6. In the Add data disk pane, select the following options:
    • LUN: 0
    • Name: Web01-Disk1
    • Size (GiB): 80
    • Account type: Standard HDD
    • Source type: None
  7. Click on the OK button to create and attach the new data disk.
  8. Once the disk is attached, you will need to initialize and format it before you can use it. This can be done using the Disk Management tool in the virtual machine.

After completing the above steps, the new 80-GB standard data disk named Web01-Disk1 will be attached to the virtual machine Web01.