Install the Java agent on Azure WebApp
- Create a new directory under APP_HOME/WEB-INF/lib named site24x7.
- Extract the ZIP file to the new directory created to find the agent's JAR file and its configuration files.
- Configure the properties such as license key, application name and port in the apminsight.conf file located in the extracted folder.
- Bundle your application and deploy it in Azure WebApp service.
- Finally, add the below JVM argument in App Settings under Settings of your WebApp. Refer to screenshot.
- If you are using the Tomcat server, please add Key "CATALINA_OPTS" and value as
-javaagent:D:/home/site/wwwroot/webapps/{APP_NAME}/WEB-INF/lib/site24x7/apminsight-javaagent.jar
- If you are using the Jetty server, please add Key "JAVA_OPTIONS" and value as
-javaagent:D:/home/site/wwwroot/webapps/{APP_NAME}/WEB-INF/lib/site24x7/apminsight-javaagent.jar
- If you are using the Tomcat server, please add Key "CATALINA_OPTS" and value as
- Restart your Webapp once for changes to take effect.