Naming Conventions

This page documents Black Lung Naming Conventions for Azure resources.

All resources deployed inside Black Lung’s Azure cloud environment abide by the same naming standards regardless of if they were created manually or through Terraform. This is done so that all developers can identify resource’s owners, purpose, and type simply by looking at its name. The design below includes resources deployed currently and historically that following Microsoft best practice recommendations.

Design

All resources deployed inside the Black Lung Azure environment utilizes the following parts in listed order. Each section is separated by ‘-’ when possible.

PartLengthExampleDescription
Company3blkThis section contains information of which company the resource belongs to in the event Black Lung’s cloud grows into a multi-tenant environment.
Environment3-4devThis section lists what environment/subscription the resource is located in.
Type-funcThis section lists what type of azure resource the resource is.
Project-fleshwoundThis section lists what project or purpose the resource is a part of or serves.
ID201This section serves as an ID for when multiple instances of the same resource might need to be created.

Example blk-dev-pe-fleshwound-01

Company

EntryCompany
blkBlack Lung Ink

Environment

EntryEnvironment
devDevelopment
prodProduction

Resource Type

EntryType
afdazure front door
epend point
funcfunction app
ogorigin group
originorigin
peprivate endpoint
rgresource group
routeroute
scservice connection
secsecurity policy
snetsubnet
ststorage account
vnetvirtual network
wafweb application firewall policy

ID

The Id is a two digit number, with the first digit representing how it was deployed, and the second being an identifying number.

First DigitDeployed…
0Terraform
1Manually
2User Script

For example, the resource blk-prod-func-battles-12 would be the second function app deployed manually for the ‘battles’ project.

Security

RegulationRequirementDescriptionCompliance
PCI DSS v410.2.1Requires that resource names appearing in audit logs are consistent enough to trace an event to a specific system component.Black Lung naming conventions complete this requirement by utilizing the above convention to achieve log viable consistency.

Microsoft - Define Your Naming Convention
Microsoft - Abbreviation Recommendations for Azure Resources