Custom view based on vSphere tags in vROps

Following up on my last blog about creating custom access based on Active Directory group membership in vROps, I had another interesting case for a custom view based on vSphere tags. This time I had a request from a customer who wanted to have a read-only overview of all virtual machines that belong to a specific department. All other vROps dashboards and features should be hidden.

To do this, you need to define and set tags and categories on you vSphere objects first. I assume you already using tags so I will skip this part. To display objects that have a specific tag assigned in a custom dashboard, you need to create a custom view based on vSphere tags first.

Create custom view

  1. Log in to vROps user interface as the admin user and navigate to Content -> Views. Click the green plus sign to create a new view.view based on vSphere tags – 01
  2. Enter a name and description. Go to Presentation.
  3. Select List and change the number items per page if necessary.view based on vSphere tags – 02
  4. Next, go to Subjects Select Virtual Machine as the subject.view based on vSphere tags – 03
  5. Click on the Filter button and configure the following criteria: Properties | Summary | vSphere Tag | is | <vSphere_tag> view based on vSphere tags – 04
  6. In my case, the tag is called: HR.
  7. Proceed to the Data pane on the left-bottom. From the second drop-down menu select Properties and double-click the vSphere Tag from the list to add it to the data pane. Provide a metric label and select desired sort order in the configuration pane.view based on vSphere tags – 05
  8. Select Visibility and make the view available for dashboards, reports templates, and details tab.
  9. Click Save.

The custom view is now ready to be used in a custom dashboard.

Create custom dashboard

  1. Go to Dashboards and click the green plus button to create a new custom dashboard.
  2. Enter a name and description. Leave the default option to No.
  3. Select the View widget from the list and drag it to the left pane. Resize if necessary.view based on vSphere tags – 06
  4. Edit the widget by clicking the pencil icon. Change the title accordingly, set Self Provider to On. Select the vCenter Server object from the list on the left and enter select the View created earlier. You can filter the views list by name.view based on vSphere tags – 07
  5. Click Save. The list should be populated with all objects that have the specific tags assigned in vCenter Server.
  6. Don’t configure any Widget or Dashboard interactions.
  7. Click Save.

Assign custom dashboard to a group

  1. Click the gear icon on the Dashboards page and select Share Dashboards.
  2. Select and drag the custom dashboard created earlier to a group in the left pane. Click Save.

Test the view

Log in to vROps as a member of the group configured in the previous step and verify if the custom dashboard is the only one available.

That’s it! You can, of course, extend this view to display more information. Or reconfigure the custom dashboard to show more information about the objects.


– Marek.Z

Be the first to comment

Leave a reply...