Skip to content

Commit 5182a99

Browse files
committed
updates
1 parent c4c1a0f commit 5182a99

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

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

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ You must give the managed identity permissions to the repository in Azure Repos.
9595

9696
The repository now appears in the **Repositories** list for the lab.
9797

98-
## [Azure Repos repo with PAT](#tab/DevOpsRepoPAT/)
98+
## [Azure Repos repo with a PAT](#tab/DevOpsRepoPAT/)
9999

100100
### Get the clone URL and personal access token for Azure Repos
101101

@@ -154,13 +154,14 @@ To add an artifact repo, complete the following tasks:
154154

155155
- **Name**: A repository name to use in the lab.
156156
- **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.
157158

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**.
159160

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":::
162162

163-
:::image type="content" source="media/devtest-lab-add-repo/devtestlab-install-github-app.png" alt-text="Screenshot showing the DevCenter GitHub app installation page." lightbox="media/devtest-lab-add-repo/devtestlab-install-github-app.png":::
163+
1. If you're prompted to authenticate to GitHub, authenticate.
164+
1. On the **Microsoft DevCenter** page, select **Configure**.
164165

165166
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.
166167

@@ -191,7 +192,7 @@ To add an artifact repo, complete the following tasks:
191192
1. In the **Repository** pane, enter the following information:
192193

193194
- **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.
195196
- **Branch** (optional): The branch that has your artifact definitions.
196197
- **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.
197198
- **GitHub app**: Select this option to use GitHub app authentication.
@@ -202,15 +203,17 @@ To add an artifact repo, complete the following tasks:
202203

203204
The repository now appears in the **Repositories** list for the lab.
204205

205-
## [GitHub repo with PAT](#tab/GitHubRepoPAT/)
206+
## [GitHub repo with a PAT](#tab/GitHubRepoPAT/)
206207

207208
### Get the clone URL and personal access token for GitHub
208209

209210
1. On the home page of the GitHub repository that stores your artifacts, select **Code**, and under **Clone**, copy the HTTPS URL.
210211
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**.
212213
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.
214217
1. Save the generated token.
215218

216219
### Add a GitHub artifact repository to a lab in the Azure portal

0 commit comments

Comments
 (0)