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.