Forum Discussion

Ahmed Atef's avatar
Ahmed Atef
Brass Contributor
Apr 11, 2018
Solved

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...
  • 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]"
    }
    }
    }

Resources