Categories
Uncategorized

Install the Azure Linux Agent

Perhaps as easy as? –

apt install waagent
service walinuxagent restart

——-NOT THE FOLLOWING?!—–

Choose the Azure Linux Agent release here:

https://github.com/Azure/WALinuxAgent/releases

Copy the URL to the tar.gz file

Go the the directory you want to download the file and enter

wget https://github.com/Azure/WALinuxAgent/archive/XXXXX.tar.gz

Expand the file

tar -xvf XXXXXXXX.tar.gz

Install the new python downloaded version

sudo python setup.py install --register-service

Restart the waagent service

sudo service waagent restart

Verify the version details

waagent -version

If you get an error saying setup tools is missing run the following:

To install setuptools on Debian:

sudo apt-get install python3-setuptools

For an older version of Python (Python 2.x):

sudo apt-get install python-setuptools

Reference: https://github.com/Azure/WALinuxAgent

Reference: https://cloudskillsup.com/upgrade-microsoft-azure-linux-python-agent-in-private-network-node/