Create Self Hosted Linux Build agent using release pipeline (ARM template) and override template parameter values using variables and scope for release pipeline.
ARM template
How to create Linux (Ubuntu) VSTS build agent using ARM template in Visual studio 2017
Using ARM template you can create new WLinux VM in a new/existing vNet, storage account, nic, and public ip with the new compute stack then install the Visual Studio Team Services build agent and all dependencies.
How to create windows VSTS build agent using ARM template in Visual studio 2017
Using ARM template you can create new Windows VM in a new vnet, storage account, nic, and public ip with the new compute stack then install the Visual Studio Team Services build agent.