mspnp / AzureNamingTool

The Azure Naming Tool is a .NET 8 Blazor application, with a RESTful API. The UI consists of several pages to allow the configuration and generation of Azure Resource names. The API provides a programmatic interface for the functionality.
https://aka.ms/azurenamingtool
MIT License
346 stars 721 forks source link

"Orgs" component excluded #78

Closed lucafabbri365 closed 7 months ago

lucafabbri365 commented 7 months ago

Tool version v4.0.0

Describe the bug Why, in the default settings, has the Orgs component been excluded for those resources whose names must be globally unique (e.g. Storage Account)? Wouldn't it be more correct to include it ?

jamasten commented 7 months ago

@lucafabbri365, the configuration is setup this way by default since most global names, like storage accounts and key vaults, have limited character lengths (24; 15 if domain join the storage account). Adding more components leads to names that are too long. There is flexibility in the tool to allow the Org component on any resource you desire. Feel free to update your installation with your desired configuration.

lucafabbri365 commented 7 months ago

Hello @jamasten, I was just wondering if it might be more correct to exclude Units/Depts rather than Orgs; thinking that between the two, the former would increase the chances of unique names (for global resource names).

jamasten commented 7 months ago

@lucafabbri365, in v3.2.0 we added a random string component. That would be the ideal component to use in this scenario.