skip to Main Content

I’m working on a method/program that will automatically name resources according to restrictions and recommended abbrevation.

At the moment I add the restrictions in a table but it’s alot of labor and annoying to maintain. Are there an API I’m missing that would allow me to retreive naming restrictions for resources in Azure?

Currently I’m using below docs:

Naming rules and restrictions for Azure resources
Recommended abbreviations for Azure resource types

2

Answers


  1. Chosen as BEST ANSWER

    Thanks to VenkateshDodda-MSFT:s comment i managed to find this file: AzNamingTool/repository/resourcetypes.json

    This contains what I was searching for. All the rules in one file that I can use to build my logic around.

    Thanks!


  2. Adding as an answer from our comment discussion, We don’t have any REST API to pull the resource naming restriction and recommended abbreviations.

    Alternatively,You can use this Azure naming tool and also you can run this as a standalone container on your local machine that is running with docker or deploy it on azure app service container as well.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search