SOLVED

Automated Install of Monitoring Agents with Proxy Settings

%3CLINGO-SUB%20id%3D%22lingo-sub-252784%22%20slang%3D%22en-US%22%3EAutomated%20Install%20of%20Monitoring%20Agents%20with%20Proxy%20Settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-252784%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20to%20do%20automated%20install%20of%20the%20monitoring%20agents%20for%20both%20Windows%20and%20Linux%20with%20the%20ability%20to%20add%20in%20the%20proxy%20settings%20that%20are%20normally%20added%20manually%20after%20deployment.%20Looking%20for%20a%20method%20to%20do%20this%20via%20command%20line%20or%20a%20script%20without%20using%20ARM%20or%20Azure%20policy.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWould%20like%20to%20know%20if%20this%20is%20possible.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3ESean%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-252784%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAgents%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Log%20Analytics%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-259550%22%20slang%3D%22en-US%22%3ERe%3A%20Automated%20Install%20of%20Monitoring%20Agents%20with%20Proxy%20Settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-259550%22%20slang%3D%22en-US%22%3E%3CP%3EMuch%20appreciated!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-253024%22%20slang%3D%22en-US%22%3ERe%3A%20Automated%20Install%20of%20Monitoring%20Agents%20with%20Proxy%20Settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-253024%22%20slang%3D%22en-US%22%3E%3CP%3EHere%20is%20a%20link%20to%20the%20documentation%20on%20command%20line%20setup.%26nbsp%3B%20It%20has%20instructions%20for%20a%20silent%20installation%20and%20parameters%20for%20Proxy%20URL.%26nbsp%3B%20The%20OMS-Agent-for-Linux%20documentation%20also%20has%20instructions%20for%26nbsp%3Binstallation%20with%20a%20proxy%20server.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Flog-analytics%2Flog-analytics-agent-windows%23install-the-agent-using-the-command-line%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Flog-analytics%2Flog-analytics-agent-windows%23install-the-agent-using-the-command-line%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FMicrosoft%2FOMS-Agent-for-Linux%2Fblob%2FOMSAgent-201808-v1.6.0-163-hotfix-2%2Fdocs%2FOMS-Agent-for-Linux.md%23install-the-oms-agent-for-linux%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FMicrosoft%2FOMS-Agent-for-Linux%2Fblob%2FOMSAgent-201808-v1.6.0-163-hotfix-2%2Fdocs%2FOMS-Agent-for-Linux.md%23install-the-oms-agent-for-linux%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi All,

 

Is there a way to do automated install of the monitoring agents for both Windows and Linux with the ability to add in the proxy settings that are normally added manually after deployment. Looking for a method to do this via command line or a script without using ARM or Azure policy.

 

Would like to know if this is possible.

 

Thanks,

Sean

2 Replies
best response confirmed by Stanislav Zhelyazkov (MVP)
Solution

Here is a link to the documentation on command line setup.  It has instructions for a silent installation and parameters for Proxy URL.  The OMS-Agent-for-Linux documentation also has instructions for installation with a proxy server. 

 

https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-agent-windows#install-the-agent-u...

https://github.com/Microsoft/OMS-Agent-for-Linux/blob/OMSAgent-201808-v1.6.0-163-hotfix-2/docs/OMS-A...