How to Assign Drive D to a Persistent Data Disk on an Azure VM?

AZ-800 By islever Editorial Last updated

Short answer

B Move pagefile.sys to the Operating System drive.

Question

You have an Azure virtual machine named VM1 that contains the drives shown in the following table. On VM1, you plan to install an app named App1. The data for App1 must be stored on a persistent data disk assigned to drive D. You need assign the data disk to drive D. What should you do on VM1 first? - Exhibit: How to Assign Drive D to a Persistent Data Disk on an Azure VM?
  1. Change the drive letter of the Temporary Storage drive to F.
  2. Move pagefile.sys to the Operating System drive. Correct Answer
  3. Stop (deallocate) VM1.
  4. Expand the Temporary Storage drive.

Key Takeaways

Tests the prerequisite step for reassigning drive letters in Azure Windows VMs, where candidates often overlook the locked state of the system page file on the temporary disk.

To assign drive D to a new persistent data disk in Azure, you must first move the pagefile.sys off drive D. Community consensus confirms this prerequisite based on official Microsoft documentation for Azure VM disk management.

Common mistake: Option A is chosen by some who assume simply renaming the temporary disk frees up drive D, but the active pagefile.sys locks the volume until it is relocated to the OS drive.

Expert Analysis

Why the Answer Is Correct

Azure Windows VMs automatically configure the system page file on the temporary storage drive, typically assigned as D:. Because the operating system actively uses pagefile.sys, drive D: remains locked and cannot be reassigned or overwritten. Moving the page file to the OS drive (C:) releases the lock, allowing administrators to safely change drive letters or attach a new persistent managed disk to D:

Why the Other Options Are Wrong

Option A fails because the temporary disk's drive letter cannot be changed while the page file is still occupying it. Option C is unnecessary since drive letter modifications are performed online without requiring VM deallocation or downtime. Option D is invalid because Azure temporary storage disks are fixed-size scratch volumes that cannot be expanded, nor does resizing address the drive letter conflict.

Community Comment Notes

Multiple voters confirmed option B by directly referencing the official Microsoft guide for changing Azure VM drive letters. Comment [1] and [3] validate this approach by linking to the official documentation, emphasizing that moving the page file is mandatory before any drive letter changes. One dissenting comment suggested option A, but the overwhelming consensus correctly identifies page file relocation as the required first step.

Official Reference

https://learn.microsoft.com/en-us/azure/virtual-machines/windows/change-drive-letter

This link opens the official vendor documentation in a new tab.

Exam Strategy

When attaching or reassigning drives in Azure Windows VMs, always verify if the target drive letter hosts the page file or hibernation file. Relocating these system files is a mandatory prerequisite that frequently appears as the correct first step in disk configuration scenarios.

Community Votes

B
100%

100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 6 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 6

  1. nawtitoo 👍 3 Answered B
    B according to this https://learn.microsoft.com/en-us/azure/virtual-machines/windows/change-drive-letter#:~:text=you%20need%20to%20follow%20these%20steps%20to%20temporarily%20move%20the%20pagefile.sys%2C%20attach%20a%20new%20data%20disk%20and%20assign%20it%20the%20letter%20D%20and
  2. makonmakon 👍 3
    I think B. is the answer. First you need to move pagefile.sys and then change the drive letter. https://learn.microsoft.com/en-us/azure/virtual-machines/windows/change-drive-letter
  3. Kuikz 👍 3 Answered B
    I think is B according to the documentation: https://learn.microsoft.com/en-us/azure/virtual-machines/windows/change-drive-letter
  4. fd489cd 👍 2
    https://learn.microsoft.com/en-us/azure/virtual-machines/windows/change-drive-letter
  5. Ksk08 👍 1
    The correct first step is: A. Change the drive letter of the Temporary Storage drive to F, as this will free up D: so that you can assign your persistent data disk (E:) to it.
Show 1 more comment
  1. Krayzr 👍 1 Answered B
    Definitely, it is B.

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

← Back to AZ-800 Study Guide