Cloud platforms
Questions about AWS, Azure, and Google Cloud Platform.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

onboarding azure appservices Tomcat and Java

Saqib_Fayaz
Frequent Guest

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

STEP 1: create environment variables:
  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:

#!/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. 



 

0 REPLIES 0

Featured Posts