Microsoft Azure Open Source Development Support Team Blog

Support for Open Source Technologies on Microsoft Azure App Service

Debugging Node.js apps on Azure App Services

A large part of software development involves troubleshooting. Logging is one of the mechanisms that is used to make it easier to enables the developers to see what the code is really doing. Therefore, It is necessary to have the proper logging to troubleshoot the issues faster , which otherwise will become nearly impossible to… Read more

Configure WordPress Database Connection on Azure App Services

Configure WordPress Database Connection on Azure App Services For WordPress sites hosted on Azure App Services, there are two ways to configure database connection in wp-config.php. When you modify database connection for WordPress, verify the connection from wp-config.php. 1. Current WordPress installed on Azure App Services pull database connection information from hosting environment- code in… Read more

Change PHP_INI_SYSTEM configuration settings

PHP_INI_SYSTEM level settings cannot be changed from .user.ini or ini_set function. To make change for PHP_INI_SYSTEM settings on Azure web app, follow the steps, 1. Add an App Setting to your Web App with the key PHP_INI_SCAN_DIR and value d:\home\site\ini 2. Create an settings.ini file using Kudu Console (http://<site-name> in the d:\home\site\ini directory. 3. Add… Read more

Adding SSH support to Asp.Net Core Docker Container created in Visual Studio 2017

When creating a Docker container used in Azure App Service Web App for Containers, a common requirement is to add SSH support so that we can log into the application container from the Kudu console. There are various different methods to make this work and the general process is documented here: . This blog… Read more

Run PHP Webjob on Azure App Service (Windows)

When you deploy a webjob to run PHP program, there are few items to verify and help to understand the PHP runtime for webjobs. 1. How to create a PHP webjob – Execute a .php file – Create batch to execute .php file – Create shell to execute .php file 2. PHP runtime for webjob is difference… Read more

Setup SMTP in Drupal 8 on Azure Webapp

Example of setup SMTP in Drupal 8 using O365 SMTP server for the Drupal8 site hosted on Azure Webapp: 1.Download smtp module 8.x-1.x-dev from 2.Extract “smtp-8.x-1.x-dev” and copy “smtp” folder to “D:\home\site\wwwroot\modules” 3.Login as Drupal admin, find Extend -> MAIL->SMTP Authentication Support, check it and click install 4.Configure SMTP module, find Configuration -> SYSTEM ->… Read more

Debugging Java containers

Can you debug Java applications within your container? Yes. How? Check below… 1. Modify your dockerfile To expose JPDA params                  ENV JPDA_OPTS=”-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n” To expose the debug port along with application port                  EXPOSE 7080 8000 To add the options in your command                CMD [“sh”, “-c”, “java $JPDA_OPTS -Durl=$url -jar app.jar”] 2. Build the… Read more

Use JpGraph library with Azure Web App

JpGraph is a graph creating library for PHP5 and PHP7.0. The library is completely written in PHP and ready to be used in any PHP app. Here is a demo how to use it with web app on azure App Services. 1. Download JpGraph PHP5 and PHP7 version from (Pro. version require license) 2. After downloading… Read more

Profile Python Applications in Azure App Services

Slow application performance issues tend to be challenging to troubleshoot regardless of the platform in which your application is running. This is due in great part to the sometimes random nature of these issues. These types of issues also often do not result in a specific error being logged. If you think your Python application… Read more

Running Flask App with HttpPlatformHandler in Azure App Services(Windows)

Flask is a micro web framework written in Python and based on the Werkzeug toolkit and Jinja2 template engine. Below are list of steps we would follow Create Sample Project Create Azure WebApp and Use Site Extension to Upgrade Python Create and Change Deployment script Adding web.config (for production app with waitress) Publish App You… Read more