PowerTip: Search Azure Resource Manager image publishers by using PowerShell

Doctor Scripto

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

0 comments

Discussion is closed.

Feedback usabilla icon