PowerTip: Search Azure Resource Manager image publishers by using PowerShell


Summary: Use the Azure Resource Manager cmdlets to search publishers for a match.

Hey, Scripting Guy! Question Could you show me an example of how to search through the list of publishers for Azure images?

Hey, Scripting Guy! Answer Just use the Get-AzureRMVMImagePublisher cmdlet, and filter on the PublisherName property. The following example searches for all publishers that contain the name, Windows.

Get-AzureRMVMImagePublisher –location ‘eastus’ | Where-object { $_.PublisherName –like ‘*Windows*’ }

The Doctor

Comments (0)

Skip to main content