AzCli install LAD3.0

This script will use the details you input to install LAD 3.0 on all Linux VMs in a specific subscription ID.

Requirements

  • PrivateConfig.json and publicConfig files must be located in the same directory with this script.
  • The details for LAD configuration must be set in advance in the Azure Portal.

Script execution

  • Save the script in a location of you choice, e.g:
/home/you_username
  • make the script executable:
chmod +x script_name.sh
  • execute the script:
./script_name.sh

Note

  • replace script_name.sh with the actual script name
  • All VMs will be updated one by one, the script doesn't run any parallel tasks, therefore, for a large pool of VMs, expect to take a long time to complete.
  • Don't kill the script unless the script runs into errors.

Documentation

Please note that this script is based on the above links. The only difference is that this script is built to run through all the VMs in a subscription ID and install the extension on each, one by one.

Disclaimer

  • This script is provided "as it is" without any waranty. Please make sure you test it in a non production environment before using it in a production one.
  • I or the company I work for won't take any responsability for the damage the use of this script may cause

USE IT AT YOUR OWN RISK!