ACR Images - Log Analytics agent failed to install

Mark James 1 Reputation point
2021-11-10T11:40:12.907+00:00

Please could someone advise or point me in the right direction with this one please.

We have various Linux container images and see this error on the VM Extension where the Log Analytics agent has failed to install which is set to auto install:

Automatic extension upgrade is not supported for this extension

OmsAgentForLinux

Status: transitioning or provisioning failed

I have seen these articles:

https://learn.microsoft.com/en-us/azure/virtual-machines/automatic-extension-upgrade

Where it mention Enabling Automatic Extension Upgrade

Azure CLI

az vm extension set \
--resource-group myResourceGroup \
--vm-name myVM \
--name DependencyAgentLinux \
--publisher Microsoft.Azure.Monitoring.DependencyAgent \
--version 9.5 \
--enable-auto-upgrade true

Or this article: https://learn.microsoft.com/en-us/azure/azure-monitor/agents/agent-linux-troubleshoot

Where it mentions:

Log Analytics agent extension in the Azure portal is marked with a failed state: Provisioning failed
Probable causes

Log Analytics agent has been removed from the operating system
Log Analytics agent service is down, disabled, or not configured
Resolution

Perform the following steps to correct the issue.
Remove extension from Azure portal.
Install the agent following the instructions.
Restart the agent by running the following command: sudo /opt/microsoft/omsagent/bin/service_control restart.
Wait several minutes and the provisioning state changes to Provisioning succeeded.

Has anyone successfully troubleshooted and resolved these issues please?

Many thanks,
Mark

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
382 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,080 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,848 questions
{count} votes