Hi,
I got the same problem, just wondering if anyone knows how to add more data disks to Packer image?
I found a way to add more data disks to the Packer image (it does successfully generate the packer image at the end), but it failed when i tried to deploy the image to Azure VM.
What I did was I put some scripts to partition the OS disk into 3 disks with 2 data disks (D and G) in the Packer template. When I deployed the image to a new Azure VM, it failed with this error:
I have checked the template again and I think the generalization was okay, no more clues to diagnose this issue.
Is the problem because Azure could not deploy the image that got multiple partitioned data disks on the OS disk? or maybe because of something else?
Hope anyone could help me out this issue or can suggest an ultimate solution that I can add data disks in Packer build as I need to run some DSC scripts during the build which required some data disks to be pre-installed in the VM.
Thanks,