Skip to content

Commit 4071e5d

Browse files
Merge pull request #268 from microsoft/psl-acr-migration-doc
docs: Comprehensive guide for migrating an Azure Web App Service
2 parents 822aa7f + 18b0d3c commit 4071e5d

File tree

3 files changed

+81
-0
lines changed

3 files changed

+81
-0
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Guide: Migrating Azure Web App Service to a New Container Registry
2+
3+
## Overview
4+
5+
### Current Problem:
6+
- The **Document Generator Container Image** is being published in the **External ACR** (Azure Container Registry).
7+
8+
### Goal:
9+
- The goal is to **migrate container images** from various applications to a common **CSA CTO Production Azure Container Registry**, ensuring all the different images are consolidated in one centralized location.
10+
11+
---
12+
13+
## Step-by-Step Guide: Migrating Azure Web App Service to a New Container Registry
14+
15+
This guide will help you seamlessly switch the container registry for your **Azure Web App Service** from Azure Container Registry (ACR) to the new registry **`byocgacontainerreg`**.
16+
17+
Follow the steps below to ensure a smooth migration.
18+
19+
### Prerequisites:
20+
Before you begin, ensure you have the following:
21+
- Access to the **Azure Portal**.
22+
- The **container image** in the new registry is ready and accessible.
23+
24+
---
25+
26+
### Step 1: Obtain Details for the New Registry
27+
28+
Before you begin, ensure you have the following information:
29+
- **Registry URL**: The URL of the new registry (`https://byocgacontainerreg.azurecr.io`).
30+
- **Image Name and Tag**: The full name and tag of the image you want to use:
31+
- **Web App Image**: `webapp:latest`
32+
---
33+
34+
### Step 2: Update Azure Web App Service Configuration Using Azure Portal
35+
36+
1. **Log in to Azure Portal**:
37+
- Open [Azure Portal](https://portal.azure.com/).
38+
39+
2. **Locate Your Resource Group and Web App Service**:
40+
- Navigate to resource group which you have created for Document Generator.
41+
- Navigate to **Web App Service**: From the list of resources, find and select **App Service**
42+
43+
3. **Go to the Deployment Center**:
44+
- In the left-hand menu, click on **Deployment**.
45+
46+
![Resource Menu](images/resource_menu.png)
47+
48+
49+
4. **Update Image Source**:
50+
- Change the **Registry Source** to **Private**.
51+
- Set the **Server URL** to the new container registry (`https://byocgacontainerreg.azurecr.io`), as shown in the screenshot below.
52+
- Set the **Full Image name** to the relevant image name and tag:
53+
- For Web App: `webapp:latest`
54+
55+
![Deployment Center](images/deployment_center.png)
56+
57+
5. **Save Changes**:
58+
- Click **Save** to save the configuration.
59+
60+
---
61+
62+
### Step 3: Restart the Web App Service
63+
64+
After updating the configuration, restart your **Web App Service** to apply the changes:
65+
66+
1. In the **Web App Service overview page**, click on **Restart**.
67+
2. Confirm the restart operation.
68+
69+
---
70+
71+
### Step 8: Validate the Deployment
72+
73+
1. **Access Your Web App**:
74+
- Open the **Web App URL** in a browser to ensure it’s running correctly.
75+
---
76+
77+
By following these steps, your **Azure Web App Service** will now use the new container from the **Document Generator registry**.
78+
79+
For further assistance, feel free to reach out to your support team or log an issue on GitHub.
80+
81+
---

docs/images/deployment_center.png

109 KB
Loading

docs/images/resource_menu.png

107 KB
Loading

0 commit comments

Comments
 (0)