0% found this document useful (0 votes)
4 views2 pages

Comp 10

This document outlines the steps to create and configure an Azure web app using Azure App Services, including setting up a staging deployment slot for testing. It details the necessary settings for the web app and the process for configuring deployment settings for continuous deployment from an external Git repository. The document emphasizes the importance of testing in deployment slots before making applications publicly available.

Uploaded by

bikash_shrest5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Comp 10

This document outlines the steps to create and configure an Azure web app using Azure App Services, including setting up a staging deployment slot for testing. It details the necessary settings for the web app and the process for configuring deployment settings for continuous deployment from an external Git repository. The document emphasizes the importance of testing in deployment slots before making applications publicly available.

Uploaded by

bikash_shrest5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Task 1: Create and configure an Azure web app

In this task, you create an Azure web app. Azure App Services is a Platform As a
Service (PAAS) solution for web, mobile, and other web-based applications. Azure
web apps is part Azure App Services hosting most runtime environments, such as PHP,
Java, and .NET. The app service plan that you select determines the web app
compute, storage, and features.

Sign in to the Azure portal - https://portal.azure.com.

Search for and select App services.

Select + Create, from drop-down menu, Web App. Notice the other choices.

On the Basics tab of the Create Web App blade, specify the following settings
(leave others with their default values):

Setting Value
Subscription your Azure subscription
Resource group az104-rg9 (If necessary, select Create new)
Web app name any globally unique name
Publish Code
Runtime stack PHP 8.2
Operating system Linux
Region East US
Pricing plans Premium V3 P1V3
Zone redundancy accept the defaults
Click Review + create, and then Create.

Note: Wait until the Web App is created before you proceed to the next task. This
should take about a minute.

Note: If the deployment fails, change to another region and try again. For example,
switch to East US 2.

After the deployment, select Go to resource.

Task 2: Create and configure a deployment slot


In this task, you will create a staging deployment slot. Deployment slots enable
you to perform testing prior to making your app available to the public (or your
end users). After you have performed testing, you can swap the slot from
development or staging to production. Many organizations use slots to perform pre-
production testing. Additionally, many organizations run multiple slots for every
application (for example, development, QA, test, and production).

On the blade of the newly deployed Web App, click the Default domain link to
display the default web page in a new browser tab.

Close the new browser tab and, back in the Azure portal, in the Deployment section
of the Web App blade, click Deployment slots.

Note: The Web App, at this point, has a single deployment slot labeled PRODUCTION.

Click Add slot, and add a new slot with the following settings:

Setting Value
Name staging
Clone settings from Do not clone settings
Select Add.
Back on the Deployment slots blade of the Web App, click the entry representing the
newly created staging slot.

Note: This will open the blade displaying the properties of the staging slot.

Review the staging slot blade and note that its URL differs from the one assigned
to the production slot.

Task 3: Configure Web App deployment settings


In this task, you will configure Web App deployment settings. Deployment settings
allow for continuous deployment. This ensures that the app service has the latest
version of the application.

In the staging slot, select Deployment Center and then select Settings.

Note: Make sure you are on the staging slot blade (instead than the production
slot).

In the Source drop-down list, select External Git. Notice the other choices.

In the repository field, enter https://github.com/Azure-Samples/php-docs-hello-


world

In the branch field, enter master.

Select Save.

From the staging slot, select Overview.

You might also like