How to query all VMs in a subscription without Tags How to query all VMs in a subscription without Tags powershell powershell

How to query all VMs in a subscription without Tags


I'd use this:

Get-AzureRMVM | Where-Object { $_.tags }

which is a easier to read\understand

edit: sorry, you need the reverse:

Get-AzureRMVM | Where-Object { $_.tags.count -eq 0 }