June 1st, 2016

PowerTip: List Azure Resource Manager resources assigned to a resource group by using PowerShell

Doctor Scripto
Scripter

Summary: Use the Azure Resource Manager cmdlets to show resources that are assigned under a resource group.

Hey, Scripting Guy! Question I looked at the console for Azure Resource Manager and can see all the resources for a particular resource group. Is there a way to see that by using PowerShell?

Hey, Scripting Guy! Answer There sure is! Just use the Get-AzureRMResource cmdlet and filter on the ResourceGroupName property. Here’s an example:

Get-AzureRmResource | where { $_.ResourceGroupName -eq 'HSG-AzureRG' } | Format-Table

 

The Doctor

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.