microsoft / CloudAdoptionFramework

Code samples and extended documentation to support the guidance provided in the Microsoft Cloud Adoption Framework
https://aka.ms/CAF
Creative Commons Attribution 4.0 International
864 stars 621 forks source link

Exclusion of component not working #95

Closed iamjatingohil closed 1 year ago

iamjatingohil commented 2 years ago

Under windows VM resource type i have excluded some components like Environment, location, Project. But when i try to generate name it throws an error that such components are required.

Error Message: You must supply the required components. ResourceProjAppSvc value was not provided. ResourceInstance value was not provided.

iamjatingohil commented 2 years ago

image image

BryanSoltis commented 2 years ago

Hi @iamjatingohil,

Thank you for your feedback. The issue you are seeing is most likely due to multiple resource types having the same "short name" value. In your case, both the "Compute/virtualMachines - Windows" and "Compute/virtualMachines - Linux" resource types both have "vm" as the short name. The Generate page cannot distinguish between the two and is picking the "Linux" version and applying its "Optional/Excluded" configuration to the name generation.

We are aware of the problem and already have a fix ready to deploy. We will be publishing a new version of the tool in the next couple of weeks that will resolve this. In the meantime, you could do one of the following to get around the problem:

or

In the end, our fix will resolve this issue. Thank you again for your feedback!

BryanSoltis commented 2 years ago

To clarify, our upcoming fix WILL allow for duplicate names with resource types. Hope this helps!