any idea why the script fails
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