Skip to content

Find: the index result is not accurate #2805

@yugangw-msft

Description

@yugangw-msft

For command az find -q keyvault list, I don't think the vm/resource list should be in the list or at least they should come at the last.
This further causes test liketest_search_reindex are flaky, because when service team likefunctionapp team introduces command like functionapp list, it will bump out the last one of keyvault certificate list-versions, then the test will fail.
(@devigned, please prioritize the investigation. Either improve the index algorithm, or adjust the test. For repro, please pull from the functionapp branch)

(env27) admins-MacBook-Pro-2:azure-cli admin$ az find -q keyvault list
`az keyvault secret download`
    Download a secret from a KeyVault.

`az keyvault certificate download`
    Download a certificate from a KeyVault.

`az keyvault list`
    List key vaults.

`az network nic list`
    List network interfaces.
    Does not list network interfaces attached to VMs in VM scale sets.
    Use 'az vmss nic list' or 'az vmss nic list-vm-nics' to display
    that information.

`az resource list`
    List resources.

`az vm list`
    List information about Virtual Machines.
    For more information on querying information about Virtual
    Machines, see https://docs.microsoft.com/en-us/cli/azure/query-az-
    cli2.

`az keyvault certificate list`
    List certificates in the specified vault.

`az keyvault secret list`
    List secrets in the specified vault.

`az keyvault key list`
    List keys in the specified vault.

`az keyvault certificate list-versions`
    List the versions of a certificate.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions