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.
How to create a specific Dev/Test Lab environment using ARM Template?
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
2 answers
Sort by: Most helpful
-
-
Monalla-MSFT 13,036 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.