Creating a Strategy for Resource Tagging
Resource tagging involves applying key-value pairs to resources, groups, and subscriptions to organize and manage them. A consistent tagging taxonomy is vital for automated cost allocation, governance enforcement, and tracking resources. Common tags include "CostCenter" for billing, "Environment" (e.g., Prod, Dev), and "ApplicationOwner." Tags should be applied when resources are first created and enforced through policy to ensure compliance. This strategy enables operations like reporting costs by department or automatically shutting down development resources on weekends.
Understanding Limitations and Ensuring Compliance
There are important technical limits to consider. When creating custom roles, only one management group can be defined in the role's assignable scopes initially. Furthermore, custom roles that include DataActions (permissions for data operations) cannot be assigned at the management group scope at all. When restructuring your hierarchy, you must proactively manage permissions to avoid broken role assignments, which can disrupt access. Solutions include removing the assignment before a move, adding the new target to the role's scope, or updating the scope to the root management group.
Auditing and Monitoring the Structure
Azure provides tools to audit your management structure. All events, such as role assignments or policy changes within management groups, are recorded in activity logs. You can query these logs in Azure Monitor to track governance actions. For ongoing monitoring, you can configure diagnostic settings to send these log entries to a Log Analytics workspace, Azure Storage, or Azure Event Hubs. This auditing capability is essential for maintaining transparency, proving compliance, and troubleshooting permission or policy issues across your organized hierarchy.