Azure policy "Configure Log Analytics extension on Azure Arc enabled Linux servers" fails to install Log Analytics extensions 50 % of the cases

Edvinas Sulzickis 1 Reputation point
2022-01-06T11:20:30.017+00:00

Hello, I am trying to use Azure Arc functionality and update virtual machines on OCI cloud provider. To be able to run updates on non-azure machines there are few prerequisites:

  1. azcmagent installed on non-azure machines
  2. log analytics workspace on Azure cloud
  3. automation account for log analytics workspace
  4. log analytics agent extension on non-azure machines

I chose to use Azure Policy to install log analytics agent extension on non-azure machines, but policy fails to do so 50 % of the time. Either installing on completely new non-azure server or when I try to uninstall extension manually and create remediation task for Azure policy

Is it only me who experience that?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,181 questions
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

2 answers

Sort by: Most helpful
  1. AnuragSingh-MSFT 21,356 Reputation points
    2022-01-07T12:29:48.023+00:00

    Hi @Edvinas Sulzickis

    Welcome to Microsoft Q&A! Thanks for posting the question.

    The following questions should help narrow down the cause of these failures:

    1. Are there specific errors that you observe for these set of servers where the installation fails?

    2. Do these servers have something in common (restrictions placed, network connectivity, firewall or from security standpoint).

    3. On these servers, does the manual installation fail too? ref: Install Log Analytics agent on Linux computers

    You may use the Log Analytics Agent Linux Troubleshooting Tool to help investigate and resolve this issue.
    Please let me know if you have any questions.

    ---
    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.


  2. Andrew Blumhardt 9,856 Reputation points Microsoft Employee
    2022-01-07T17:37:23.357+00:00

    Here are some logs you can check. Verify that the OS version is supported, verify access to public endpoints (firewall ports), and confirm ARC activation. If you have a support agreement, consider opening a support case.

    /var/opt/azcmagent/log/himds.log
    /var/opt/azcmagent/log/azcmagent.log
    /opt/logs/dsc.log
    /opt/logs/dsc.telemetry.txt
    /var/lib/GuestConfig/ext_mgr_logs
    /var/lib/GuestConfig/extension_logs


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.