Adding custom artifacts and templates to your Azure DevTest labs offers a great way to enhance your DevTest experience. To add this functionality to your DevTest Lab will you need to create a Git repository. «add more details»
In this example, I will show you how to create a repository in GitHub and then attach it to your Azure DevTest Lab.
Create Repository in GitHub
- Sign in or create an account with GitHub
- Create a repository.
- Not sure how to create a repository, check out GitHub help for instructions.
- In your new repository create two folders; Artifacts and Templates
- In the upper-right corner, select the profile image, and then select Settings.
- In the Personal settings menu on the left, select Developer settings
- In the Developer settings menu on the left, select Personal access tokens
- Select Generate new token.
- In the New personal access token page, provide a description (ex: Azure-DTL-PROD), and then select Generate Token.
- In the Personal Access token pages, make sure to copy your new personal access token now. You won’t be able to see it again.
- Warning: Treat your tokens like passwords and keep them secret.
- From here we can attach your lab with the repository.
Attach Repository to Azure DevTest Labs
- Go to your Azure DevTest lab in the portal.
- Under Settings, select Configuration and policies.
- Under External resources, select Repositories.
- Click Add
- On the Repositories page, fill out the required fields:
- Name: provide name for the repository
- Git clone URI: get the HTTPS link to the GitHub repository
- Branch: name of the branch (ex: master)
- Personal Access Token: The personal access token you generated in the previous section
- Folder Path
- Artifacts: path to the artifacts folder in your repository
- Templates: path to the templates folder in your repository
- Click Save
Once you have completed the two sections above you should be able to see your repository in the repositories section under External Resources.
Next steps will be to populate this repository.