azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

VMSS extension tries to install windows agent to AzureLinux VM 😄

Open ozanonurtek opened this issue 6 months ago • 3 comments

Describe the bug

I try to install NetworkWatcherAgentLinux to Azure Linux VMSS but it tries to install windows agent.

Related command

az vmss extension set
--resource-group my-rg
--vmss-name my-vmss
--name NetworkWatcherAgentLinux
--publisher Microsoft.Azure.NetworkWatcher
--settings '{}'
--protected-settings '{}'
--enable-auto-upgrade true

Errors

(VMExtensionHandlerNonTransientError) The handler for VM extension type 'Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows' has reported terminal failure for VM extension 'AzureNetworkWatcherExtension' with error message: '[ExtensionOperationError] Non-zero exit code: 127, /var/lib/waagent/Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows-1.4.3614.3/NetworkWatcherAgent\install.cmd [stdout]

[stderr] /bin/sh: line 1: /var/lib/waagent/Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows-1.4.3614.3/NetworkWatcherAgentinstall.cmd: No such file or directory '.

'Install handler failed for the extension. More information on troubleshooting is available at https://aka.ms/vmextensionlinuxtroubleshoot' Code: VMExtensionHandlerNonTransientError Message: The handler for VM extension type 'Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows' has reported terminal failure for VM extension 'AzureNetworkWatcherExtension' with error message: '[ExtensionOperationError] Non-zero exit code: 127, /var/lib/waagent/Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows-1.4.3614.3/NetworkWatcherAgent\install.cmd [stdout]

[stderr] /bin/sh: line 1: /var/lib/waagent/Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows-1.4.3614.3/NetworkWatcherAgentinstall.cmd: No such file or directory '.

'Install handler failed for the extension. More information on troubleshooting is available at https://aka.ms/vmextensionlinuxtroubleshoot' Target: 0

Issue script & Debug output

Don't want to delete 100s of sensitive information manually.

Expected behavior

Just install the correct network agent

Environment Summary

➜ ~ az --version azure-cli 2.72.0 *

core 2.72.0 * telemetry 1.1.0

Extensions: aks-preview 13.0.0b8 scheduled-query 1.0.0b1 ssh 2.0.6

Dependencies: msal 1.32.3 azure-mgmt-resource 23.1.1

Python location '/opt/homebrew/Cellar/azure-cli/2.72.0/libexec/bin/python' Config directory '/Users/ozantek/.azure' Extensions directory '/Users/ozantek/.azure/cliextensions'

Python (Darwin) 3.12.10 (main, Apr 8 2025, 11:35:47) [Clang 16.0.0 (clang-1600.0.26.6)]

Legal docs and information: aka.ms/AzureCliLegal

Additional context

No response

ozanonurtek avatar Jun 14 '25 14:06 ozanonurtek

Hi @ozanonurtek,

2.72.0 is not the latest Azure CLI(2.74.0).

If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.

Thank you for opening this issue, we will look into it.

yonzhan avatar Jun 14 '25 14:06 yonzhan

I have updated my az cli to 2.74.0 issue remains same.

@yonzhan Also this issue has already reported to Azure VM team by me with case number 2505140050001938 and seems like root cause is not resolved. So I have created a ticket to here because I'm unsure that if this problem is related with the az cli client or basically VMSS/Network teams.

ozanonurtek avatar Jun 14 '25 14:06 ozanonurtek