Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Naming Tool - Org Component Required #75

Closed
sarahjaneclark opened this issue Aug 3, 2022 · 2 comments
Closed

Azure Naming Tool - Org Component Required #75

sarahjaneclark opened this issue Aug 3, 2022 · 2 comments

Comments

@sarahjaneclark
Copy link

Hi, previously in version 1.0 of the naming tool, I opened an issue as I wanted to make the Org component compulsory for all resources. Now I am using version 2.0, how do I apply the same change? -

you can remove the Org component from the "exclude" column in the resources.csv file before you run the tool. If you've already run the tool, you can re-run it and it will pull in your changes to any of the files in the "data" folder.

@sarahjaneclark sarahjaneclark changed the title Azure Naming Tool - Azure Naming Tool - Org Component Required Aug 3, 2022
@BryanSoltis
Copy link
Collaborator

BryanSoltis commented Aug 3, 2022

Hi @sarahjaneclark, V2 uses JSON files for all configurations. This is similar to how V1 used .CSV files, but a more usable format. In the /settings/resourcetypes.json file (if you already have the tool installed), you will see all the resource types and their respective details. Included in those details are "optional" and "exclude" properties. By default, nearly every resource type has "Org" listed in the "exclude" property, per the default settings. This is because we have found that most companies only use an org value in their subscription or management group names.

To manually address your issue, you could edit that file to remove the "Org" value from the "optional" and "exclude" properties for the resource types.

NOTE: Please be sure to be very careful when editing the JSON, as the site requires it to be valid schema to work properly. In the event you have a problem, you can reset the file using the Configuration Page / Resource Types / Configuration Section / Reset functionality to reset the file back to the time of installation.

If you had a specific resource type you wanted to edit, you can do that on the Configuration page by selecting the "Edit" button for the desired resource type, then deselecting "Org" from the exclude and/or optional settings. I'm guessing you want to do this bulk, so editing the file manually may be faster.

We will evaluate adding a bulk, "require component for all resource types" feature to see if it makes sense.

Thank you for the feedback!

@sarahjaneclark
Copy link
Author

This works great, thank you for responding so quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants