rg Resource groupLogical container for resources that share a lifecycle.
| CAF abbreviation | rg |
| Resource type | Microsoft.Resources/resourceGroups |
| Length | 1–90 characters |
| Case | Mixed case |
| Allowed characters | Alphanumerics, underscores, parentheses, hyphens, and periods. Can't end with a period. |
| Uniqueness | Subscription |
| Separator | Hyphen |
Source: Microsoft Learn, “Naming rules and restrictions for Azure resources”, checked October 2026. Abbreviation from the Cloud Adoption Framework.
A worked name for workload app, env prod, region weu, instance 001.
rg-app-prod-weu-001
Valid
^[A-Za-z0-9_().-]{1,89}[A-Za-z0-9_()-]$
var name = take('rg-${workload}-${env}-${region}-${instance}', 90)
locals {
name = substr(join("-", compact(["rg", var.workload, var.env, var.region, var.instance])), 0, 90)
}
Azure Policy can't evaluate regular expressions, so a policy can check the rg prefix but not the full format. Run the regex in your pipeline, or audit existing names on a schedule.
Unique within the subscription. Safe to repeat the same name in another subscription.
Open in the name generator