/consistent-azure-vm-data-drives-preparation--format---lettering

When dealing with Windows virtual machines from the marketplace on Azure, sometimes a CD-ROM will temporarily be present in the first moments in the lifetime of the VM. Microsoft needs this drive to perform various actions like preparing and licensing the VM. This is an adaptat

Primary LanguageShellOtherNOASSERTION

Consistent Azure VM data drives preparation, format & lettering

When dealing with Windows virtual machines from the marketplace on Azure, sometimes a CD-ROM will temporarily be present in the first moments in the lifetime of the VM. Microsoft needs this drive to perform various actions like preparing and licensing the VM. This is an adaptation from a Microsoft script I got my hands on to always ensure my data disks drive letters are consistent across reboot, de-allocate, re-image & host relocation on Azure.

It will move (if present) the CD-ROM drive to letter Z and perform initialization, formatting and assignation of drive letters for all un-initialized disks from letter E to Y.

 

 

TechNet gallery is retiring! This script was migrated from TechNet script center to GitHub by Microsoft Azure Automation product group. All the Script Center fields like Rating, RatingCount and DownloadCount have been carried over to Github as-is for the migrated scripts only. Note : The Script Center fields will not be applicable for the new repositories created in Github & hence those fields will not show up for new Github repositories.