Skip to content

VMSS extension tries to install windows agent to AzureLinux VM 😄 #31656

@ozanonurtek

Description

@ozanonurtek

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

Metadata

Metadata

Labels

Auto-AssignAuto assign by botAuto-ResolveAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotact-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions