Microsoft Azure Open Source Development Support Team Blog

Support for Open Source Technologies on Microsoft Azure App Service

Restrict access to login for the WordPress running on Azure web app container

For WordPress sites that running on Apache server in Azure web app for containers, here is sample code to restrict access to login pages, such as wp-login.php or wp-admin 1. FTP to files in /home/site/wwwroot, find the file “.htaccess” (create one if it does not exist) 2. Add the code below to “.htaccess”, replace the… Read more

How to change memory_limit on WordPress Web App for Linux on Azure

Do you need to edit the memory_limit and post_max_size PHP settingson your Linux Web App hosted with MS Azure? I can show you how to do this without needing to install anything via SSH (which by the way is not recommended. Read up on why here). Step 1: Login to the portal and go to… Read more

How to set node version for Windows node.js webapp from Azure Portal

Create the Azure WebApp Create new WebApp using Azure portal   Set the App name, Resource Group and click “Create”   Wait for deployment to succeed and then click on Application Settings for the new Webapp. Add a new setting with App Setting Name “WEBSITE_NODE_DEFAULT_VERSION” and Value “8.9.4” and click Save. If you would like… Read more

Configuring node.js application on Azure App Service with Azure Blob Storage

In this article, we will learn about configuring the node js applications deployed on Azure App Services with the Azure blob storage. If you would like to store the application logs in a blob storage on azure for the node.js applications, you would need to follow the steps below. It basically includes 2 main steps:… Read more

Debugging Node.js applications on Azure App Services Linux/containers

  This is the continuation of the earlier post where I had explained how to enable logging for node applications on App Service Windows.  In this blog, you will learn how to debug the node.js applications that are hosted on Azure App Service Linux / Azure webapp for containers. Enabling logs on linux offerings of… Read more

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>.scm.azurewebsite.net) 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: https://docs.microsoft.com/en-us/azure/app-service/containers/app-service-linux-ssh-support . 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 uses the… Read more