# Does network zone change require a code module restart?

**URL:** <https://community.dynatrace.com/t/does-network-zone-change-require-a-code-module-restart/37431>\
**Category:** Dynatrace Managed\
**Tags:** dynatrace-managed, network-zones, oneagent\
**Created:** [November 23, 2022, 10:06am UTC](https://community.dynatrace.com/t/does-network-zone-change-require-a-code-module-restart/37431 "2022-11-23T10:06:37Z")\
**Posts on this page:** 9\
**Page:** 1

<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:** [November 23, 2022, 10:06am UTC](https://community.dynatrace.com/t/does-network-zone-change-require-a-code-module-restart/37431/1 "2022-11-23T10:06:37Z")

</div>

When changing network zones, will code modules get the new configuration on the fly, or is a restart required for the monitored applications?

The [Documentation for Network Zones](https://www.dynatrace.com/support/help/setup-and-configuration/network-zones/migration/deploy) states: _Restart OneAgent monitored applications, so that they pick up the new instrumentation._

The [Documentation for Remote Configuration Management](https://www.dynatrace.com/support/help/shortlink/remote-configuration#configure-oneagents) states: _Restarting the injected processes isn’t necessary when changing the network zone assignment._

---

<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:** [January 10, 2023, 3:40pm UTC](https://community.dynatrace.com/t/does-network-zone-change-require-a-code-module-restart/37431/2 "2023-01-10T15:40:02Z")

</div>

I was under the impression that it was just the Oneagent that needed to be recycled since it contains the data for the communication routes with network Zones. Id love some clarity from Dynatrace.

---

<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:** [January 10, 2023, 3:51pm UTC](https://community.dynatrace.com/t/does-network-zone-change-require-a-code-module-restart/37431/3 "2023-01-10T15:51:25Z")

</div>

The code modules connect directly to the ag/cluster though, not to the OneAgent first.

---

<div class="post-metadata">

**Author:** ![bradley\_danyo](https://avatars.discourse-cdn.com/v4/letter/b/e0b2c6/32.png) [@bradley\_danyo](https://community.dynatrace.com/u/bradley_danyo)\
**Post date:** [January 10, 2023, 5:10pm UTC](https://community.dynatrace.com/t/does-network-zone-change-require-a-code-module-restart/37431/4 "2023-01-10T17:10:13Z")

</div>

You will need a OneAgent restart when changing network zones

> **[Deploy network zones (migration)](https://docs.dynatrace.com/docs/manage/network-zones/migration/deploy)**
>
> Find out how to deploy network zones in an existing Dynatrace environment.

---

<div class="post-metadata">

**Author:** ![bradley\_danyo](https://avatars.discourse-cdn.com/v4/letter/b/e0b2c6/32.png) [@bradley\_danyo](https://community.dynatrace.com/u/bradley_danyo)\
**Post date:** [January 10, 2023, 5:16pm UTC](https://community.dynatrace.com/t/does-network-zone-change-require-a-code-module-restart/37431/5 "2023-01-10T17:16:06Z")

</div>

You don’t need to do any process restart but you will need to restart OneAgent service for changes to take effect.&nbsp; Generally speaking, it shouldn’t be necessary to restart application after starting OneAgent service.

---

<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:** [January 10, 2023, 5:16pm UTC](https://community.dynatrace.com/t/does-network-zone-change-require-a-code-module-restart/37431/6 "2023-01-10T17:16:31Z")

</div>

That is the same documentation I linked above, the second documentation link says something else though, thus the questions 😉

---

<div class="post-metadata">

**Author:** ![bradley\_danyo](https://avatars.discourse-cdn.com/v4/letter/b/e0b2c6/32.png) [@bradley\_danyo](https://community.dynatrace.com/u/bradley_danyo)\
**Post date:** [January 10, 2023, 5:23pm UTC](https://community.dynatrace.com/t/does-network-zone-change-require-a-code-module-restart/37431/7 "2023-01-10T17:23:02Z")

</div>

Hi,

Yes, please see my below comment

Thanks

---

<div class="post-metadata">

**Author:** ![jegron](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jegron/32/12797_2.png) [@jegron](https://community.dynatrace.com/u/jegron)\
**Post date:** [January 10, 2023, 6:16pm UTC](https://community.dynatrace.com/t/does-network-zone-change-require-a-code-module-restart/37431/8 "2023-01-10T18:16:21Z")

</div>

Regarding HostGroup it is apply - from a GUI point of view - to host and process without an application restart. But in documentation it is clearly mentioned that OA service AND&nbsp;all the monitored services restart is needed ([OneAgent configuration via command-line interface — Dynatrace Docs](https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-oneagent/oneagent-configuration-via-command-line-interface#host-groups)).

Maybe Dynatrace team could clarify documentation and this GUI Remote Configuration Management message (same for HostGroup and Network Zone) and explain why an application restart could be needed :

 ![nirlya_0-1673371515619.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/7/374fec76d084916a8695dfb93cfb9f91f133605a.png)

---

<div class="post-metadata">

**Author:** ![JeroenHautekeete](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@JeroenHautekeete](https://community.dynatrace.com/u/JeroenHautekeete)\
**Post date:** [April 28, 2026, 3:06pm UTC](https://community.dynatrace.com/t/does-network-zone-change-require-a-code-module-restart/37431/9 "2026-04-28T15:06:53Z")

</div>

From my experience, the restart is required to load the new settings:  
- hostgroups: this changes processgroup and serviceids -- as long as the process is not restarted, context for observability metrics will not be aligned with the new topology.  
- networkZones (fullstack):&nbsp; codemodules operate independently from the OneAgent OS monitoring process. As long as the new networkzone config isn’t reloaded, the code module might send out its signals along a sub-optimal path.
