Skip to content

Commit 5e3b83b

Browse files
committed
Add artifact repo using managed identity or GitHub app authentication
1 parent 96d1a33 commit 5e3b83b

7 files changed

+15
-11
lines changed

articles/devtest-labs/add-artifact-repository.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,10 @@ This article shows you how to add an artifact repository to your lab by using th
2020

2121
[!INCLUDE [updated-for-az](~/reusable-content/ce-skilling/azure/includes/updated-for-az.md)]
2222

23-
## Configure a managed identity to add Azure DevOps artifact repo
24-
25-
Before you can add an artifact repository to a lab, you must configure a managed identity, also called a Managed Service Identity (MSI).
26-
To learn more about managed identities, see [What are managed identities for Azure resources?](/entra/identity/managed-identities-azure-resources/overview)
27-
2823
## Add an artifact repo
2924

30-
You can add an artifact repo from an Azure Repos repository or a GitHub repository. You can choose to authenticate by assigning permissions to an MSI, GitHub app authentication, or by using a PAT.
25+
You can add an artifact repo from an Azure Repos repository or a GitHub repository. You can choose to authenticate by assigning permissions to a managed identity, by using GitHub app authentication, or by using a PAT.
26+
To learn more about managed identities, see [What are managed identities for Azure resources?](/entra/identity/managed-identities-azure-resources/overview)
3127

3228
Select the tab for the type of repository and authentication you want to use.
3329

@@ -49,10 +45,16 @@ You must give the managed identity permissions to the repository in Azure Repos.
4945
5046
1. Select **Organization settings**.
5147

48+
:::image type="content" source="media/devtest-lab-add-repo/devops-organization-settings.png" alt-text="Screenshot showing the Azure DevOps organization page, with Organization Settings highlighted." lightbox="media/devtest-lab-add-repo/devops-organization-settings.png":::
49+
5250
1. On the **Overview** page, select **Users**.
5351

52+
:::image type="content" source="media/devtest-lab-add-repo/devops-organization-overview.png" alt-text="Screenshot showing the Organization overview page, with Users highlighted." lightbox="media/devtest-lab-add-repo/devops-organization-overview.png":::
53+
5454
1. On the **Users** page, select **Add users**.
5555

56+
:::image type="content" source="media/devtest-lab-add-repo/devops-add-user.png" alt-text="Screenshot showing the Users page, with Add user highlighted." lightbox="media/devtest-lab-add-repo/.png":::
57+
5658
1. Complete **Add new users** by entering or selecting the following information, and then select **Add**:
5759

5860
|Name |Value |
@@ -63,6 +65,8 @@ You must give the managed identity permissions to the repository in Azure Repos.
6365
|**Azure DevOps Groups**|Select **Project Readers**.|
6466
|**Send email invites (to Users only)**|Clear the checkbox.|
6567

68+
:::image type="content" source="media/devtest-lab-add-repo/devops-add-user-blade.png" alt-text="Screenshot showing Add users, with example entries and Add highlighted." lightbox="media/how-to-configure-catalog/devops-add-user-blade.png":::
69+
6670
### Add an Azure DevOps artifact repository to a lab in the Azure portal
6771

6872
1. On the lab's **Overview** page, select **Configuration and policies** from the left navigation.
@@ -80,12 +84,12 @@ You must give the managed identity permissions to the repository in Azure Repos.
8084
- **Name**: A repository name to use in the lab.
8185
- **Git clone URL**: The Git HTTPS clone URL from GitHub or Azure Repos.
8286
- **Branch** (optional): The branch that has your artifact definitions.
83-
- **Managed Identity**: Use this option to leverage the Managed Identity for authentication.
8487
- **Folder paths**: The folder for your ARM template definitions, relative to the Git clone URL. Be sure to include the initial forward slash in the folder path.
88+
- **Managed Identity**: Use this option to leverage the Managed Identity for authentication.
8589

8690
1. Select **Save**.
8791

88-
![Screenshot that shows adding a new artifact repository to a lab.](media/devtest-lab-add-repo/devtestlab-repo-blade.png)
92+
![Screenshot that shows adding a new artifact repository to a lab.](media/devtest-lab-add-repo/devtestlab-reop-blade-with-managed-identity.png)
8993

9094
The repository now appears in the **Repositories** list for the lab.
9195

@@ -116,12 +120,12 @@ The repository now appears in the **Repositories** list for the lab.
116120
- **Name**: A repository name to use in the lab.
117121
- **Git clone URL**: The Git HTTPS clone URL from GitHub or Azure Repos.
118122
- **Branch** (optional): The branch that has your artifact definitions.
119-
- **Personal access token**: The personal access token from Azure Repos.
120123
- **Folder paths**: The folder for your ARM template definitions, relative to the Git clone URL. Be sure to include the initial forward slash in the folder path.
124+
- **Personal access token**: The personal access token from Azure Repos.
121125

122126
1. Select **Save**.
123127

124-
![Screenshot that shows adding a new artifact repository to a lab.](media/devtest-lab-add-repo/devtestlab-repo-blade.png)
128+
![Screenshot that shows adding a new artifact repository to a lab.](media/devtest-lab-add-repo/devtestlab-reop-blade-with-pat.png)
125129

126130
The repository now appears in the **Repositories** list for the lab.
127131

@@ -131,7 +135,7 @@ To add a catalog, complete the following tasks:
131135

132136
1. Install and configure the Microsoft Dev Center app
133137
1. Assign permissions in GitHub for the repos.
134-
1. Add your repository as a catalog.
138+
1. Add your artifact repository.
135139

136140
### Install Microsoft Dev Center app
137141

26 KB
Loading
104 KB
Loading
59.5 KB
Loading
32.9 KB
Loading
98.9 KB
Loading
77.5 KB
Loading

0 commit comments

Comments
 (0)