Microsoft Azure

Deploying a Web App in Azure

In this post, I will show you how to create a new web app using Azure App Services, the PaaS (Platform-as-a-Service) alternative to running web services on virtual machines.



Sponsored Content

Passwords Haven’t Disappeared Yet

123456. Qwerty. Iloveyou. No, these are not exercises for people who are brand new to typing. Shockingly, they are among the most common passwords that end users choose in 2021. Research has found that the average business user must manually type out, or copy/paste, the credentials to 154 websites per month. We repeatedly got one question that surprised us: “Why would I ever trust a third party with control of my network?

Reusing an App Service Plan?

Azure web apps are web server instances that run on an app service plan; this app service plan is a collection of 1 or more load-balanced virtual machines that are managed for you by Azure. You don’t have to manage them in any way other than picking a size for them.

Depending on the scale of your web app and the spec of the app service plan, the app service plan can host more than 1 web app. For example,,, and could all be hosted on a single app service plan, thus sharing the cost and performance potential of the plan.

A single Azure app service plan running several web apps [Image Credit: Aidan Finn]
A Single Azure App Service Plan Running Several Web Apps [Image Credit: Aidan Finn]

In the following example, I will be deploying a web app on a new app service plan. You will also see how an existing plan can be reused if this is desired.



Deploying the Web App

Log into the Azure Portal and Click New in the navigation bar on the left. Select Web + Mobile and then click See All. The Marketplace will open and be filtered for all of the web app options in Azure. There are many examples, such as a web app that will be co-deployed with an Azure SQL database, WordPress, and many more.

Web app options in the Azure Marketplace [Image Credit: Aidan Finn]
Web App Options in the Azure Marketplace [Image Credit: Aidan Finn]

I will stick with a simple IIS instance, select Web App, and click Create.

The Web App – Create blade opens. Enter a name for the new web app; this must form a unique DNS name in the domain, for example, Either select an existing or create a new resource group to contain the resources for this web app. Choose if you want a Linux (Tomcat) or Windows (IIS) deployment. This will affect your choice/deployment of app service plans (Windows or Linux machines) in the next step.

Expand App Service Plan/Location and either select an existing app service plan or create a new one. I will create a new app service plan. If you choose to create a new plan, you have to name it, select a region/location, and choose a size.

Creating a new Azure app service plan [Image Credit: Aidan Finn]
Creating a New Azure App Service Plan [Image Credit: Aidan Finn]

Back in the Web App – Create blade, you can finish the process by opting to enable Application Insights or not; this enables code-level monitoring of your web app. Click Create to finish the process. Note that creating a new app service plan can slow down the process.

Create a new Azure web app [Image Credit: Aidan Finn]
Create a New Azure Web App [Image Credit: Aidan Finn]

A few minutes later, the website is available on the Internet via Subsequent steps can/might include:


  • Assigning a custom domain name
  • Setting up Application Settings, e.g. PHP/Java/Python/.Net Framework version, or a database connection string
  • Configuring deployment slots
  • Uploading code by FTP or via a deployment option
  • Enabling backup
  • Associating an SSL certificate
  • Configuring the app service plan, e.g. auto-scaling

Related Topics:


Don't have a login but want to join the conversation? Sign up for a Petri Account

Comments (0)

Leave a Reply

Aidan Finn, Microsoft Most Valuable Professional (MVP), has been working in IT since 1996. He has worked as a consultant and administrator for the likes of Innofactor Norway, Amdahl DMR, Fujitsu, Barclays and Hypo Real Estate Bank International where he dealt with large and complex IT infrastructures and MicroWarehouse Ltd. where he worked with Microsoft partners in the small/medium business space.