# Add OneAgent to Azure Linux web app Service running code directly from a ZIP package

**URL:** <https://community.dynatrace.com/t/add-oneagent-to-azure-linux-web-app-service-running-code-directly-from-a-zip-package/46491>\
**Category:** Cloud platforms\
**Tags:** azure, app-functions\
**Created:** [July 7, 2024, 12:06pm UTC](https://community.dynatrace.com/t/add-oneagent-to-azure-linux-web-app-service-running-code-directly-from-a-zip-package/46491 "2024-07-07T12:06:45Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [July 7, 2024, 12:06pm UTC](https://community.dynatrace.com/t/add-oneagent-to-azure-linux-web-app-service-running-code-directly-from-a-zip-package/46491/1 "2024-07-07T12:06:45Z")

</div>

Hi guys,

Prospect deploy their node.js&nbsp;[code from zip package](https://learn.microsoft.com/en-us/azure/app-service/deploy-run-package)&nbsp;on Linux web app.

There is no startup command (pm2…) that we can hook on the OA download and set the LD\_PRELOAD ([link](https://docs.dynatrace.com/docs/shortlink/web-app-containers#integrate-dynatrace-using-a-startup-scriptcommand)).

We see in the web app log that its use docker run to start the application but there is no deploy command that we can add the OneAgent ([link](https://docs.dynatrace.com/docs/shortlink/web-app-containers#layer)) with.

Any suggestion how to add OA in this case

Thanks for any input

Yos

---

<div class="post-metadata">

**Author:** ![g\_kat](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/g_kat/32/34573_2.png) [@g\_kat](https://community.dynatrace.com/u/g_kat)\
**Post date:** [July 8, 2024, 8:29am UTC](https://community.dynatrace.com/t/add-oneagent-to-azure-linux-web-app-service-running-code-directly-from-a-zip-package/46491/2 "2024-07-08T08:29:06Z")

</div>

Hi Yosi,

Maybe you could try setting LD\_PRELOAD as an environment variable in the App Service level with the value of&nbsp; **/opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so**. This is where the installer places the library to be loaded. Then, in the custom startup script add a command to restart the node.js server and see if the OA gets picked up.

Regards,

George

---

<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:** [July 8, 2024, 6:27pm UTC](https://community.dynatrace.com/t/add-oneagent-to-azure-linux-web-app-service-running-code-directly-from-a-zip-package/46491/3 "2024-07-08T18:27:04Z")

</div>

Hi&nbsp;[@g\_kat](https://community.dynatrace.com/user/34133)

We have tried that with no success&nbsp;🤔

Any other suggestions ?

Thanks in advance

Yos

---

<div class="post-metadata">

**Author:** ![g\_kat](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/g_kat/32/34573_2.png) [@g\_kat](https://community.dynatrace.com/u/g_kat)\
**Post date:** [July 9, 2024, 9:53am UTC](https://community.dynatrace.com/t/add-oneagent-to-azure-linux-web-app-service-running-code-directly-from-a-zip-package/46491/4 "2024-07-09T09:53:14Z")

</div>

Hi Yosi,

I don’t have any other ideas besides that.

I guess you can SSH into the App and check whether the wrapper is downloaded correctly, this will confirm that the startup script works at least, since I have found the App logs insufficient at best.

Regards,

George
