I'm not able to connect a Devops repository to create my own environment ARM template into DevTest lab. How to debug this issue?

Mohamad CHHIMI 66 Reputation points
2021-10-13T09:23:52.447+00:00

Hello,

I'm trying to add a personal AZURE DevOps repository to my AZURE DevTest Lab to create my own ARM template .
I succeeded to connect the repository to visualise my custom artifacts, but I'm not able to visualise my custom ARM template's environments.
To accomplish that I used an environment ARM template form the public repository on GitHub and I copied it on my personal DevOps repository and doesn't appear in the list of my available environments. ( For example the WebApp-MySQL environment)

How can i debug this issue ?

Best regards
Mohamad

Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
280 questions
0 comments No comments
{count} votes

Accepted answer
  1. kobulloc-MSFT 26,301 Reputation points Microsoft Employee
    2021-10-28T20:38:05.557+00:00

    Hello again @Mohamad CHHIMI ,

    When completing the documentation to add template repositories to the lab, it looks like the issue is the expected Azure Resource Manager template folder path. Each environment needs to be in its own folder and the recommendation is to have those folders in an environments/templates folder.

    For example, I have a copy of the WebApp template that I've made some modifications to. My GitHub repository looks like this:

    MyGitHubRepository/MyTemplates/MyWebAppTemplate

    144655-image.png

    When adding the Azure Resource Manager template repository, I need to enter the parent folder for the Azure Resource Manager template folder path:

    /MyTemplates

    144714-image.png

    After doing this, I'm able to see my ARM environment when creating a new lab:

    144733-image.png

    0 comments No comments

6 additional answers

Sort by: Most helpful
  1. Eric Roelofse 11 Reputation points
    2021-11-06T07:34:01.327+00:00

    Thank you very much for your response and help kobulloc-MSFT. For me it is not completely clear yet.

    So i would appreciate it very much if you could answer following:

    Which folder structure did you create in the root of your repo?

    Something like this

    Main (branch)
    /Artifacts/
    /Templates/

    And no extra folder below? Ex. /Templates/VM/

    And did you have to add a special reference in the Arm templates? We want to add a simple VM template (based on quickstart templates) Or are there no further requirements? And are ARM templates ony visible under DevTest lab Environments or can the the DevTest lab user select them also as Base ‘image’ from the list?

    Thank you!


  2. Paul Dash 31 Reputation points
    2024-11-13T04:52:14.74+00:00

    Having same issue as original poster. I've checked the directory structure and it is as per kobulloc-MSFT wrote in the accepted answer. Still not showing my Environment.

    Okay, I accept I might have done something wrong, but why is there no feedback, no way to diagnose?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.