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
CodePudding user response:
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.
CodePudding user response:
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!