We are trying to have a dynamic constrained in a cloud template.
Is it possible to exclude a tag key (category) as a constrianed.
- tag: !vegetables
- tag: vegetables: oranges (yes I know... )
So a constraint would be, or the resources tagged with vegatbles:oranges , or the resources not tagged with any vegetables tag
What would be the right solution for this ?
Hi, yes. As you can see in the documentation (https://docs.vmware.com/en/vRealize-Automation/8.0/Using-and-Managing-Cloud-Assembly/GUID-C8C335F4-9...), you can use:
You can add a "deny" symbol at the beginning, then the key, and optionally you can add a value, and hard|soft modifier. By default, tags are "hard" which means "or tag or error". "Soft" means "if has the tag, the better".
Oh, sorry. I misunderstand your question. Do you want to exclude any tag value for a given tag key...
I've tried some options but I've couldn't find a way to do that.
I want a constraint defined that a certain tag cannot be used as a capacity tag.
you could achieve this using below
take an input variable and whose value comes from external vRO action .
Map that variable to constraint tag
you can handle the logic in vRO to skip or provide default value for that variable .