How To Connect PHP With Azure Web App Using Microsoft Cloud Services

In this article, we will learn how to connect PHP with Azure Web app using FileZilla FTP client and Microsoft Cloud Service.
  • Sign into Azure Portal.
  • FileZilla FTP Client. 
Step 1

Go to "" and sign into your account.

Step 2 

Select New >> Web+Mobile >> Web app to create the app.

Step 3 

Give any name to your app and create resource group with unique name, check the "Pin to dashboard" checkbox and click "Create". 

Step 4 

Then, go to notifications area. You will see that the deployment has been successful for the web app.

Step 5 

Now, go to Azure Dashboard for deployment of the web app and click on the portal to open the web app, as shown below.

Step 6 

Subsequently, click on the URL to see the output (or) go to Web Browser and type the web address of the web app name to see the output (Please refer the below image).


Step 7 

Open FileZilla to connect with Azure Cloud Service.


Step 8 

Then, go to deployment credentials, fill in the username and password, and click "Save" button to create the FTP hostname and FTP Username.

Step 9 

Then, go to the notifications section to verify if the deployment of credentials has been successful.

Step 10 

Then, copy the FTP Hostname and FTP Username to the FileZilla FTP client to connect the PHP file.


Step 11

After putting all the credentials, click "Quick Connect" to connect the Web app with Azure Services.

Step 12 

Type the PHP code in notepad file and save it with ".php" extension so as to create the PHP file.

Step 13 

Open FileZilla again and go to Site, select wwwroot, then drag the PHP file until the status is verified. Once the file is verified, go to the web app URL and append the PHP file name at the end of the URL after a forward slash, like (/nav.php).



The PHP file has been added to the Azure Web app successfully. Feel free to comment with some suggestions.

Similar Articles