Forum Discussion
Ahmed Atef
Apr 11, 2018Brass Contributor
Adding OMS agent to VM via ARM Template and using proxy settings
Hi all, I trying to deploy the OMS agent on windows server, using an ARM Template and setting the proxy settings in the template as well. i can install the agent as extension using the follo...
- Apr 12, 2018
Hi,
Can you try by adding proxyUri to the settings. I think that should work.
{ "type": "Microsoft.Compute/virtualMachines/extensions", "name": "[concat(parameters('vmName'),'/','MMAAgent')]", "apiVersion": "2015-05-01-preview", "location": "[resourceGroup().location]", "properties": { "publisher": "Microsoft.EnterpriseCloud.Monitoring", "type": "MicrosoftMonitoringAgent", "typeHandlerVersion": "1.0", "autoUpgradeMinorVersion": true, "settings": { "workspaceId": "[reference(resourceId(parameters('OMSResourceGroupName'),'Microsoft.OperationalInsights/workspaces/', parameters('workspaceName')), '2015-03-20').customerId]", "proxyUri": "[parameters('ProxyUri')]" }, "protectedSettings": { "workspaceKey": "[listKeys(resourceId(parameters('OMSResourceGroupName'),'Microsoft.OperationalInsights/workspaces/', parameters('workspaceName')), '2015-03-20').primarySharedKey]" } } }
Apr 12, 2018
Hi,
Can you try by adding proxyUri to the settings. I think that should work.
{ "type": "Microsoft.Compute/virtualMachines/extensions", "name": "[concat(parameters('vmName'),'/','MMAAgent')]", "apiVersion": "2015-05-01-preview", "location": "[resourceGroup().location]", "properties": { "publisher": "Microsoft.EnterpriseCloud.Monitoring", "type": "MicrosoftMonitoringAgent", "typeHandlerVersion": "1.0", "autoUpgradeMinorVersion": true, "settings": { "workspaceId": "[reference(resourceId(parameters('OMSResourceGroupName'),'Microsoft.OperationalInsights/workspaces/', parameters('workspaceName')), '2015-03-20').customerId]", "proxyUri": "[parameters('ProxyUri')]" }, "protectedSettings": { "workspaceKey": "[listKeys(resourceId(parameters('OMSResourceGroupName'),'Microsoft.OperationalInsights/workspaces/', parameters('workspaceName')), '2015-03-20').primarySharedKey]" } } }
Ahmed Atef
Apr 12, 2018Brass Contributor
yes that worked perfectly,
Thanks
Thanks