Configuring the MMA extension when SCOM is already configured

MarcVanderhaegen 241 Reputation points
2022-01-18T12:43:54.633+00:00

Hello,
I am onboarding some servers into Arc and I am hitting a problem configuring the Monitoring Agent extension.
The Monitoring Agent is already installed on the machines because they are monitored through SCOM.

When the policy for installing the MMA is running, it fails after a long time with the error :

Extension Message: This machine is already connected to another Log Analytics workspace, or managed by System Center Operations Manager. Please set stopOnMultipleConnections to false in public settings or remove this property, so this machine can connect to new workspaces. Note that this machine may be billed multiple times for each workspace it report to. (MMAEXTENSION_ERROR_MULTIPLECONNECTIONS)

If I remove the configuration from the Operations Manager tab in the MMA on the server then, the config of the extension is successfull.

So my question is where can I configure this stopOnMultipleConnections setting ?
In the parameters tab of the policy I can only configure the workspace, there is no possibility to add the setting.

thanks in advance for your help.
Marc

Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
399 questions
0 comments No comments
{count} votes

Accepted answer
  1. Stanislav Zhelyazkov 23,421 Reputation points MVP
    2022-01-18T12:58:29.457+00:00

    Hi,
    The property should be specified by the automation tool you use. From what I can understand, the extension is being installed by policy in Azure Policy. In this case the policy is using ARM Template to apply the extension. If you are using built-in policy and you do not see option to provide the value when you assign the policy best is to clone the built-in policy definition and modify it according to your needs. Here you are able to see example how the property stopOnMultipleConnections is being used in ARM template deployment. You will have to add the same property and the value that you desire in the cloned policy definition. After that you save the definition, and you can do policy assignment with it. If you are using custom policy definition you can already edit it and add the property.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. MarcVanderhaegen 241 Reputation points
    2022-01-19T04:28:18.207+00:00

    Thank you very much.
    Your explanations helped me a lot.

    Regards

    Marc

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.