How to Assign Drive D to a Persistent Data Disk on an Azure VM?
Short answer
B Move pagefile.sys to the Operating System drive.
Question

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
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
-
nawtitoo 👍 3 Answered BB 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
-
makonmakon 👍 3I 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
-
Kuikz 👍 3 Answered BI think is B according to the documentation: https://learn.microsoft.com/en-us/azure/virtual-machines/windows/change-drive-letter
-
fd489cd 👍 2https://learn.microsoft.com/en-us/azure/virtual-machines/windows/change-drive-letter
-
Ksk08 👍 1The 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
-
Krayzr 👍 1 Answered BDefinitely, it is B.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.