With you workspace credentials, you can install the Linux agent by calling a wrapper-script hosted on GitHub. Perform the following steps:
- Run the following command to download the OMS agent for Linux, validate the checksum and install and onboard the agent to your Log Analytics workspace:
wget https://raw.githubusercontent.com/Microsoft/OMS-Agent-for-Linux/master/installer/scripts/onboard_agent.sh && sh onboard_agent.sh -w <YOUR WORKSPACE ID> -s <YOUR WORKSPACE PRIMARY KEY>
If you must use the Linux agent with a proxy, you can make use of the additional -p switch for specifying the proxy, and use the following command during installation:
wget https://raw.githubusercontent.com/Microsoft/OMS-Agent-for-Linux/master/installer/scripts/onboard_agent.sh ...