Download and edit the template
- In , follow the steps to create a new agent, with Azure as the cloud provider.
- On the Deployment tab of the Agent details page, click Download. This will download the ARM/ACI template to your browser’s default download location, as a file named
arm-template.json. - Edit the template using your preferred text editor.
Customizing the template to use pre-created managed identities and roles allows you to enforce strict permissions and rerun the template to create multiple agents in the same resource group. Note that each agent must be deployed into a separate subnet due to Azure limitations.
Deploy the agent from the template
- On the Deployment tab of the Agent details page, click Launch. This will open the Azure portal at the Custom deployment screen, in a new browser tab.
- Click Edit template.
- Copy the text from the downloaded template file you have edited, and paste it into the Edit template screen, overwriting the JSON data already there.
- This will populate the Custom deployment screen with values from your edited template. You can modify these further if you wish, though this shouldn’t be necessary if you have made all the required changes in your template.
- Click Review & Create.

