How to create a specific Dev/Test Lab environment using ARM Template?

Luis Simoes 1 Reputation point
2021-02-10T10:44:00.837+00:00

I am trying to automate the creation of Dev/Test Lab environments using ARM Templates. Currently my environments options are stored in GitHub and lets say I have a specific environment called "Env1" that deploys PaaS services.

I wanted to use ARM Templates to trigger the creation of the environment called "Env1" passing all the required parameters.

How can I achieve this? I was only able to find examples in Powershell.

Thank you

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

2 answers

Sort by: Most helpful
  1. Sam Cogan 10,322 Reputation points MVP
    2021-02-10T14:11:48.23+00:00

    ARM Templates support passing in parameters either at the command line, or using a parameters file, you can see how to create a parameters file here. You can then create a separate parameters file for each environment and pass in the appropriate file name at the time you deploy.

    0 comments No comments

  2. Monalla-MSFT 12,121 Reputation points
    2021-02-22T16:15:35.243+00:00

    Hello @Luis Simoes - Thanks for reaching out.

    On top of what @Sam Cogan has provided, Automation is definitely possible using the API's and ARM templates. We might not have custom scripts available to do so.

    Did you take a look at these docs - Create-lab-windows-vm-template

    documentation on REST API's - DevTestLab

    If the above response helped, please "Accept as Answer" so it can be beneficial to the community.

    0 comments No comments