Deploy Azure App Service Environment With A Public IP

Last Update: Sep 04, 2024 | Published: Mar 14, 2018

SHARE ARTICLE

Public Cloud Guide
In this post, I will show you how to deploy the “public” version of App Service Environment (ASE), where the app services are shared through a single, simple public IP address.
 

 

An Azure App Service Environment (ASE) with a simple PIP [Image Credit: Microsoft]
An Azure App Service Environment (ASE) with a Simple PIP [Image Credit: Microsoft]
 
Note that you can create an ASE while creating the first app service and Isolated-Tier app service plan within it. However, this does not give you control over the method of connectivity to the app services. In this how-to article, you will see how to create the new ASE and then how to add app services plans to it.

Create the ASE

Start by going to the Azure Portal and clicking Create a Resource. Pick Web + Mobile > App Service Environment. An App Service Environment blade will appear; enter the following details:

  • Name: Give the ASE resource a name that will be unique in the .p.azurewebsite.net domain.
  • Subscription: Choose the target subscription.
  • Resource Group: Create a new or select an existing resource group to put the ASE into.
  • Virtual Network/Location: Either choose an existing virtual network or create a new one.

Creating a new Azure App Service Environment (ASE) [Image Credit: Aidan Finn]
Creating a New Azure App Service Environment (ASE) [Image Credit: Aidan Finn]
 
There are two things to note about the virtual network blade:

  • Choosing/creating a virtual network will define the region that the ASE will be created in.
  • This is where you choose (VIP Type) if the ASE will be external (public IP address) or internal (Azure load balancer).

In this case, select External, which will create a PIP (Public IP address or VIP/virtual IP address) for the ASE.

Defining the type/location of the ASE [Image Credit: Aidan Finn]
Defining the Type/Location of the ASE [Image Credit: Aidan Finn]
 
You can click Create and the ASE is created for you. Note that this creation job can take well over 1 hour to complete.
A newly created Azure Service Environment (ASE) [Image Credit: Aidan Finn]
A Newly Created Azure Service Environment (ASE) [Image Credit: Aidan Finn]
 
If you open the created ASE resource and browse to IP Addresses, you will find the public and outbound IP address of your new app services environment.
The IP addresses of an Azure Services Environment [Image Credit: Aidan Finn]
The IP Addresses of an Azure Services Environment [Image Credit: Aidan Finn]

Create an Isolated App Service / App Service Plan

Start by creating a new app service and app service plan as normal; Click Create A Resource > Web + Mobile > Web App. Enter the web app details:

  • App Name: A globally unique name in the .azurewebsite.net domain.
  • Subscription: The subscription that the ASE is in.
  • Resource Group: The name of the new or existing resource group.
  • OS: This must be Windows because Linux is not supported yet in ASE.

Click App Service Plan and then select Create New. Enter the following in the New App Service Plan blade:

  • App Service Plan: Enter a name for the new app service plan.
  • Location: Select the ASE that you created earlier. This also selects the region of the ASE.
  • Pricing Tier: Choose one of the Isolated plans. This is required for an ASE.

Create a new isolated app services plan [Image Credit: Aidan Finn]
Create a New Isolated App Services Plan [Image Credit: Aidan Finn]
 
Click OK to finish detailing the new app service plan. You are then returned to the Web App blade, where you can optionally enable Application Insights.
Creating a new app service in the ASE [Image Credit: Aidan Finn]
Creating a New App Service in the ASE [Image Credit: Aidan Finn]
 
A new app service, running in a new app services plan will be deployed in the ASE after you click Create; this will only take a few moments.

You can then open the new app service and click Browse. The new site is browsable via the Azure-assigned domain name (which you can customize) via the ASE’s public IP address.

SHARE ARTICLE