I need to search on resource groups using Azure powershell cmdlets, but the examples given suggesting something like:
Get-AzResourceGroup | where {$_.Tags.Count -gt 0 -and $_.Tags.Name -contains "AutoShutdownSchedule"}
but the above returns nothing, even though I've manually checked in the portal that the tag value is there. If I run the command without the Where clause it returns all resource groups, including the one with the desired tag value.