ProTip - Adding VMWare Integration Host Data to a Management Zone when using host tags

The default behavior when you have a management zone prior to adding these rules is to not show the vmware section.

By adding these management zone entity selector rules it will add VMWare to the management zone.

type("vmware:virtualmachine"),fromrelationship.isSameAs(type("host"),tag("TagKey1:Value1"),tag("TagKey2:Value2"))
type(vmware:vcenter),toRelationship.isChildOf(type(vmware:datacenter),toRelationship.isChildOf(type(vmware:cluster), toRelationship.runsOn(type(vmware:host), toRelationship.runsOn(type(vmware:virtualmachine), fromRelationship.isSameAs(type(HOST), tag("TagKey1:Value1"), tag("TagKey2:Value2"))))))
type(vmware:host),toRelationships.runsOn(type(vmware:virtualmachine),fromrelationship.isSameAs(type("host"),tag("TagKey1:Value1"), tag("TagKey2:Value2")))
type(vmware:cluster), toRelationship.runsOn(type(vmware:host), toRelationship.runsOn(type(vmware:virtualmachine), fromRelationship.isSameAs(type(HOST), tag("TagKey1:Value1"), tag("TagKey2:Value2"))))
type(vmware:datacenter), toRelationship.isChildOf(type(vmware:cluster), toRelationship.runsOn(type(vmware:host), toRelationship.runsOn(type(vmware:virtualmachine), fromRelationship.isSameAs(type(HOST), tag("TagKey1:Value1"), tag("TagKey2:Value2")))))
type("vmware:virtualmachine"),fromrelationship.isSameAs(type("host"),tag("TagKey2:Value2"),tag("TagKey2:Value2"))
type(vmware:cluster), toRelationship.runsOn(type(vmware:host), toRelationship.runsOn(type(vmware:virtualmachine), fromRelationship.isSameAs(type(HOST), tag("TagKey2:Value2"), tag("TagKey2:Value2"))))
type(vmware:datacenter), toRelationship.isChildOf(type(vmware:cluster), toRelationship.runsOn(type(vmware:host), toRelationship.runsOn(type(vmware:virtualmachine), fromRelationship.isSameAs(type(HOST), tag("TagKey2:Value2"), tag("TagKey2:Value2")))))
6 Likes

This is exactly what I’m trying to achieve in our environment. Unfortunately I can’t get your rules working.

- type(vmware:vcenter) = empty result, type(vcenter) = works
- type(vmware:virtualmachine) = empty, type(virtualmachine) = entitySelector Entity selector contains type which does not support management zones

Any help with welcome.