Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create an image with an additional data disk? #56

Open
MatthewTurney opened this issue Feb 16, 2024 · 1 comment
Open

How to create an image with an additional data disk? #56

MatthewTurney opened this issue Feb 16, 2024 · 1 comment

Comments

@MatthewTurney
Copy link

We are transitioning our existing imaging process to Azure Image Builder, but some of our images require a data disk to be included in the image. Is there a way to do so via Image Builder, or any plans to include this functionality?

As far as I can tell, the best workaround currently would be to distribute to a VHD, create an image using that VHD as the OS disk and specify a data disk (created separately), and then use that to create an image gallery version - unless there's a better way I'm not aware of?

Thanks for your help!

@anglopez
Copy link

We are currently facing the same issue. I can create servers from the Image Gallery with the data disk all setup, but the Image Builders deletes it. We were working on automating the custom image patch with the Azure Devops - Azure VM Image Builder Test task. But it looks that its necessary to updates the custom images manually.

Image Builder delete action:
PACKER OUT ==> azure-arm: Deleting Additional Disk -> 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants