Question

Nuno Pedro Silva on Thu, 23 Nov 2017 22:59:51


Hi,

Is there a way that I can, in powershell, list all of the resources I have, but that are only ARM resources? I have a mix of classic and ARM resources, and want to ignore the classic resources from the listing.

Thanks,


Nuno Silva


Sponsored



Replies

Sushant Rane on Fri, 24 Nov 2017 05:33:13


I am not sure if its out of box query. But you should be able to use ResourceType and query for only those you need. 

Example

$ARMResources =  Get-AzureRmResource | Where-Object {$_.ResourceType -cnotlike "*Classic*"}

Hope this helps. 

Thanks,

Sushant Rane