Grouping Expression based upon Tags

Business categorization for your virtual environment

Grouping Expression based upon Tags

Veeam Logoby jimmymc » Wed Mar 04, 2015 11:41 am

Hi All

Quick, and potentially daft question - fairly new to Business View.

We have our VMs in a folder structure like:

CustomerA\Department1\
CustomerA\Department2\
CustomerA\Department3\

There are VMs at each level - even at the CustomerA level.

I wanted to create a BV group that contains all the VMs from all the folders under CustomerA, but I don't think I can do that easily.. certainly not using folders in the grouping expression (as I understand it).

After reading a few posts, I think tags might be the way forward (although I don't like this idea, as it's easier for a tech to forget to add a tag to a VM than it is to put it in the correct folder).

In vCenter; I've created category 'CustomerA VMs', and the tag 'CustomerA' which I've added to all the VMs in the above folders.

Could someone point me in the right direction as to use? I'm not quite sure on the syntax for this. When I double-click 'Tag', while creating the expression for example, it inserts 'Tag("vSphere Tag category")' - are we talking tag category or tag name here?

Thanks, James
jimmymc
Service Provider
 
Posts: 29
Liked: 3 times
Joined: Thu Dec 09, 2010 3:06 pm

Re: Grouping Expression based upon Tags

Veeam Logoby Vitaliy S. » Wed Mar 04, 2015 2:23 pm

Hi Jimmy,

Yes, you can use tags, however did you try to use static rules for categorization? In other words, if you use static rule and point it to Department 1, this rule will create a corresponding BV group for this folder.

Thanks!
Vitaliy S.
Veeam Software
 
Posts: 19564
Liked: 1104 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: Grouping Expression based upon Tags

Veeam Logoby hyaman » Fri Apr 10, 2015 10:46 pm 1 person likes this post

Hi James,

The syntax is as the following: 'Tag("vSphere Tag category")' = VMware Tag categories. the full syntax as an exmple from my lab:
CASE
WHEN Tag("SLA_Cat") = "Gold_SLA" THEN "Gold_SLA"
WHEN Tag("SLA_Cat") = "Silver_SLA" THEN "Silver_SLA"
WHEN Tag("SLA_Cat") = "Bronze_SLA" THEN "Bronze_SLA"
ELSE "Other"
END

hope this help.
HY.
hyaman
Veeam Software
 
Posts: 64
Liked: 5 times
Joined: Fri Mar 06, 2015 1:01 am
Location: Sydney
Full Name: Hal Yaman


Return to Business View



Who is online

Users browsing this forum: No registered users and 2 guests