Hi Richard,
Please confirm that you are attempting to deploy SQL Server VM to a VM size with enough resources (RAM especially). I would start with a VM with 8GB RAM or higher and then if you want to try smaller sizes (e.g. 4GB or 2GB RAM) you can stop the VM and resize smaller.
Please click Accept Answer and upvote if the above was helpful.
Thanks.
-TP