How to get the Azure Image publishers available at the location using PowerShell?


You can get the Azure images and the Publisher name from the Azure MarketPlace. To get the Azure Images publishers available at the specific location using PowerShell, we can use the GetAzVMImagePublisher command and need to provide the location to get the available publishers.

For Example,

PS C:\> Get-AzVMImagePublisher -Location Eastus

The above command will get all the image publishers available at that location. To get only the publishers, you can filter out the output.

PS C:\> Get-AzVMImagePublisher -Location Eastus | Select PublisherName

Output

xcontentptyltd-1329748
xendata-inc
xfinityinc
xilinx
xoriantsolutionspvtltd
xtremedata
xyzrd-group-ou
yellowfin
yellowfininternationalptyltd1616363974066
yokogawarentalleasecorporation
your-shop-online

You can filter the specific publisher as shown below.

PS C:\> Get-AzVMImagePublisher -Location Eastus | where{$_.PublisherName -like
"Microsoft*"}

Or for the RedHat

PS C:\> Get-AzVMImagePublisher -Location Eastus | where{$_.PublisherName -like
"Redhat*"}

Updated on: 02-Sep-2021

168 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements