Hi @Ryan Hill ,
Thanks for confirming that i'm not crazy. Was doubting myself for a moment.
I have made a new observation. When executing:
Get-AzWebApp | where {$_.Tags.Item('env') -match "dev"}
I do also get a null value error in the return. Didn't see it before because a lot of data is being dumped to the screen.
So I created a bit of code to loop the entire result and dumping it one by one.
Get-AzWebApp | where {$_.Tags.Item('env') -match "dev"} | % {
$name = $_.Name
write-host $name -ForegroundColor Green
Get-AzWebApp -Name $name | where {$_.Tags.Item('env') -match "dev"}
}
This dumps all the webapps but also provides me the exact app generating the error.
Just after the name of an older app we are running the error is also generated. Not sure why yet.
When I execute :
Get-AzWebApp -Name <name older app> | where {$_.Tags.Item('env') -match "dev"}
the error is not displayed.
I'm looking further and will keep this post up-to-date.