v6 VM's and the new Temp Disk behavior

Howdy folks,

Has anyone automated their way through configuring temp disks on v6 vm's yet?   In testing/deploying, realized that the temp disk no longer gets automagically deployed with the disk assigned a letter, pagefile relocated, etc.    Microsoft provides some decent guidance on how to do it, but I'm a little surprised that Nerdio didn't bake it into their support for v6 vm's in the first place OR didn't provide a scripted action (I'm thinking Scripted Action) to do it for us :-)

KB article on the topic here if you hadn't noticed - NVMe - Temp NVMe Disks FAQ - Azure Virtual Machines | Microsoft Learn

So before I get down to doing it myself, I checked the NMM-SE Repo, and don't see anything there yet.   Anyone got something to share to save some time before I dive in myself?   

I'm mostly concerned with Servers themselves, while we can automate (or do it manually) the configuration during build, any stop/deallocation will cause it to disappear and need to be reinitialized and adjusted accordingly..   Coupled with the fact that moving the pagefile to the temp disk could require an OS restart, it seems less than ideal.   

0

Comments (1 comment)

1
Avatar
John Tokash

For anyone that comes across this, and wasn't already aware - the NMM SE Repo has a nice scripted action for handling this.  I wrote one myself in the interim, but ended up with static values I wasn't thrilled about, and this one is quite comprehensive.   https://github.com/Get-Nerdio/NMM-SE/blob/main/ScriptedActions/v6VMSKU-AutomaticPagingFile.ps1

Please sign in to leave a comment.