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
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.
25
31
26
32
Select the tab for the type of repository and authentication you want to use.
27
33
@@ -83,7 +89,7 @@ You must give the managed identity permissions to the repository in Azure Repos.
83
89
84
90
The repository now appears in the **Repositories** list for the lab.
85
91
86
-
## [Azure Repos repo with PAT](#tab/DevOpsRepoMSI/)
92
+
## [Azure Repos repo with PAT](#tab/DevOpsRepoPAT/)
87
93
88
94
### Get the clone URL and personal access token for Azure Repos
89
95
@@ -119,7 +125,7 @@ The repository now appears in the **Repositories** list for the lab.
119
125
120
126
The repository now appears in the **Repositories** list for the lab.
@@ -152,8 +158,6 @@ To add a catalog, complete the following tasks:
152
158
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.
153
159
154
160
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).
157
161
158
162
1. On the **Microsoft DevCenter by Microsoft would like permission to:** page, review the permissions required, and then select **Authorize Microsoft Dev Center**.
159
163
@@ -183,7 +187,7 @@ To add a catalog, complete the following tasks:
183
187
184
188
The repository now appears in the **Repositories** list for the lab.
185
189
186
-
## [GitHub repo with PAT](#tab/DevOpsRepoMSI/)
190
+
## [GitHub repo with PAT](#tab/GitHubRepoPAT/)
187
191
188
192
### Get the clone URL and personal access token for GitHub
189
193
@@ -478,7 +482,7 @@ The PowerShell script takes the following parameters:
478
482
|`LabName`| The name of the lab. |
479
483
|`ArtifactRepositoryName`| Name for the new artifact repository. The script creates a random name for the repository if it isn't specified. |
480
484
|`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.|
482
486
|`RepositoryBranch`| Repository branch that contains the artifacts. The default value is `main`.|
483
487
|`FolderPath`| Folder that contains the artifacts. The default value is: `/Artifacts`.|
484
488
|`PersonalAccessToken`| Security token for accessing the repository, which you copied earlier.|
0 commit comments