Grouping Strategies
Grouping by Application
A common strategy for resource organization is grouping by application. In this approach, all components and dependencies of a solution—such as a web application and its associated SQL database—are placed together in a single resource group. This setup simplifies policy application and access control, and it facilitates resource lifecycle management. For instance, when an application is retired, deleting its resource group automatically removes all related resources.Grouping by application is ideal for solutions where the components have a tightly coupled lifecycle.
Grouping by Resource Type
Another practical method is organizing resources by type. For example, you might maintain one resource group for web applications (App Services) and a separate one for databases. Although the resources reside in different groups, their connectivity and overall functionality remain intact. This strategy is particularly useful when resources require independent management or scaling based on their type. Additional grouping criteria may include department or cost center, geography (region or location), and resource lifecycle considerations. However, it’s essential to balance these strategies to avoid excessive administrative complexity from managing too many resource groups.
Role-Based Access Control and Policies
Resource groups also serve as a scope for applying role-based access control (RBAC) and policies, similar to management groups and subscriptions. Any roles or policies assigned at the resource group level are inherited by all underlying resources. It is crucial to plan your compliance and access control structures carefully when designing your resource group hierarchy.When configuring RBAC and policies, ensure that the inheritance of permissions aligns with your organizational security practices.