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

Shared Gallery Image to which to publish the managed image version to does not exist in the resource group #7809

Closed
BenMitchell1979 opened this issue Jun 28, 2019 · 5 comments

Comments

@BenMitchell1979
Copy link

Describe the problem and include the following information: When attempting to deploy Azure Managed Image to Shared Image Gallery using new "shared_image_gallery_destination" and I'm getting the following error

Build 'azure-arm' errored: the Shared Gallery Image to which to publish the managed image version to does not exist in the resource group MBPRD-IMAGES

@BenMitchell1979
Copy link
Author

Looks like you have to pre-stage the Image Definition in the Shared Image Gallery that you are calling via the template. This probably needs to be documented here - https://www.packer.io/docs/builders/azure.html

@TryTryAgain
Copy link

TryTryAgain commented Oct 17, 2019

I'm coming up against this and have no idea how to solve it. Any quick documentation that can be captured in this issue to help others in the meantime? EDIT: for me, the solution was to make sure the Image Definition had the same name as the Managed Image Name...that solved it, after having had created the Image Definition and still had issues.

@slime-uk
Copy link

I'm also having this issue - do we really need to pre-stage the image definition (even though there is no image as yet) in Azure Shared Image gallery?

@ashemedai
Copy link

ashemedai commented Oct 28, 2019

@slime-uk Yes, you do. At the moment there seem to be two (or three, depending on how you look at it) options to do so:

  • Use Terraform's azurerm_shared_image resource to create these definitions when you create the shared image gallery, provided you use Terraform for those things of course.
  • Use az cli or PowerShell to create a shared image definition, e.g. for a customised Ubuntu 18.04-LTS image: az sig image-definition create --resource-group <my-rg> --gallery-name <my_shared_image_gallery> --gallery-image-definition <my-ubuntu18> --publisher <company> --offer UbuntuServer --sku 18.04-LTS --os-type linux

@ghost
Copy link

ghost commented Jan 23, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Jan 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants