Skip to content

Create consistent naming conventions for resources #1265

@jontreynes

Description

@jontreynes

As a consumer of ResourceModules, I need to be able to create resources that must be globally unique and still maintain idempotency when continuously deploying the resource.

An example resource type can be azure storage account which needs to be a globally unique endpoint as it operates off DNS.

Using the uniqueString function can create a globally unique name.

We should remain consistent in all modules doing something like this

image

where "evhns-" is what is suggested in CAF here
https://docs.microsoft.com/en-us/azure/cloud-adoption-framework/ready/azure-best-practices/resource-abbreviations

and the resourceGroup id is being used as the value to generate a unique string

To find a list of all resources that require a globally unique name, this doc can be useful here
https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions