Azure / Azure/azure-cli

CI intermittently fails with 'xxx' is misspelled or not recognized by the system

Open
#28,643 7 comments 0 reactions 4 assignees Claimed by @kairu-ms View on GitHub
Azure CLI Team CodeGen question
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

CI intermittently fails with 'xxx' is misspelled or not recognized by the system.

`monitor log-analytics workspace show`:

https://dev.azure.com/azclitools/public/_build/results?buildId=143891&view=logs&j=7fb4765b-0b16-5931-a619-9525bfc06049&t=34041a79-d541-52ce-7de5-4b24f268698c

```
> workspace_id = self.cmd('monitor log-analytics workspace show -n {workspace1} -g {rg}').get_output_in_json()['id']

/opt/az/lib/python3.11/site-packages/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py:2363:

ERROR cli.azure.cli.core.azclierror:azlogging.py:212 'show' is misspelled or not recognized by the system.

=========================== short test summary info ============================
FAILED tests/latest/test_vm_commands.py::VMMonitorTestUpdateLinux::test_vm_update_with_workspace_linux
```

https://github.com/Azure/azure-cli/blob/96828277d73a8ae4e407e6aef66aeff328798c52/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/log_analytics/workspace/_show.py#L14-L16

`vm generalize`:

https://dev.azure.com/azclitools/public/_build/results?buildId=141855&view=logs&j=788bfeb8-6c0f-5544-4e87-f6639738ee28&t=9eb1d89a-c9da-5ad8-571d-2d09b1c8859f

```
> self.cmd('vm generalize -g {rg} -n {vm1}')

/opt/az/lib/python3.11/site-packages/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py:524:

ERROR cli.azure.cli.core.azclierror:azlogging.py:212 'generalize' is misspelled or not recognized by the system.

=========================== short test summary info ============================
FAILED tests/latest/test_vm_commands.py::VMCustomImageTest::test_vm_custom_image_debian
```

https://github.com/Azure/azure-cli/blob/95af8f816501242a7b174228cec125a207d5d531/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vm/_generalize.py#L14-L16

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.