Skip to content

Commit 0c5fffd

Browse files
committed
review-2
1 parent 968f797 commit 0c5fffd

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

learn-pr/azure/stage-deploy-app-service-deployment-slots/includes/3-exercise-create-deployment-slots.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ Start by creating a new web app resource in the Azure portal.
3333
| Windows Plan | Accept default. |
3434
| Sku and size | Accept default. |
3535

36+
1. Select **Next : Database**.
37+
1.
3638
1. Select **Next : Deployment**.
3739

3840
1. Select **Next : Networking**.
3941

40-
1. Select **Next : Monitoring**, and enter the following value for the setting.
42+
1. Select **Next : Monitoring + secure**, and enter the following value for the setting.
4143

4244
| Setting | Value |
4345
|---|---|
@@ -108,7 +110,7 @@ We're going to use git to deploy the source code to the web app's production slo
108110
:::image type="content" source="../media/3-copy-git-clone-url.png" alt-text="Screenshot of the Essentials section, where you Copy the git clone URL." lightbox="../media/3-copy-git-clone-url.png":::
109111

110112
> [!NOTE]
111-
> If you don't see a git clone URL where it's shown in the preceding screenshot, refresh the portal.
113+
> If you don't see a git clone URL in the location shown in the preceding screenshot, refresh the portal.
112114
113115
1. Hover over the **Git clone url** and select the *Copy to clipboard* icon. This value also contains your deployment username.
114116
@@ -147,7 +149,7 @@ For your web app, you created one slot, the production slot, and you deployed so
147149
148150
1. In the command bar, select **+ Add Slot**. The **Add a slot** pane appears.
149151
150-
1. In the **Name** field, enter *Staging*, accept the default for **Clone settings from**, and then select **Add**.
152+
1. In the **Name** field, enter *staging*, accept the default for **Clone settings from**, and then select **Add**.
151153
152154
1. After the deployment slot is successfully created, select **Close**.
153155

learn-pr/azure/stage-deploy-app-service-deployment-slots/includes/4-deploy-a-web-app-by-swapping-deployment-slots.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Here, you learn the correct configuration to swap the web app into production.
88

99
When you swap two slots, the app's configuration travels to the new slot along with the app. You can override this behavior for individual application settings and configuration strings by configuring them as **slot settings**.
1010

11-
Suppose, for example, you have two databases. You use one for production and the other for acceptance testing. You always want the app version in the staging slot to use the testing database. The app version in the production slot should always use the production database. To achieve this, you can configure the database connection string as a slot setting.
11+
Suppose, for example, you have two databases. You use one for production and the other for acceptance testing. You always want the app version in the staging slot to use the testing database. The app version in the production slot should always use the production database. You can achieve this overall configuration by configuring the database connection string as a slot setting.
1212

1313
### Configure slot settings
1414

@@ -40,15 +40,15 @@ To swap two slots in the Azure portal:
4040

4141
## Understand the slot-swapping preview
4242

43-
When you swap slots, the settings in the target slot (which is typically the production slot) are applied to the app version in the source slot before the hostnames are swapped. You might discover problems at this point. For example, if the database connection string is configured as a slot setting, the new version of the web app uses the existing production database. If you forgot to upgrade the database schema in the production database before the swap, you could see errors and exceptions when the new app version attempts to use the old schema.
43+
When you swap slots, the settings in the target slot (typically the production slot) are applied to the app version in the source slot, before the hostnames are swapped. You might discover problems at this point. For example, if the database connection string is configured as a slot setting, the new version of the web app uses the existing production database. If you forgot to upgrade the database schema in the production database before the swap, you could see errors and exceptions when the new app version attempts to use the old schema.
4444

4545
To help you discover problems before your app goes live into production, Azure App Service offers a swap-with-preview feature. When you choose this option, the swap proceeds in two phases:
4646

4747
- **Phase 1**: Slot settings from the target slot are applied to the web app in the source slot. Azure then warms up the source slot. At this point, the swap operation pauses so you can test the app in the source slot to make sure it works with the target slot configuration. If you find no problems, begin the next phase.
4848
- **Phase 2**: The hostnames for the two sites are swapped. The version of the app now in the source slot receives its slot settings.
4949

5050
> [!IMPORTANT]
51-
> Test your web app thoroughly while it's in the staging slot. Eliminate code bugs and problems with non-slot settings. The swap-with-preview feature can only help you spot and eliminate problems caused by the production-slot settings. Make sure everything else is sound before you start any kind of swap into production.
51+
> Test your web app thoroughly while it's in the staging slot. Eliminate code bugs and problems with nonslot settings. The swap-with-preview feature can only help you spot and eliminate problems caused by the production-slot settings. Make sure everything else is sound before you start any kind of swap into production.
5252
5353
### Preview slot swapping
5454

learn-pr/azure/stage-deploy-app-service-deployment-slots/includes/5-exercise-deploy-a-web-app-by-using-deployment-slots.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ To configure slot settings:
1414

1515
1. Navigate to the **Configuration** pane for the deployment slot.
1616

17-
1. Select **+ New application setting**. Add a new setting with the name **ENVIRONMENT_NAME**, and a value of **production**. Check the **deployment slot setting** box to make this a slot setting. Select **OK**.
17+
1. Select **+ New application setting**. Add a new setting with the name **ENVIRONMENT_NAME**, and a value of **production**. Check the **deployment slot setting** box to make this setting a slot setting. Select **OK**.
1818

19-
1. Add another setting called **APP_VERSION**, and enter the value *1*. *Don't* make this a slot setting. Select **OK**.
19+
1. Add another setting called **APP_VERSION**, and enter the value *1*. *Don't* make this setting a slot setting. Select **OK**.
2020

2121
1. In the top menu bar, select **Save**, then select **Continue**.
2222

23-
1. Repeat the preceding steps on the **Staging** slot, but use the following values:
23+
1. Repeat the preceding steps on the **staging** slot, but use the following values:
2424

2525
| Name | Value | Deployment slot setting |
2626
|---|---|---|
@@ -29,7 +29,7 @@ To configure slot settings:
2929

3030
## Swap the slots
3131

32-
Now that you've tested version 2 of the web app in the staging slot, you can deploy it by swapping the slots. Follow these steps:
32+
Now that you tested version 2 of the web app in the staging slot, you can deploy it by swapping the slots. Follow these steps:
3333

3434
1. To make sure you're configuring the production slot, select **All resources**, and then select the production slot of the web app.
3535

@@ -47,7 +47,7 @@ Now that you've tested version 2 of the web app in the staging slot, you can dep
4747

4848
## Configure auto swap for the staging slot
4949

50-
Suppose that now that you're using deployment slots, you want to enable continuous deployment. You do this by using the auto swap feature for your web app. In a system that uses auto swap, when you deploy new code to the staging slot, Azure automatically warms it up and deploys it to production by swapping the staging and production slots. To configure auto swap, follow these steps:
50+
Now that you're using deployment slots, you can use the auto swap feature for your web app to enable continuous deployment. When auto swap is enabled, you can deploy new code to the staging slot and Azure automatically warms it up and deploys it to production by swapping the staging and production slots. To configure auto swap, follow these steps:
5151

5252
1. Go to the **Configuration** pane of the staging slot's web app and go to the **General settings** tab.
5353

@@ -92,9 +92,9 @@ Now, you modify the code to create version 3 of the web app. When you deploy it
9292
git push staging
9393
```
9494
95-
Wait for the deployment to finish. Near the end of the text output, you see a message that indicates that the deployment has requested an auto swap to the production slot.
95+
Wait for the deployment to finish. Near the end of the text output, you see a message that indicates that the deployment requested an auto swap to the production slot.
9696
97-
1. In the Azure portal, go to the **Overview** page for the production slot's web app, and select **Browse**. The third version of the web app appears on a new browser tab. If the old version is shown, you mightneed to wait briefly and then refresh the page. The swap operation is atomic and occurs instantly, but it takes App Service a few moments to prepare the swap operation before running it.
97+
1. In the Azure portal, go to the **Overview** page for the production slot's web app, and select **Browse**. The third version of the web app appears on a new browser tab. If the old version is shown, you might need to wait briefly and then refresh the page. The swap operation is atomic and occurs instantly, but it takes App Service a few moments to prepare the swap operation before running it.
9898

9999
## Roll back the new version
100100

@@ -104,4 +104,4 @@ Suppose that deploying version 3 of your app to production revealed an unexpecte
104104
105105
1. Swap the staging and production slots.
106106
107-
1. When the swap finishes, on the **Overview** page, select **Browse** to view the app one last time. You'll see that version 2 was redeployed to production.
107+
1. When the swap finishes, on the **Overview** page, select **Browse** to view the app one last time. You can see that version 2 was redeployed to production.

0 commit comments

Comments
 (0)