VMSS extension tries to install windows agent to AzureLinux VM 😄
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### 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_
Contributor guide
Assessment
This issue has not been assessed yet.