Skip to content

Commit ef45249

Browse files
committed
add artifact repository changes
1 parent ad5e727 commit ef45249

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

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

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,14 @@ 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-
## Prerequisites
24-
To add an artifact repository to a lab, you need to know the Git HTTPS clone URL and the personal access token for the GitHub or Azure Repos repository that has the artifact files. Instead of personal access tokens, you can also use Managed Identity to access Azure artifact repos and GitHub app authentication to access GitHub artifact repos.
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+
28+
## Add an artifact repo
29+
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.
2531

2632
Select the tab for the type of repository and authentication you want to use.
2733

@@ -83,7 +89,7 @@ You must give the managed identity permissions to the repository in Azure Repos.
8389

8490
The repository now appears in the **Repositories** list for the lab.
8591

86-
## [Azure Repos repo with PAT](#tab/DevOpsRepoMSI/)
92+
## [Azure Repos repo with PAT](#tab/DevOpsRepoPAT/)
8793

8894
### Get the clone URL and personal access token for Azure Repos
8995

@@ -119,7 +125,7 @@ The repository now appears in the **Repositories** list for the lab.
119125

120126
The repository now appears in the **Repositories** list for the lab.
121127

122-
## [GitHub repo DevCenter app](#tab/DevOpsRepoMSI/)
128+
## [GitHub repo DevCenter app](#tab/GitHubRepoApp/)
123129

124130
To add a catalog, complete the following tasks:
125131

@@ -152,8 +158,6 @@ To add a catalog, complete the following tasks:
152158
1. Select the GitHub organization that contains the artifact repository you want to add to the lab. You must be an owner of the organization to install this app.
153159

154160
1. On the Install Microsoft DevCenter page, select **Only select repositories**, select the repository you want to add to the lab, and then select **Install**.
155-
156-
You can select multiple repositories to add as catalogs. You must add each repository as a separate catalog, as described in [Add your repository as a catalog](#add-your-repository-as-a-catalog).
157161

158162
1. On the **Microsoft DevCenter by Microsoft would like permission to:** page, review the permissions required, and then select **Authorize Microsoft Dev Center**.
159163

@@ -183,7 +187,7 @@ To add a catalog, complete the following tasks:
183187

184188
The repository now appears in the **Repositories** list for the lab.
185189

186-
## [GitHub repo with PAT](#tab/DevOpsRepoMSI/)
190+
## [GitHub repo with PAT](#tab/GitHubRepoPAT/)
187191

188192
### Get the clone URL and personal access token for GitHub
189193

@@ -478,7 +482,7 @@ The PowerShell script takes the following parameters:
478482
| `LabName` | The name of the lab. |
479483
| `ArtifactRepositoryName` | Name for the new artifact repository. The script creates a random name for the repository if it isn't specified. |
480484
| `ArtifactRepositoryDisplayName` | Display name that appears in the lab's artifact repository list. |
481-
| `RepositoryUri` | URI of the artifact repository, which you copied earlier.
485+
| `RepositoryUri` | URI of the artifact repository, which you copied earlier.|
482486
| `RepositoryBranch` | Repository branch that contains the artifacts. The default value is `main`.|
483487
| `FolderPath` | Folder that contains the artifacts. The default value is: `/Artifacts`.|
484488
| `PersonalAccessToken` | Security token for accessing the repository, which you copied earlier.|

0 commit comments

Comments
 (0)