# How to troubleshoot OneAgent integration with Azure App Service for Linux and containers.

**URL:** <https://community.dynatrace.com/t/how-to-troubleshoot-oneagent-integration-with-azure-app-service-for-linux-and-containers/43125>\
**Category:** Automations\
**Tags:** integrations, azure\
**Created:** [December 11, 2023, 2:27pm UTC](https://community.dynatrace.com/t/how-to-troubleshoot-oneagent-integration-with-azure-app-service-for-linux-and-containers/43125 "2023-12-11T14:27:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexrp25](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@alexrp25](https://community.dynatrace.com/u/alexrp25)\
**Post date:** [December 11, 2023, 2:27pm UTC](https://community.dynatrace.com/t/how-to-troubleshoot-oneagent-integration-with-azure-app-service-for-linux-and-containers/43125/1 "2023-12-11T14:27:48Z")

</div>

Hello folks, we are integrating an App Service from Azure in Dynatrace however it seems not to be working.

We are following this documentation

> **[Integrate OneAgent on Azure App Service for Linux and containers](https://docs.dynatrace.com/docs/ingest-from/microsoft-azure-services/integrations/azure-appservice/integrate-oneagent-on-web-app-for-containers)**
>
> Learn how to install, configure, update, and uninstall OneAgent in containerized applications on Linux.

Is there any troubleshooting we can follow to solve it?

Please advise,

Alexrp

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [December 11, 2023, 2:55pm UTC](https://community.dynatrace.com/t/how-to-troubleshoot-oneagent-integration-with-azure-app-service-for-linux-and-containers/43125/2 "2023-12-11T14:55:43Z")

</div>

[@alexrp25](https://community.dynatrace.com/user/53629)

What kind of errors are you getting?

---

<div class="post-metadata">

**Author:** ![alexrp25](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@alexrp25](https://community.dynatrace.com/u/alexrp25)\
**Post date:** [December 11, 2023, 7:12pm UTC](https://community.dynatrace.com/t/how-to-troubleshoot-oneagent-integration-with-azure-app-service-for-linux-and-containers/43125/3 "2023-12-11T19:12:11Z")

</div>

Hello Radek

we do not get any explicit error message. It is not reporting in our tenant so we would like to troubleshoot to find out if anything wrong in the configuration.

The documentation mentions that it might occur&nbsp;conflict with Azure Application Insights. This application was instrumented before in Azure Application Insights.

Do you think that might be the case? If so is it possible to have the application reporting both in DT and Azure Application Insights?

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [December 12, 2023, 7:58am UTC](https://community.dynatrace.com/t/how-to-troubleshoot-oneagent-integration-with-azure-app-service-for-linux-and-containers/43125/4 "2023-12-12T07:58:37Z")

</div>

If Azure Application Insights is enabled then turn this feature off before instrumentation. I would still verify the network connections to the AG and from the AG to the DT - to make sure everything is open.

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [December 12, 2023, 11:54am UTC](https://community.dynatrace.com/t/how-to-troubleshoot-oneagent-integration-with-azure-app-service-for-linux-and-containers/43125/5 "2023-12-12T11:54:56Z")

</div>

Hi&nbsp;[@alexrp25](https://community.dynatrace.com/user/53629)

Make sure that you set the environment variable&nbsp;LD\_PRELOAD, which points to the downloaded&nbsp;OA, before starting your application.

![Yosi_Neuman_0-1702382086135.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/8/a8b38af3042470215ee41cf2d413a48326c29766.png)

More information can be found in&nbsp;[Custom image](https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-cloud-platforms/microsoft-azure-services/azure-integrations/azure-appservice/integrate-oneagent-on-web-app-for-containers?_ga=2.109376133.1896047645.1702323338-382542989.1702323338&_gl=1*dq8gvr*_ga*MzgyNTQyOTg5LjE3MDIzMjMzMzg.*_ga_1MEMV02JXV*MTcwMjM4MTYxNS41LjEuMTcwMjM4MTY1Ny4wLjAuMA..#tabgroup--install--custom-image)&nbsp;integration

HTH

Yos

---

<div class="post-metadata">

**Author:** ![alexrp25](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@alexrp25](https://community.dynatrace.com/u/alexrp25)\
**Post date:** [December 12, 2023, 12:50pm UTC](https://community.dynatrace.com/t/how-to-troubleshoot-oneagent-integration-with-azure-app-service-for-linux-and-containers/43125/6 "2023-12-12T12:50:24Z")

</div>

Thank you Radek for the reply. After enabling Dynatrace monitoring is it possible to turn on Application Insights back? Is it possible to have to both monitorings concurrently?

---

<div class="post-metadata">

**Author:** ![jygoman95](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@jygoman95](https://community.dynatrace.com/u/jygoman95)\
**Post date:** [January 10, 2024, 10:35am UTC](https://community.dynatrace.com/t/how-to-troubleshoot-oneagent-integration-with-azure-app-service-for-linux-and-containers/43125/7 "2024-01-10T10:35:49Z")

</div>

We have unsuccefully been trying install OA using the default Linux Azure App Service. We get an exit error code 4. We see the installer-wrapper.sh downloaded the /tmp directory but somehow it fails to install.

---

<div class="post-metadata">

**Author:** ![fstekelenburg](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fstekelenburg/32/22029_2.png) [@fstekelenburg](https://community.dynatrace.com/u/fstekelenburg)\
**Post date:** [January 10, 2024, 8:06pm UTC](https://community.dynatrace.com/t/how-to-troubleshoot-oneagent-integration-with-azure-app-service-for-linux-and-containers/43125/8 "2024-01-10T20:06:35Z")

</div>

[@alexrp25](https://community.dynatrace.com/user/53629),&nbsp;below the answer we received some time ago from a Dynatrace contact, on a similar question. I figured it might be useful to share:

App Insight is often used in development environments and not so much in production environments.

Dynatrace has tested a lot in all kinds of different combinations with OneAgent and AppInsight. The overhead moments are related to Azure App Services issues. Does the customer use Azure App Services and does the customer want to use AppInsight and Dynatrace OneAgent? If so, advice is to test what the overhead is in an acceptance environment  
• without agent,  
• with only AppInsight,  
• with only Dynatrace OneAgent,  
• with both Dynatrace OneAgent and AppInsight.

**In short OneAgent and AppInsights can work in parallel at a certain level, depending on which functionalities are enabled in AppInsight.** This is why we give a warning when it is on. Second is the instrumentation engine, when they use their own profiler. These cannot be used together. So they will have to disable AppInsight .NET profiler. In other words, they don’t have to disable AppInsight completely.
