Allow to deploy agent using GPO
I know there is way to deploy agent with workspace details but this requires to use the setup.exe file
Can you please provide a way to deploy with GPO?
You have a few options today:
- startup scripts from GPO’s would be the most generic way to install and configure the agent. Command line to silent install as well as script snippets on how to enable/disable/configure thru COM API are documented here https://azure.microsoft.com/en-us/documentation/articles/operational-insights-direct-agent/
- Powershell magazine came up with a DSC module that allows you to install the agent that way http://www.powershellmagazine.com/2014/11/26/dsc-resource-module-for-microsoft-monitoring-agent-install-and-configuration-for-azure-operational-insights/
- if the machines are in Azure, there is a VM extension http://azure.microsoft.com/en-us/updates/easily-enable-operational-insights-for-azure-virtual-machines/
Here are some steps to do this with a GPO that seem to work well but takes some work to get in place and you have to translate the page.
Benoit HAMET commented
Thank you for your reply BUT startup script means each time the server is rebooting the script is running and so the agent is re deployed
this means there is a need to work on the startup script to detect if the agent has been installed or not
this is not a good operation
Software deployment by GPO is clearly used to avoid reinstalling the software after a reboot - as well as to uninstall the software if the GPO is removed or if the GPO does not apply anymore to the computer object