Introduction

With the Azure Custom Script extension we can execute scripts on Azure VMs for post deployment configuration, software installation, or any other configuration / management task.

In this demo we will see how to proceed a silent installation of Azure CLI on an Azure DevOps virtual machine scale set agent.

Custom Script

Demo

Automation Study Group

Code

The main tip here with local Linux script, is that the local script must be base64 encoded, with terraform we can do this with the base64encode native function.

Conclusion

In this demo we saw how to push Custom Script that could be located on your code, it’s an interesting use case if you want maintain those scripts in your favorite version control software.

See you in the Cloud

Jamesdld

--

--