Hi @Varma
Thank you for reaching out to the Microsoft Q&A platform.
az image show
works with managed custom images.
az image show --resource-group <resource-group-name> --name <image-name> --query "{offer:offer, publisher: publisher, sku:sku}"
If you are looking at Platform Image Repository (PIR) or Market Place images, you should go with different commands
- run: az vm show --resource-group rg --name myVM --query "storageProfile.imageReference" -otsv (this should dump out the image information like publisher, offer, sku, etc)
- If you need further information, you can run a few more, e.g. :
a. az vm image list --all --publisher Canonical --offer UbuntuServer --sku 16.04-LTS -otable
b. az vm image show --urn Canonical:UbuntuServer:16.04-LTS:16.04.201807240
Hope this helps!
Please Accept Answer and hit Yes for "was this answer helpful" if this helps