I am deploying Azure Log Analytics agent to an Ubuntu 18 VM. It is done with Azure Policy by using Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux
extension. I need to set proxy configuration. On windows systems, the proxy setting can be set at the deployment template with "proxyUri": "[parameters('proxyUri')]"
as the property of the agent. I can verify the proxy settings on the monitoring agent UI in Windows OS.
I have done the same declaration for Linux.
"parameters": {
"vmName": {
"type": "string"
},
"location": {
"type": "string"
},
"logAnalytics": {
"type": "string"
},
"proxyUri": {
"type": "String",
"defaultValue": "proxy_server_ipaddress",
"metadata": {
"description": "Proxy Settings', Proxy Server"
}
}
},
"resources": [
{
"name": "[concat(parameters('vmName'),'/omsPolicy')]",
"type": "Microsoft.Compute/virtualMachines/extensions",
"location": "[parameters('location')]",
"apiVersion": "2017-12-01",
"properties": {
"publisher": "Microsoft.EnterpriseCloud.Monitoring",
"type": "OmsAgentForLinux",
"typeHandlerVersion": "1.13",
"autoUpgradeMinorVersion": true,
"settings": {
"workspaceId": "[reference(parameters('logAnalytics'), '2015-03-20').customerId]",
"proxyUri": "[parameters('proxyUri')]"
},
"protectedSettings": {
"workspaceKey": "[listKeys(parameters('logAnalytics'), '2015-03-20').primarySharedKey]"
}
}
}
],
The agent extension is installed succesfully. But in the config file /etc/opt/microsoft/omsagent/conf/omsagent.conf , i couldn't find any proxy setting. Honestly, i don't know exactly where to check it on the system. And i couldn't find it on Microsoft documentation.
Does someone know how to check the proxy setting of Azure Log Analytics agent on Linux systems?