Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Shell command to enable sending container telemetry to an Azure Monitor Log Analytics workspace
sudo docker run --privileged -d -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/containers:/var/lib/docker/containers -e WSID="<YOUR WORKSPACE ID>" -e KEY="<YOUR WORKSPACE KEY>" -h=`hostname` -p --name="omsagent" --restart=always microsoft/oms:1.8.1-256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment