# Oneagent uses two ActiveGates in Azure

**URL:** <https://community.dynatrace.com/t/oneagent-uses-two-activegates-in-azure/45829>\
**Category:** Open Q&A\
**Tags:** installation, activegate, azure, oneagent\
**Created:** [May 30, 2024, 8:38am UTC](https://community.dynatrace.com/t/oneagent-uses-two-activegates-in-azure/45829 "2024-05-30T08:38:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rickvanwijk](https://avatars.discourse-cdn.com/v4/letter/r/d26b3c/32.png) [@Rickvanwijk](https://community.dynatrace.com/u/Rickvanwijk)\
**Post date:** [May 30, 2024, 8:38am UTC](https://community.dynatrace.com/t/oneagent-uses-two-activegates-in-azure/45829/1 "2024-05-30T08:38:58Z")

</div>

Hi there,

We’ve deployed multiple OneAgents and two ActiveGates in Azure. Our deployment setup looks like this:

- The activegates are deployed on two separate vm’s (namely an acc server and a prod server) in the same subnet, logically they have different ip addresses.

- The OneAgents installations on the vm’s are also separated by an acceptance and production stage. It’s good to know that we’ve installed the OneAgent on the VM via VM Extensions offered by Microsoft. In the configuration of the Extension you can add the endpoint to which the OneAgent sends the logs. The acc VM’s are logging to the acc ActiveGate and the prod vm’s are logging to the prod ActiveGate.

The weird thing is, I can see in the Dynatrace gui that the OneAgents are logging to both (or at least connected to both ActiveGates) ActiveGates. But how is this possible? Seeing as we are hardcoding the IP addresses into the VM Extension configuration, I’m really confused as to how and why this is happening.

Could someone clarify this to me?

Thanks!

---

<div class="post-metadata">

**Author:** ![Eric\_Yu](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/eric_yu/32/20360_2.png) [@Eric\_Yu](https://community.dynatrace.com/u/Eric_Yu)\
**Post date:** [May 30, 2024, 7:29pm UTC](https://community.dynatrace.com/t/oneagent-uses-two-activegates-in-azure/45829/2 "2024-05-30T19:29:20Z")

</div>

You might wanna look into configuring Network Zones if you want to encourage the OneAgent to take a specific ActiveGate to route its traffic. [Network zones — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/network-zones)

However, the agent is going try to send the data to the Dynatrace Cluster by any means necessary, you can try checking the communication endpoints for your hosts using the oneagentctl:&nbsp;[OneAgent configuration via command-line interface — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/oneagentctl#show-current-communication-endpoints)

Hope it helps.
