Closed timwebster9 closed 3 years ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Wmengmsft, @MehaKaushik, @shurd, @anfeldma-ms
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @vaibhav-agar.
Author: | timwebster9 |
---|---|
Assignees: | - |
Labels: | `Compute - Images`, `Service Attention`, `customer-reported`, `question` |
Milestone: | - |
Requesting @axayjo to take a look at this issue
@timwebster9 this particular image you are trying to get is not a shared image version but rather a manage image. If you want to find out the details of a managed image, you should use Get-AzImage and provide the resource group name and image name.
OK I see. I wrongly assumed that in an image version, StorageProfile.Source.Id
would give you the image definition, but instead I guess it gives you the managed image.
Is there a way to get the image definition from an image version object? My issue here is that I need to get the publisher/offer/sku details from the definition. All I have to start with is the VM itself, so I go VM -> storage profile -> image reference, and all I get is the version.
FYI I've found another way to do this (via InstanceVIew), so this can be closed.
Closing issue per comment from @timwebster9. Please feel free to reopen the issue if InstanceView does not have all the information you need.
Description
Can't retrieve a shared image gallery definition using only its resource ID. It says you also need to provide the gallery name, which when provided also doesn't work.
The docs show examples using the gallery name and image definition name, but I don't have those in the context of this script, only the ID (from the image version). The image version does not supply the image def. name, only the ID.
Steps to reproduce
If you also specify the gallery name, this happens:
Environment data
Module versions
Debug output
Error output