Virtual Machine Scale Set in Failed Provisioning state due to failed installaiton of DependencyAgentLinux

Matthaios Vasalakis 0 Reputation points
2024-12-12T13:28:44.6033333+00:00

All the virtual machine scale sets for my AKS cluster nodepools are in failed State due to unsuccessful extension installations. They OS is Linux with size Standard_D32s_v5 (2 instances).

The following error log is provided

The handler for VM extension type 'Microsoft.Azure.Monitoring.DependencyAgent.DependencyAgentLinux' has reported terminal failure for VM extension 'DependencyAgentLinux' with error message: '[ExtensionOperationError] Non-zero exit code: 51, /var/lib/waagent/Microsoft.Azure.Monitoring.DependencyAgent.DependencyAgentLinux-9.10.18.4770/bin/time-limit 870 scripts/install.sh >/dev/null [stdout] [stderr] Unsupported distribution: Ubuntu 22.04.5 LTS The Dependency Agent was not installed. See https://aka.ms/ServiceMapTroubleshooting (exit code = 0x00000033) for assistance. '. 'Install handler failed for the extension. More information on troubleshooting is available at https://aka.ms/VMExtensionDependencyAgentLinuxTroubleshoot'

Uninstalling the extension fails. Even though the extension is not displayed anymore, the VMSS cannot be restarted and it remains in a failed state. The extension also doesn't appear anymore in az vmss extension list --resource-group $GROUP --vmss-name $VMSS.

Is it possible to disable the installation of the extensions? It's automatically installed since Cluster Insights are enabled, from what I understand.

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.
2,206 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
423 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 37,831 Reputation points Microsoft Employee
    2024-12-12T17:52:23.0633333+00:00

    @Matthaios Vasalakis

    I am wondering how your configuration is setup. When I created a new AKS cluster and enabled Container Insights I did not face any issues. DependencyAgentLinux is not compatible with Ubuntu 22.04 which explains the error, but I am unsure how this extension is being enabled. Please share the configuration so I can reproduce and escalate this if needed.

    Please let me know if you are still facing issues and I will be happy to assist.

    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.