Microsoft Azure Open Source Development Support Team Blog

Support for Open Source Technologies on Microsoft Azure App Service

Accessing storage blob using SAS with Java

    In order to access your storage blob using SAS with Java, please follow below steps –   1. Configure the SAS access service in your Blob for your storage account. Navigate to Shared access signature setting as shown below –   2. Copy the Blob Service SAS URL. (This is required to access… Read more

Profiling Java process on Azure web apps

There are certain situations when your Java web application is not performing as you expect it to. To understand where the problem lies, you may need to profile your application and understand its behavior for different flows. Azure App Service environment being a sandbox environment, does not support to install JProfiler and not even expose… Read more

Running java jar file to serve web requests on Azure App Service Web Apps

There are several Java web servers that are supported on Azure App Service Web Apps. But if you have custom code built into a jar which allows it to act as web server, you can accomplish that as well. This blog talks about how we can achieve that. You can accomplish this with any web… Read more

Custom deployment folder on Azure Web Apps with Git

Sometimes you don’t want to deploy your application in the default webapps directory when deploying from GitHub (continuous deployment) on Azure webapp. You can do this in 2 ways – 1. Use the SCM_TARGET_PATH to set your path which can be absolute or relative to the D:\home\site path.       2. Create two files in… Read more

Configure log4j along with log rotation on Tomcat Web App in Azure App Service

  On Azure App Service Web App deployed with Tomcat (from marketplace), the default logger is set to java.util.logging. If your application is setup with log4j, then you will need to make some changes for it to work. You can use log4j to rotate your logs as well upto the minute. Here is how you… Read more

Use custom context for Azure Tomcat application

Sometimes, you don’t want to deploy your application in the default deployment folder for your Java webapp on Azure env. One of the best examples could be while using the Git deployment. In that case your deployment gets copied to wwwroot folder and Tomcat checks the deployments in the webapps folder, so you might want to… Read more

Setting environment variable and accessing it in Java program on Azure webapp

Sometimes, you want to set new environment variable and want to access it in your Java Program. You can do this by setting up the value in JAVA_OPTS either in web.config or in webapps App Setting. 1. In web.config – <httpPlatform processPath=”%AZURE_TOMCAT7_HOME%\bin\startup.bat” arguments=””> <environmentVariables> <environmentVariable name=”JAVA_OPTS” value=”-DmyNewEnvVar=Wow” /> </environmentVariables> </httpPlatform >   2. In App Setting… Read more

Upload a service certificate to Azure VM using Azure SDK Java code

If you want to programmatically upload a service certificate to the Azure VM without remotely logging into the VM, you can use the following Java program template to achieve it. This is useful when you want to upload multiple certificate at same time and do not want to do it manually. Prerequisite – Azure sdk… Read more

Accessing the Tomcat manager console on Azure Java webapp

If we want to manage different applications deployed on Tomcat server, we will require to setup the access to Tomcat admin console. This can be done if you are using the Marketplace Tomcat server or if you are uploading your custom version of Tomcat server. To check how can you use Marketplace tomcat and custom Tomcat version… Read more

Taking a crash dump of node/java process using the procdump on Azure WebApp

Azure provides built-in diagnostics to assist with debugging Web Applications hosted in Azure App Service Web Apps. In this article, you will learn how to enable procdump to further troubleshoot intermittent node/java process crash issues.  We can analyze the process dump using Visual Studio to understand the root cause of the issue. Please follow below list of… Read more