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

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? - image

  1. Change the drive letter of the Temporary Storage drive to F.
  2. Move pagefile.sys to the Operating System drive. Source Reference Answer
  3. Stop (deallocate) VM1.
  4. Expand the Temporary Storage drive.

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.

Community Insight

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.

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.

Community Discussion (6 comments)

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.
Krayzr 👍 1 Selected: B
Definitely, it is B.
nawtitoo 👍 3 Selected: 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
fd489cd 👍 2
https://learn.microsoft.com/en-us/azure/virtual-machines/windows/change-drive-letter
Kuikz 👍 3 Selected: B
I think is B according to the documentation: https://learn.microsoft.com/en-us/azure/virtual-machines/windows/change-drive-letter
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

Comments & Corrections

No comments 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.

Submitted for moderation before publishing. Keep it helpful and respectful.

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

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.

Related Analysis

← Back to AZ-800 Study Guide