Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit 3e4df06

Browse files
committed
finished
1 parent a63e24b commit 3e4df06

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

Instructions/Labs/AZ400_M03_L07_Implementing_GitHub_Actions_by_using_DevOps_Starter.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ The repository is organized the following way:
4444
- **.github** folder container YAML GitHub workflow definitions.
4545
- **src** folder contains the .NET 6 website used on the lab scenarios.
4646

47-
#### Task 1: Create a private repository in GitHub and import eShopOnWeb
47+
#### Task 1: Create a public repository in GitHub and import eShopOnWeb
4848

49-
In this task, you will create an empty private GitHub repository and import the existing [eShopOnWeb](https://github.com/MicrosoftLearning/eShopOnWeb) repository.
49+
In this task, you will create an empty public GitHub repository and import the existing [eShopOnWeb](https://github.com/MicrosoftLearning/eShopOnWeb) repository.
5050

51-
1. From the lab computer, start a web browser, navigate to the [GitHub website](https://github.com/), log in using your account and click on **New** to create new repository.
51+
1. From the lab computer, start a web browser, navigate to the [GitHub website](https://github.com/), sign in using your account and click on **New** to create new repository.
5252

5353
![Create Repository](images/github-new.png)
5454

@@ -74,16 +74,16 @@ In this task, you will create an empty private GitHub repository and import the
7474

7575
### Exercise 1: Setup your GitHub Repository and Azure access
7676

77-
In this exercise, you will create an Azure Service Principal to authorize GitHub accessing you Azure subscription. You will also setup the GitHub workflow that will build, test and deploy your website to Azure.
77+
In this exercise, you will create an Azure Service Principal to authorize GitHub accessing your Azure subscription from GitHub Actions. You will also setup the GitHub workflow that will build, test and deploy your website to Azure.
7878

7979
#### Task 1: Create an Azure Service Principal and save it as GitHub secret
8080

8181
In this task, you will create the Azure Service Principal used by GitHub to deploy the desired resources. As an alternative, you could also use [OpenID connect in Azure](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-azure), as a secretless authentication mechanism.
8282

83-
1. On your lab computer, in a browser window open the Azure Portal (https://portal.azure.com/).
83+
1. On your lab computer, in a browser window, open the Azure Portal (https://portal.azure.com/).
8484
1. In the portal, look for **Resource Groups** and click on it.
8585
1. Click on **+ Create** to create a new Resource Group for the exercise.
86-
1. on the **Create a resource group** tab, give the following name to your Resource Group: **rg-az400-eshopeonweb-NAME** (replace NAME for some unique alias). Click on **Review+Create > Create**.
86+
1. On the **Create a resource group** tab, give the following name to your Resource Group: **rg-az400-eshopeonweb-NAME** (replace NAME for some unique alias). Click on **Review+Create > Create**.
8787
1. In the Azure Portal, open the **Cloud Shell** (next to the search bar).
8888

8989
> NOTE: if this is the first time you open the Cloud Shell, you need to configure the [persistent storage](https://learn.microsoft.com/en-us/azure/cloud-shell/persisting-shell-storage#create-new-storage)
@@ -94,7 +94,7 @@ In this task, you will create the Azure Service Principal used by GitHub to depl
9494

9595
> NOTE: this command will create a Service Principal with Contributor access to the Resource Group created before. This way we make sure GitHub Actions will only have the permissions needed to interact only with this Resource Group (not the rest of the subscription)
9696
97-
1. The command will output a JSON object, you will keep it as a GitHub secret for the workflow, copy it. The JSON contains the identifiers used to authenticate against Azure in the name of an application (service principal).
97+
1. The command will output a JSON object, you will later keep it as a GitHub secret for the workflow, copy it. The JSON contains the identifiers used to authenticate against Azure in the name of an Azure AD application identity (service principal).
9898

9999
```JSON
100100
{
@@ -109,7 +109,7 @@ In this task, you will create the Azure Service Principal used by GitHub to depl
109109
1. In a browser window, go back to your **eShopOnWeb** GitHub repository.
110110
1. On the repository page, go to **Settings**, click on **Secrets > Actions**. Click on **New repository secret**
111111
- Name : **AZURE_CREDENTIALS**
112-
- Secret: **paste the previously copied JSON object** (GitHub is able to keep multiple secrets under same name)
112+
- Secret: **paste the previously copied JSON object** (GitHub is able to keep multiple secrets under same name, used by [azure/login](https://github.com/Azure/login) action )
113113

114114
1. Click on **Add secret**. Now GitHub Actions will be able to reference the service principal, using the repository secret.
115115

@@ -136,12 +136,12 @@ In this task, you will modify the given GitHub workflow and execute it to deploy
136136

137137
In this task, you will review the GitHub workflow execution:
138138

139-
1. 1. In a browser window, go back to your **eShopOnWeb** GitHub repository.
140-
1. On the repository page, go to **Actions**, you will the workflow setup before executing. Click on it.
139+
1. In a browser window, go back to your **eShopOnWeb** GitHub repository.
140+
1. On the repository page, go to **Actions**, you will see the workflow setup before executing. Click on it.
141141

142142
![GitHub workflow in progress](images/gh-actions.png)
143143

144-
1. Wait for the workflow to execute. From the **Summary** you can see the two workflow jobs, status and Artifacts retained from the execution.
144+
1. Wait for the workflow to finish. From the **Summary** you can see the two workflow jobs, the status and Artifacts retained from the execution. You can click in each job to review logs.
145145

146146
![Succesfull workflow](images/gh-action-success.png)
147147

@@ -174,25 +174,25 @@ In this task, you will use GitHub environments to ask for manual approval before
174174

175175
1. Workflow will follow the **deploy** job execution and finish.
176176

177-
#### Task 1: Remove the Azure lab resources
177+
### Exercise 2: Remove the Azure lab resources
178178

179-
In this task, you will use Azure Cloud Shell to remove the Azure resources provisioned in this lab to eliminate unnecessary charges.
179+
In this exercise, you will use Azure Cloud Shell to remove the Azure resources provisioned in this lab to eliminate unnecessary charges.
180180

181181
1. In the Azure portal, open the **Bash** shell session within the **Cloud Shell** pane.
182182
1. List all resource groups created throughout the labs of this module by running the following command:
183183

184184
```sh
185-
az group list --query "[?starts_with(name,'az400m08l01')].name" --output tsv
185+
az group list --query "[?starts_with(name,'rg-az400-eshopeonweb')].name" --output tsv
186186
```
187187

188188
1. Delete all resource groups you created throughout the labs of this module by running the following command:
189189

190190
```sh
191-
az group list --query "[?starts_with(name,'az400m08l01')].[name]" --output tsv | xargs -L1 bash -c 'az group delete --name $0 --no-wait --yes'
191+
az group list --query "[?starts_with(name,'rg-az400-eshopeonweb')].[name]" --output tsv | xargs -L1 bash -c 'az group delete --name $0 --no-wait --yes'
192192
```
193193

194194
>**Note**: The command executes asynchronously (as determined by the --nowait parameter), so while you will be able to run another Azure CLI command immediately afterwards within the same Bash session, it will take a few minutes before the resource groups are actually removed.
195195

196196
## Review
197197

198-
In this lab, you implemented a GitHub Action workflow that deploys an Azure web app by using DevOps Starter.
198+
In this lab, you implemented a GitHub Action workflow that deploys an Azure Web App.

0 commit comments

Comments
 (0)