You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: rules/azure-naming-resource-groups/rule.md
+16-8
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,9 @@
1
1
---
2
-
seoDescription: Learn how to effectively organize your Azure resources using logical resource groups named consistently across environments for clarity and efficiency.
3
2
type: rule
4
3
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.
5
7
uri: azure-naming-resource-groups
6
8
authors:
7
9
- title: Adam Cogan
@@ -33,29 +35,31 @@ Name your Resource Groups as **Product.Environment**. For example:
33
35
* Northwind.Staging
34
36
* Northwind.Production
35
37
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.**
37
41
38
42
<!--endintro-->
39
43
40
-
###Keep your resources in logical, consistent locations
44
+
## Keep your resources in logical, consistent locations
41
45
42
46
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.
43
47
44
48
::: bad
45
-

49
+

46
50
:::
47
51
48
-
###Don't mix environments
52
+
## Don't mix environments
49
53
50
54
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?
51
55
52
56
::: bad
53
-

57
+

54
58
:::
55
59
56
-
###Don't categorize Resource Groups based on resource type
60
+
## Don't categorize Resource Groups based on resource type
57
61
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.
59
63
60
64
::: bad
61
65

@@ -64,3 +68,7 @@ There is no cost saving to group resources of the same type together. For exampl
64
68
::: good
65
69

66
70
:::
71
+
72
+
::: good
73
+

0 commit comments