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

Using wildfly-swarm on Azure App Service

This blog is for the customers who wants to use wildfly-swarm container which is the reconstitution of the popular WildFly Java Application Server. As you know you can bring your own customized version of Tomcat and Jetty containers are described in the blog – On similar lines, you can use the wildfly-swarm by adding… 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

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

Executing Java Web Jobs on Azure

To execute the Java web jobs on Azure, follow the below steps :   1. Open Eclipse and create a Java Project and Java program for your application in your eclipse workspace.   2. After creating your application, create a batch file with following text –                   set PATH=%PATH%;%JAVA_HOME%/bin                java <Your Main Class name> 3. Bundle… Read more