Skip to content

Commit 1c092fb

Browse files
leahy268tiagov8
andauthored
Update Rule “azure-naming-resource-groups/rule” (#10022)
* Update Rule “azure-naming-resource-groups/rule” * Update Rule “azure-naming-resource-groups/rule” * Update rule.md --------- Co-authored-by: Tiago Araújo [SSW] <[email protected]>
1 parent 7aa263b commit 1c092fb

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

rules/azure-naming-resource-groups/rule.md

+16-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
2-
seoDescription: Learn how to effectively organize your Azure resources using logical resource groups named consistently across environments for clarity and efficiency.
32
type: rule
43
title: Resource Groups - Do you know how to arrange your Azure resources?
4+
seoDescription: Learn how to effectively organize your Azure resources using
5+
logical resource groups named consistently across environments for clarity and
6+
efficiency.
57
uri: azure-naming-resource-groups
68
authors:
79
- title: Adam Cogan
@@ -33,29 +35,31 @@ Name your Resource Groups as **Product.Environment**. For example:
3335
* Northwind.Staging
3436
* Northwind.Production
3537

36-
There are no cost benefits in consolidating Resource Groups, so use them! Have a Resource Group per product, per environment. And most importantly: **be consistent in your naming convention**.
38+
There are no cost benefits in consolidating Resource Groups, so use them! Have a Resource Group per product, per environment. And most importantly, **be consistent in your naming convention**.
39+
40+
**Remember it's difficult to change a resource group name once everything is deployed without downtime.**
3741

3842
<!--endintro-->
3943

40-
### Keep your resources in logical, consistent locations
44+
## Keep your resources in logical, consistent locations
4145

4246
You should keep all a product's resources within the same Resource Group. Your developers can then find all associated resources quickly and easily, and helps minimize the risk of duplicate resources being created. It should be clear what resources are being used in the Dev environment vs. the Production environment, and Resource Groups are the best way to manage this.
4347

4448
::: bad
45-
![Bad example - A rogue dev resource in the Production RG](rogue-resource.png)
49+
![Figure: Bad example - A rogue dev resource in the Production RG](rogue-resource.png)
4650
:::
4751

48-
### Don't mix environments
52+
## Don't mix environments
4953

5054
There's nothing worse than opening up a Resource Group and finding several instances of the same resources, with no idea what resources are in dev/staging/production. Similarly, if you find a single instance of a Notification Hub, how do you know if it's being built in the test environment, or a legacy resource needed in production?
5155

5256
::: bad
53-
![Bad example - Staging and Prod resources in the same RG](bad-azure-environments.png)
57+
![Figure: Bad example - Staging and Prod resources in the same RG](bad-azure-environments.png)
5458
:::
5559

56-
### Don't categorize Resource Groups based on resource type
60+
## Don't categorize Resource Groups based on resource type
5761

58-
There is no cost saving to group resources of the same type together. For example, there is no reason to put all your databases in one place. It is better to provision the database in the same resource group as the application that uses it.
62+
There is no inherent cost-saving benefit to grouping resources of the same type together unless they share underlying infrastructure. For example, consolidating all databases into a single SQL Server can reduce costs, as can hosting multiple apps under a single App Service Plan. However, arbitrarily placing all resources of the same type in one location—without considering dependencies—does not save money. Instead, it is best to provision resources in the same resource group as the applications that use them for better management and alignment with their lifecycle.
5963

6064
::: bad
6165
![Figure: Bad example - SSW.SQL has all the Databases for different apps in one place](arrange-azure-resources-bad.jpg)
@@ -64,3 +68,7 @@ There is no cost saving to group resources of the same type together. For exampl
6468
::: good
6569
![Figure: Good example (for all the above) - Resource Group contains all staging resources for this product](rg-good.png)
6670
:::
71+
72+
::: good
73+
![Figure: Good example - Adding underlying infrastructure to the same Resource Group can save $](screenshot-2025-03-18-080729.png)
74+
:::
Loading

0 commit comments

Comments
 (0)