When you heavily use Tags on your Azure Resources, is very easy to reach the limits of the Tags that Azure allow to use on each resource. On the other hand, to be consistent on the Tags applied on those resources is key to a good Tag implementation.

The way that I like to do is to create an Azure Automation runbook, so when it runs you will have the output of the Tags for each Resource Group on that Azure Subscription.

To execute the below PowerShell cmdlets in Azure Automation runbook:

  1. Create an Automation Account with Run As account.
  2. Modify the AzureAutomationTutorialScript with below PowerShell cmdlets and execute the AzureAutomationTutorialScript. Please use the below PowerShell:
    Login-AzureRMAccount
    $ResourceGroups = Get-AzureRmResourceGroup
    foreach ($ResourceGroup in $ResourceGroups)  {   
      Write-Output ("Showing resources in resource group" + $ResourceGroup.ResourceGroupName)  
      $Resources = Find-AzureRmResource -ResourceGroupNameContains
      $ResourceGroup.ResourceGroupName | Select ResourceName, ResourceType, Tags | Format-Table  
      $Resources  
      }
    

Cheers,

Marcos Nogueira
Azure MVP
azurecentric.com
Twitter: @mdnoga