- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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*"}
Advertisements