operating system - Azure: List OS Images -
im new windows azure, ive looked documentation, me works, listing images on gallery. https://management.core.windows.net/subscription-id/services/images
but isnt im looking for, there way list images on account , not images on gallery.
if run powershell cmdlet get-azurevmimage, you'll see all images. stated @gaurav, ones correlate my images have publishername of user. so, again, using powershell, here's how see images piping where-object:
get-azurevmimage | where-object { $_.publishername -eq 'user' } if wanted see image names in console, pipe foreach-object:
get-azurevmimage | where-object { $_.publishername -eq 'user' } | foreach-object { write-host $_.imagename } note: if image's publishername empty, use category -eq 'user' instead.
here's sample output, subscription:

edit if you're using mac/linux cli, you'd run different command:
azure vm image list or, return json:
azure vm image list --json once have json, could, example, pipe command line tool such jsontool own image names (the image name returned in name key):
azure vm image list --json | json -a -c 'this.category == "user"' name
Comments
Post a Comment