Friday, July 5, 2019

Azure - Auditing Tag Assigments with PowerShell

For now this is the best way I have found to effectively audit what tags are assigned to Azure resources. Specifically, I was trying to find items that weren't tagged with a "Cost Center". You could flip the logic and look for things that are tagged a certain way, null values, etc.

#Connect-AzAccount
Get-AzResource | select ResourceGroupName, Name, Resourcetype, Tags | Out-GridView

#Filter Tag not contains "Cost Center" or other appropriate tags


 

No comments:

Post a Comment