Business categorization for your virtual environment
Post Reply
TimeKnight
Enthusiast
Posts: 27
Liked: never
Joined: Jan 19, 2012 3:35 pm
Full Name: Brian Weinberg
Contact:

Tags Grouping Expression when VM’s have multiple tags

Post by TimeKnight » Feb 08, 2017 4:56 pm

I am try to create groups based on the administrator of a VM. I have a category of tags called “VM Admin” and each VM is tagged with its Administrator. Here is my grouping expression:
CASE
WHEN Tag("VM Admin") = "Andy" THEN "Andy"
WHEN Tag("VM Admin") = "John" THEN "John"
WHEN Tag("VM Admin") = "Craig" THEN "Craig"
WHEN Tag("VM Admin") = "Brian" THEN "Brian"
ELSE "Unknown Admin"
END

My groups are all populated nicely except when a VM that has two administrator, because it then has two “VM Admin” tags. I would like to have the VM listed in both (or somethings three) administrators list. Is there a way to do this?
BTW I am using VeeamOne 9.5 update 1

Thanks,
Brian

Shestakov
Veeam Software
Posts: 6165
Liked: 545 times
Joined: May 21, 2014 11:03 am
Full Name: Nikita Shestakov
Location: Prague
Contact:

Re: Tags Grouping Expression when VM’s have multiple tags

Post by Shestakov » Feb 09, 2017 3:03 pm

Hello Brian,
There is "IndexOf" method which searches for the value in the string(analog of "contains"). I would either try using this or just create static groups with simple rules instead of dynamics, since they will be sufficient for your case.
Thanks!

Vitaliy S.
Veeam Software
Posts: 21861
Liked: 1318 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Tags Grouping Expression when VM’s have multiple tags

Post by Vitaliy S. » Feb 09, 2017 3:36 pm

VMs cannot belong to the different groups at the same time within the same category, it is currently by design. In your case, it seems like another category will be required. Thanks!

Shestakov
Veeam Software
Posts: 6165
Liked: 545 times
Joined: May 21, 2014 11:03 am
Full Name: Nikita Shestakov
Location: Prague
Contact:

Re: Tags Grouping Expression when VM’s have multiple tags

Post by Shestakov » Feb 11, 2017 9:16 pm

Vitaliy is correct, we are going to eliminate the restriction in future versions though.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest