Skip to content

abymsft/JavaOnAzure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

javaonazure

'Hello World' Spring Boot MVC + Azure WebApps + Linux App Service plan

Prerequisites

  • Azure subscription
  • Basic knowledge of Azure cloud shell
  • Deployed Azure webapp hosted on a linux app service plan
  • Application insight instance linked to the web app
  • A spring mvc app

Dependancies

Reuse the POM.xml file as is for all dependecies. Make sure to change the resource names mentioned under the "azure-webapp-maven-plugin"

Logging DEBUG, INFO and ERROR events for a Linux based Java Azure WebApp/API using application insights

Navigate to controller class

Install the application insights agent to you azure java app.

Download the latest version of the applicationinsights-agent-X.X.X.jar and publish the jar inside the wwwroot folder of your Azure WebApp

Inside java solution, resources folder

App Configuration settings

  • Open the Azure cloud shell and use the below cli command
az webapp config appsettings set -g resroucegroupname -n uniqueappname --settings 'JAVA_OPTS=-javaagent:/home/site/wwwroot/applicationinsights-agent-X.X.X.jar'

'Hello World' WebFlux + Azure WebApps + Windows Service plan (Work In progress)

About

Playing around with Java and Azure WebApps

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published