Azure Resource Naming Convention Generator
Generate Microsoft Cloud Adoption Framework (CAF) compliant names for Azure resources. Validate length, abbreviations, and regex rules for VMs, Storage, and more.
Generated Resource Name
Naming Pattern: vm-[app]-[env]-[region]-[instance]
Note: Changes are applied automatically. Invalid characters for the selected resource type will be stripped or flagged.
About
This tool automates the creation of Azure Resource Names strictly adhering to the Microsoft Cloud Adoption Framework (CAF). Naming resources in the cloud is not merely aesthetic; it is a critical governance practice. Inconsistent naming leads to resource conflicts, security ambiguity, and deployment failures.
Unlike simple string concatenators, this generator implements the specific validation logic for each Azure resource type. For instance, a Storage Account is limited to 24 characters with no hyphens, while a Virtual Machine allows up to 64 characters with hyphens. We handle these edge cases automatically using the official abbreviation standards.
Formulas
The standard naming pattern follows the Scope-Specific format defined by Microsoft:
However, specific constraints apply conditionally:
res = Resource Type Abbreviation
app = Workload/Application Name
env = Environment (dev, prod, stg)
loc = Azure Region (e.g., weu, eus)
## = Instance Number (001, 002)
Reference Data
| Resource Type | Abbreviation (res) | Max Length | Hyphens Allowed? |
|---|---|---|---|
| Virtual Machine | vm | 64 | YES |
| Storage Account | st | 24 | NO |
| Key Vault | kv | 24 | YES |
| App Service | app | 60 | YES |
| Function App | func | 60 | YES |
| SQL Server | sql | 63 | YES |
| Virtual Network | vnet | 64 | YES |
| Resource Group | rg | 90 | YES |
| Container Registry | acr | 50 | NO |
| Cosmos DB Account | cos | 44 | YES |
| Public IP Address | pip | 80 | YES |
| Network Interface | nic | 80 | YES |
| Application Gateway | agw | 80 | YES |
| Bastion Host | bas | 64 | YES |
| Log Analytics Workspace | log | 63 | YES |