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

PowerShellMicrosoft TechnologiesSoftware & Coding

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*"}
raja
Published on 02-Sep-2021 11:02:17
Advertisements