vm creation fails

any idea why the script fails :frowning:

Well, the error seems to indicate that you, ā€œCannot specify user image overrides for a disk already defined in the specified image reference.ā€ As I am not an ARM expert Iā€™m not sure I can unwind that statement fully for you, if thatā€™s what youā€™re asking. But it would seem that youā€™re specifying an image override for a disk thatā€™s already defined in the image reference :).

Your PowerShell syntax is correct; the error is that Azure doesnā€™t like what youā€™re telling it to do.

This may be relevant: ARM VM create with --image-name option not working Ā· Issue #2087 Ā· Azure/azure-xplat-cli Ā· GitHub

Any idea on how to fix this ?
Iā€™m stuck with the same errorā€¦ in Azure RM 6.3.0
(Iā€™d like to mount a user-provided System Disk, a generalized VHD, by first converting the VHD to a Managed Disk)
Thanks,
jc