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
Copy file name to clipboardExpand all lines: articles/devtest-labs/add-artifact-repository.md
+12-9Lines changed: 12 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ You must give the managed identity permissions to the repository in Azure Repos.
95
95
96
96
The repository now appears in the **Repositories** list for the lab.
97
97
98
-
## [Azure Repos repo with PAT](#tab/DevOpsRepoPAT/)
98
+
## [Azure Repos repo with a PAT](#tab/DevOpsRepoPAT/)
99
99
100
100
### Get the clone URL and personal access token for Azure Repos
101
101
@@ -154,13 +154,14 @@ To add an artifact repo, complete the following tasks:
154
154
155
155
-**Name**: A repository name to use in the lab.
156
156
-**Git clone URL**: The Git HTTPS clone URL from GitHub or Azure Repos.
157
+
-**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.
157
158
158
-
:::image type="content" source="media/devtest-lab-add-repo/devtestlab-repo-select-github-app.png" alt-text="Screenshot that shows the feilds for adding a repo." lightbox="media/devtest-lab-add-repo/devtestlab-repo-select-github-app.png":::
159
+
1. To install the Microsoft Dev Center app, select **Microsoft DevCenter GitHub app**.
159
160
160
-
1. If you're prompted to authenticate to GitHub, authenticate.
161
-
1. On the **Microsoft DevCenter** page, select **Install**.
161
+
:::image type="content" source="media/devtest-lab-add-repo/devtestlab-repo-select-github-app.png" alt-text="Screenshot that shows the feilds for adding a repo and the link for installing the DevCenter GitHub app." lightbox="media/devtest-lab-add-repo/devtestlab-repo-select-github-app.png":::
1. If you're prompted to authenticate to GitHub, authenticate.
164
+
1. On the **Microsoft DevCenter** page, select **Configure**.
164
165
165
166
1. Select the GitHub organization that contains the artifact repository that you want to add to the lab. You must be an owner of the organization to install this app.
166
167
@@ -191,7 +192,7 @@ To add an artifact repo, complete the following tasks:
191
192
1. In the **Repository** pane, enter the following information:
192
193
193
194
-**Name**: A repository name to use in the lab.
194
-
-**Git clone URL**: The Git HTTPS clone URL from GitHub Repos.
195
+
-**Git clone URL**: The Git HTTPS clone URL from GitHub.
195
196
-**Branch** (optional): The branch that has your artifact definitions.
196
197
-**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.
197
198
-**GitHub app**: Select this option to use GitHub app authentication.
@@ -202,15 +203,17 @@ To add an artifact repo, complete the following tasks:
202
203
203
204
The repository now appears in the **Repositories** list for the lab.
204
205
205
-
## [GitHub repo with PAT](#tab/GitHubRepoPAT/)
206
+
## [GitHub repo with a PAT](#tab/GitHubRepoPAT/)
206
207
207
208
### Get the clone URL and personal access token for GitHub
208
209
209
210
1. On the home page of the GitHub repository that stores your artifacts, select **Code**, and under **Clone**, copy the HTTPS URL.
210
211
1. Select your profile image in the upper-right corner of GitHub, and then select **Settings**.
211
-
1. On your profile page, in the left menu, select **Developer Settings**, and then select **Personal access tokens**.
212
+
1. On your profile page, in the left menu, select **Developer settings**, select **Personal access tokens**, and then select **Fine-grained tokens**.
212
213
1. Select **Generate new token**.
213
-
1. On the **New personal access token** page, under **Note**, enter a description for the token, if you want. Accept all the defaults, and then select **Generate token**.
214
+
1. On the **New fine-grained personal access token** page, enter a **Token name**.
215
+
1. Under Repository access, select **Only select repositories**, select the repo you want to add to the lab, and then select **Generate token**.
216
+
1. In the box that appears, select **Generate token** again.
214
217
1. Save the generated token.
215
218
216
219
### Add a GitHub artifact repository to a lab in the Azure portal
0 commit comments