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

Packer builder with attached disks ? #9004

Closed
Boriszn opened this issue Apr 6, 2020 · 5 comments
Closed

Packer builder with attached disks ? #9004

Boriszn opened this issue Apr 6, 2020 · 5 comments

Comments

@Boriszn
Copy link

Boriszn commented Apr 6, 2020

Hey Team.

Could you please help or suggest workaround. I've noticed that packer builders always removes attached disk after image creation.

In our product we are using azure image copy extension which requires this disk to be attached otherwise it will not copy the image and throws error like below:

image

Also you could please suggest some quick fix in the source code, so I can clone it and use my version of packer.
Or any other option/link etc are welcome. We really need this fix

Many Thanks in advance,
Boris

@SwampDragons
Copy link
Contributor

I don't think this is currently available, but I'd accept a PR for it. I'm not sure how easy it would be to implement, though.

@Boriszn
Copy link
Author

Boriszn commented Apr 9, 2020

Thanks a lot for the feedback. I will create PR also add additional parameter e.g.packer -delete-disk false would this option ok for you ?

@SwampDragons
Copy link
Contributor

This should only be a template option, not a command line parameter.

@Boriszn
Copy link
Author

Boriszn commented Apr 11, 2020

Make sense. So it should like below, right ?

{
  "builders": [{
    "type": "azure-arm",
     ......
    "delete_disk" : "true",
     ......
  }]
}

@ghost
Copy link

ghost commented Apr 30, 2021

This issue has been automatically migrated to hashicorp/packer-plugin-azure#33 because it looks like an issue with that plugin. If you believe this is not an issue with the plugin, please reply to hashicorp/packer-plugin-azure#33.

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

No branches or pull requests

3 participants