Getting and preparing the VHD
This is by far the most tedious part of all the process because you need to download 11 ZIP files from LCS’ Shared Asset Library, and we all know how fast things download from LCS.

And to speed it up we can create a blob storage account on Azure and once more turn to Mötz Jensen’s d365fo.tools and use the Invoke-D365AzCopyTransfer cmdlet. Just go to LCS, click on the “Generate SAS link” button for each file, use it as the source parameter in the command and your blob SAS URL as the destination one. Once you have all the files in your blob you can download them to your local PC at a good speed.
Once you’ve unzipped the VHD you need to change it from Dynamic to Fixed using this PowerShell command:
Convert-VHD -Path VHDLOCATION.vhd -DestinationPath NEWVHD.vhd -VHDType Fixed
The reason is you can’t create an Azure VM from a dynamically-sized VHD. And it took me several attempts to notice this 🙂