
Converting v5 SKU VM's to v6 or v7
Hi all, I was wondering if anyone has done this. I'd like to upgrade one of my existing AVD session host VM's from a v5 SKU to a v6 or v7.
Has anyone had success in doing this? I know this isn't supported by the normal method in the portal. The reason being is that the newer SKUs use NVMe and not SCSI. However, I'm attempting to follow the article here:
https://learn.microsoft.com/en-us/azure/virtual-machines/nvme-linux?tabs=windows
https://learn.microsoft.com/en-us/azure/virtual-machines/migration/sizes/scsi-to-nvme-migration (this article is also the same method)
Anyway, I launch cloud shell, download the script run the following command:
.\Azure-NVMe-Conversion.ps1 -ResourceGroupName myRGName -VMName myVMname -NewControllerType NVMe -FixOperatingSystemSettings -VMSize Standard_D2s_v6 -StartVM
My originating SKU is Standard_D2as_v5. The script runs successfully. It even states it is converting SCSI to NVMe and all looks great, just like it should. However, when the VM powers up it says it cannot find storage device (unknown) etc and it won't boot.
I then run the roll back command and my VM boots again without issue.
.\Azure-NVMe-Conversion.ps1 -ResourceGroupName myRGName -VMName myVMname -NewControllerType SCSI -VMSize Standard_D2as_v5 -StartVM
I'd like like to get this VM on a newer SKU so has anyone had success with this script? Anyone, other than me want to give it a go? I must be missing something...