none
Azure Resources that have been assigned with tags RRS feed

  • General discussion

  • can someone please be kind enough to amend so that it shows owner or created by information, so that is displayed too please, much appreciated.

    $result=@()
    $tagkeys=Get-AzureRmTag
    foreach($tagkey in $tagkeys) {
        $tagvalues=(Get-AzureRmTag $tagkey.name).values
        foreach($tagvalue in $tagvalues) {
            $result+=Find-AzureRmResource -tag @{$tagkey.name=$tagvalue.name} | select name,resourcegroupname,location,@{label="tagName";expression={$tagkey.name}},@{label="tagValue";expression={$tagvalue.name}}
        }
    }
    $result | Out-GridView -Title "Azure Resources that have been assigned with tags"

    • Changed type Bill_Stewart Monday, March 12, 2018 8:41 PM
    • Moved by Bill_Stewart Monday, March 12, 2018 8:42 PM This is not "fix/debug/rewrite my script for me" forum
    Wednesday, January 24, 2018 9:20 AM

All replies