VMware Cloud Community
ronnysteiner1
Contributor
Contributor

create rules based on vSphere tags?

Hi there,

I'd like to create mapping rules to customers based on vSphere tags. I couldn't find vSphere tags as an object type in the rule creator.

Is there a way to use vSphere tags to map VMs to customers? If not, I'd encourage the devs of UM to put this feature on your list of feature requests.

regards,

Ronny

Reply
0 Kudos
5 Replies
vinayag
VMware Employee
VMware Employee

Hi Ronny,

In Usagemeter, Rules could be mapped to Customer based on the vsphere/host.

Steps to follow

1. Click Rules in the top right menu bar of the Web application.

2. Select a customer.

3. In your vSphere inventory tree, select the 'Object Type' as "host".

Note: This will select all the hosts in the vCenter Server. If you want to select the specific host, please select the individual host.

4. Click Create.

Hope, this will help you.

Note

  • On the Mapped Virtual Machines tab, view a list of virtual machines that have rules associated with them for a particular customer.

Thanks,

Vinayaga.

Thanks, Vinayaga.
Reply
0 Kudos
ronnysteiner1
Contributor
Contributor

Hi Vinayaga,

I know that I can create rules to map customers based on a host/folder/resource pool, etc.

But what I need is a rule which maps VMs based on specific vSphere tags to a customer.

I think this is not possible today with UM 3.6.x

regards,

Ronny

Reply
0 Kudos
vinayag
VMware Employee
VMware Employee

Hi Ronny,

You are correct, currently in UM 3.6.x Rules can't be directly mapped with the tags created in the vSphere Web Client.

Thanks,

Vinayaga.

Thanks, Vinayaga.
Reply
0 Kudos
pic
VMware Employee
VMware Employee

Ronnysteiner1,

Most of our SPs use a naming convention on their datacenters/clusters/folders/VM names/etc to make it simple for rule creation in Usage Meter.  Can you describe your use case here?

Reply
0 Kudos
leri
Contributor
Contributor

  1. On the Rule Set page, add or edit a tag-based rule:
    • To add a rule, click the Add tag-based rule button.
    • To modify an existing rule, select the rule and click the Modify rule icon.
  2. Specify a category.
  3. Make a tag selection or edit an existing selection.

hope this help.

____________________________________________________________________

FaceTime

Reply
0 Kudos