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

**URL:** <https://community.dynatrace.com/t/protip-adding-vmware-integration-host-data-to-a-management-zone-when-using-host-tags/48003>\
**Category:** Dynatrace Tips\
**Tags:** management-zones, tagging, hosts-classic, tips-and-tricks, vmware\
**Created:** [September 26, 2024, 5:34pm UTC](https://community.dynatrace.com/t/protip-adding-vmware-integration-host-data-to-a-management-zone-when-using-host-tags/48003 "2024-09-26T17:34:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GilesDay](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gilesday/32/35068_2.png) [@GilesDay](https://community.dynatrace.com/u/GilesDay)\
**Post date:** [September 26, 2024, 5:34pm UTC](https://community.dynatrace.com/t/protip-adding-vmware-integration-host-data-to-a-management-zone-when-using-host-tags/48003/1 "2024-09-26T17:34:46Z")

</div>

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.

```markup
type("vmware:virtualmachine"),fromrelationship.isSameAs(type("host"),tag("TagKey1:Value1"),tag("TagKey2:Value2"))

```

```markup
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"))))))

```

```markup
type(vmware:host),toRelationships.runsOn(type(vmware:virtualmachine),fromrelationship.isSameAs(type("host"),tag("TagKey1:Value1"), tag("TagKey2:Value2")))

```

```markup
type(vmware:cluster), toRelationship.runsOn(type(vmware:host), toRelationship.runsOn(type(vmware:virtualmachine), fromRelationship.isSameAs(type(HOST), tag("TagKey1:Value1"), tag("TagKey2:Value2"))))

```

```markup
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")))))

```

```markup
type("vmware:virtualmachine"),fromrelationship.isSameAs(type("host"),tag("TagKey2:Value2"),tag("TagKey2:Value2"))

```

```markup
type(vmware:cluster), toRelationship.runsOn(type(vmware:host), toRelationship.runsOn(type(vmware:virtualmachine), fromRelationship.isSameAs(type(HOST), tag("TagKey2:Value2"), tag("TagKey2:Value2"))))

```

```markup
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")))))

```

---

<div class="post-metadata">

**Author:** ![gschramm](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gschramm/32/27895_2.png) [@gschramm](https://community.dynatrace.com/u/gschramm)\
**Post date:** [April 9, 2025, 3:09pm UTC](https://community.dynatrace.com/t/protip-adding-vmware-integration-host-data-to-a-management-zone-when-using-host-tags/48003/2 "2025-04-09T15:09:31Z")

</div>

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.
