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
308 stars 604 forks source link

Missing resource names/short names for Container Apps and Container Apps Environment. #37

Closed omon77 closed 7 months ago

omon77 commented 8 months ago

Tool version v3.1.1

Describe the bug Missing some of the resource types and their abbreivations, specifically Container Apps and Container Apps Environments.

Resource | Resource provider namespace | Abbreviation -- | -- | -- Container apps | Microsoft.App/containerApps | ca Container apps environment | Microsoft.App/managedEnvironments | cae

To Reproduce N/A

Expected behavior

Screenshots N/A

Installation Method N/A

Additional context Please see this for reference: https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/ready/azure-best-practices/resource-abbreviations

jamasten commented 7 months ago

@omon77 we have added this to our backlog and will add these in a future update. Thanks!

cyrilzhouibo commented 1 month ago

Has this been fixed? I can't find Container apps in V 4.2.0

I can find the naming rule for container app here: https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.ContainerApp.Name/

I can't find the one for Container apps environment.

I imported the followings according to the new Container Apps Environment UI:

{
    "Resource": "Microsoft.App/containerApps",
    "Optional": "UnitDept",
    "Exclude": "Org,Function",
    "Property": "",
    "ShortName": "ca",
    "Scope": "resource group",
    "LengthMin": "2",
    "LengthMax": "32",
    "ValidText": "Lowercase letters, numbers, and hyphens. Start with lowercase letter.  End with lowercase letter or number",
    "InvalidText": "",
    "InvalidCharacters": "",
    "InvalidCharactersStart": "",
    "InvalidCharactersEnd": "",
    "InvalidCharactersConsecutive": "",
    "Regx": "^[a-z][a-z0-9-]{2,30}[a-z0-9]$",
    "StaticValues": "",
    "Enabled": true,
    "ApplyDelimiter": true
},
{
    "Resource": "Microsoft.App/managedEnvironments",
    "Optional": "UnitDept",
    "Exclude": "Org,Function",
    "Property": "",
    "ShortName": "cae",
    "Scope": "region",
    "LengthMin": "2",
    "LengthMax": "60",
    "ValidText": "Alphanumerics and hyphens.",
    "InvalidText": "",
    "InvalidCharacters": "",
    "InvalidCharactersStart": "",
    "InvalidCharactersEnd": "",
    "InvalidCharactersConsecutive": "",
    "Regx": "^[a-zA-Z0-9-]{2,60}$",
    "StaticValues": "",
    "Enabled": true,
    "ApplyDelimiter": true
}