You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 21, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: Instructions/Labs/AZ400_M03_L06_Deploying_Docker_containers_to_Azure_App_Service_web_apps.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,8 +74,8 @@ You can create a connection from Azure Pipelines to external and remote services
74
74
In this task, you will create a service principal by using the Azure CLI, which will allow Azure DevOps to:
75
75
76
76
- Deploy resources on your azure subscription.
77
-
- Push the docker image to Azure Container Registry.
78
-
- Add a role assignment to allow Azure App Service pull the docker image from Azure Container Registry.
77
+
- Push the Docker image to Azure Container Registry.
78
+
- Add a role assignment to allow Azure App Service pull the Docker image from Azure Container Registry.
79
79
80
80
> **Note**: If you do already have a service principal, you can proceed directly to the next task.
81
81
@@ -128,7 +128,7 @@ In this exercise, you will import and run the CI pipeline.
128
128
2. Click on **New pipeline** button
129
129
3. Select **Azure Repos Git (YAML)**
130
130
4. Select the **eShopOnWeb** repository
131
-
5. Select **Existing Azure Pipelines YAML File**
131
+
5. Select **Existing Azure Pipelines YAML file**
132
132
6. Select the **/.ado/eshoponweb-ci-docker.yml** file then click on **Continue**
133
133
7. In the YAML pipeline definition, customize:
134
134
- **YOUR-SUBSCRIPTION-ID** with your Azure subscription ID.
@@ -142,7 +142,7 @@ In this exercise, you will import and run the CI pipeline.
142
142
- **Resources**: It downloads the repository files that will be used in the following tasks.
143
143
- **AzureResourceManagerTemplateDeployment**: Deploys the Azure Container Registry using bicep template.
144
144
- **PowerShell**: Retrieve the **ACR Login Server** value from the previous task's output and create a new parameter **acrLoginServer**
145
-
- [**Docker**](https://learn.microsoft.com/azure/devops/pipelines/tasks/reference/docker-v0?view=azure-pipelines) **- Build**: Build the docker image and create two tags (Latest and current BuildID)
145
+
- [**Docker**](https://learn.microsoft.com/azure/devops/pipelines/tasks/reference/docker-v0?view=azure-pipelines) **- Build**: Build the Docker image and create two tags (Latest and current BuildID)
146
146
- **Docker - Push**: Push the images to Azure Container Registry
147
147
148
148
9. Your pipeline will take a name based on the project name. Let's **rename** it for identifying the pipeline better. Go to **Pipelines>Pipelines** and click on the recently created pipeline. Click on the ellipsis and **Rename/move** option. Name it **eshoponweb-ci-docker** and click on **Save**.
@@ -155,7 +155,7 @@ In this exercise, you will configure the service connection with your Azure Subs
155
155
156
156
#### Task 1: Add a new role assignment
157
157
158
-
In this task, you will add a new role assignment to allow Azure App Service pull the docker image from Azure Container Registry.
158
+
In this task, you will add a new role assignment to allow Azure App Service pull the Docker image from Azure Container Registry.
159
159
160
160
1. Navigate to the [**Azure Portal**](https://portal.azure.com).
161
161
2. In the Azure portal, click on the **Cloud Shell** icon, located directly to the right of the search textbox at the top of the page.
@@ -202,17 +202,17 @@ In this task, you will import and run the CD pipeline.
202
202
203
203
9. Your pipeline will take a name based on the project name. Let's **rename** it for identifying the pipeline better. Go to **Pipelines>Pipelines** and hover on the recently created pipeline. Click on the ellipsis and **Rename/move** option. Name it **eshoponweb-cd-webapp-docker** and click on **Save**.
204
204
205
-
> **Note 1**: The use of the **/.azure/bicep/webapp-docker.bicep** template creates an app service plan, a web app with system assigned managed identity enabled, and references the docker image pushed previously: **${acr.properties.loginServer}/eshoponweb/web:latest**.
205
+
> **Note 1**: The use of the **/.azure/bicep/webapp-docker.bicep** template creates an app service plan, a web app with system assigned managed identity enabled, and references the Docker image pushed previously: **${acr.properties.loginServer}/eshoponweb/web:latest**.
206
206
207
-
> **Note 2**: The use of the **/.azure/bicep/webapp-to-acr-roleassignment.bicep** template creates a new role assignment for the web app with AcrPull role to be able to retrieve the docker image. This could be done in the first template, but since the role assignment can take some time to propagate, it's a good idea to do both tasks separately.
207
+
> **Note 2**: The use of the **/.azure/bicep/webapp-to-acr-roleassignment.bicep** template creates a new role assignment for the web app with AcrPull role to be able to retrieve the Docker image. This could be done in the first template, but since the role assignment can take some time to propagate, it's a good idea to do both tasks separately.
208
208
209
209
#### Task 3: Test the solution
210
210
211
211
1. In the Azure Portal, navigate to the recently created Resource Group, you should now see three resources (App Service, App Service Plan and Container Registry).
212
212
213
213
1. Navigate to the App Service, then click **Browse**, this will take you to the website.
214
214
215
-
Congratulations! In this exercise, you deployed a website using a custom docker image.
215
+
Congratulations! In this exercise, you deployed a website using a custom Docker image.
0 commit comments