# onboarding azure appservices Tomcat and Java

**URL:** <https://community.dynatrace.com/t/onboarding-azure-appservices-tomcat-and-java/55831>\
**Category:** Cloud platforms\
**Tags:** installation, azure, oneagent, apache\
**Created:** [May 7, 2026, 6:55am UTC](https://community.dynatrace.com/t/onboarding-azure-appservices-tomcat-and-java/55831 "2026-05-07T06:55:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saqib\_Fayaz](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@Saqib\_Fayaz](https://community.dynatrace.com/u/Saqib_Fayaz)\
**Post date:** [May 7, 2026, 6:55am UTC](https://community.dynatrace.com/t/onboarding-azure-appservices-tomcat-and-java/55831/1 "2026-05-07T06:55:43Z")

</div>

Hello community,  
i am trying to onboard linux appservices with tomcat and java stack.  
as i followed the documentation:

STEP 1: create environment variables:  
&nbsp; DT\_API\_TOKEN=“token” \ DT\_INCLUDE=“java” \  
START\_APP\_CMD=“/home/site/deployments/CustomSetup.sh”

STEP 2: Create a startup script file at /home/startup.sh

STEP 3: In the Azure Portal, go to Configuration → General settings → Startup Command and set: /home/startup.sh

Step 4: Restart App twice

contents of Step 2 of the process is below:

```auto
#!/bin/sh

readonly installerWrapperInstallationPath=/tmp/installer-wrapper.sh
readonly installerWrapperURL=https://internalstorage/oneagent-installer.sh (location at which client has saved the installer)

wget -O $installerWrapperInstallationPath -q $installerWrapperURL
sh $installerWrapperInstallationPath

```

i follow this and it didnt crash the application but there was no oneagent installed at all.
