# Auto tags and Management zone

**URL:** <https://community.dynatrace.com/t/auto-tags-and-management-zone/36015>\
**Category:** Open Q&A\
**Tags:** management-zones, tagging\
**Created:** [July 27, 2022, 11:38am UTC](https://community.dynatrace.com/t/auto-tags-and-management-zone/36015 "2022-07-27T11:38:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthimahadevan](https://avatars.discourse-cdn.com/v4/letter/k/ea666f/32.png) [@karthimahadevan](https://community.dynatrace.com/u/karthimahadevan)\
**Post date:** [July 27, 2022, 11:38am UTC](https://community.dynatrace.com/t/auto-tags-and-management-zone/36015/1 "2022-07-27T11:38:58Z")

</div>

We have many Management zones.&nbsp;  
I want all of my services and process groups to have a tag with management zone value.

How do I achieve this?

We create a management zone via ansible roles.&nbsp;  
Should we call autoTag API while creating the MZ?&nbsp;  
Or is there any way to import the property ( management zone) as an auto-tagging capability?&nbsp;  
Like we can assign K8 namespace as an auto tag to services/process groups.

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [July 27, 2022, 1:13pm UTC](https://community.dynatrace.com/t/auto-tags-and-management-zone/36015/2 "2022-07-27T13:13:55Z")

</div>

You can’t add your own placeholders unfortunately, so you would have to add that in ansible.

Either by adding tagging rules with the static value, or by using the manual tagging API.

---

<div class="post-metadata">

**Author:** ![sorin\_zaharov](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sorin_zaharov/32/5392_2.png) [@sorin\_zaharov](https://community.dynatrace.com/u/sorin_zaharov)\
**Post date:** [July 29, 2022, 1:17pm UTC](https://community.dynatrace.com/t/auto-tags-and-management-zone/36015/3 "2022-07-29T13:17:35Z")

</div>

Tagging rules seems to be the best way to go here. This way you make sure the tags are not deleted by mistake.

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [August 1, 2022, 12:36pm UTC](https://community.dynatrace.com/t/auto-tags-and-management-zone/36015/4 "2022-08-01T12:36:10Z")

</div>

As of today you cannot provide the Management Zone as a variable for tagging results. We have a similar use case where we want to Tag entities with the associated Management Zone to also catch hosts that were onboarded outside of our standard.

I have an RFE out for it:&nbsp;[https://community.dynatrace.com/t5/Dynatrace-product-ideas/Ability-to-set-Management-Zone-as-tag-value/idi-p/165301](https://community.dynatrace.com/post/165301)
