Deploy Static HTML UI on Azure Web App using FTP Client

Jay
3 min readMar 6, 2021

--

In this article, we will see step by step how to deploy simple/complex any HTML Based Websites or we can say static websites on Azure Web App using FTP Client.

Step 1: Create App Service

Login to https://portal.azure.com and click on ‘Create a resource’

Search ‘Web App’ or click on ‘Web App’ from the list. Fill in the details as shown below and click on Review + create

Create Web App

Wait for deployment to complete and on success, click on Go to resource

Go to resource

our Web app is ready to use!

Step 2: Create a Basic HTML file

create an index.html file as below.

index.html

Remember to change the image name accordingly or skip that element.

Step 3: Create FTP Connection

Go to your Web App resource and follow the below steps to download publish profiles.

Web app → Deployment Centre →Manage publish profile → Download publish profile

Download publish profile

Now, we got our credentials in publish profile file, let's connect to the FTP server.

Go to My Computer and right-click to select ‘Add a network location’

add a network location

Now, open the downloaded publish profile file and search for publishMethod=”FTP”, Copy publishUrl next to FTP method and paste in network address textbox on the wizard and click next.

Add network address

Uncheck Log on Anonymously checkbox and copy & paste username from the publish profile file and click next.

user name

Provide a suitable name for the location and click next.

Location name

It will ask you to enter the password, copy from publish profile and click on login. You will able to see your remote wwwroot folder.

wwwroot folder

just copy your HTML application or file along with their respective resources like images etc to the location folder and you are done with your deployment.

HTML files

Now try browsing your URL, you will able to see your HTML up and running.

Demo UI

Note: index.html is the default document configured, you can configure your startup or default file as shown below in the Default document section under settings of your web app.

--

--

Jay
Jay

Written by Jay

C# Developer | Azure Developer | Microsoft Full-Stack Developer | Payments | Microservices | API

No responses yet