Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions builder/azure/chroot/step_verify_shared_image_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (s *StepVerifySharedImageSource) Run(ctx context.Context, state multistep.S
s.SharedImageID))

galleryImageVersionID := galleryimageversions.NewImageVersionID(
azcli.SubscriptionID(),
resource.Subscription,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @shubangmck thanks for this contribution, I notice another instance where we're setting the subscription ID from the az cli's subscription.

This change makes sense but on line 106 we query the Image after querying the Image Version ID, so wouldn't you also need to also override the subscription ID there to fix your issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JenGoldstrich Just updated my code, thanks for pointing it out!

resource.ResourceGroup,
resource.ResourceName[0],
resource.ResourceName[1],
Expand Down Expand Up @@ -103,7 +103,7 @@ func (s *StepVerifySharedImageSource) Run(ctx context.Context, state multistep.S

imageResource, _ := resource.Parent()
galleryImageID := galleryimages.NewGalleryImageID(
azcli.SubscriptionID(),
resource.Subscription,
resource.ResourceGroup,
resource.ResourceName[0],
resource.ResourceName[1],
Expand Down
Loading