ACR Images - Log Analytics agent failed to install
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