Azure / Azure/azure-cli

az interactive JMESpath with `??` is not the same as with `--query`

Open
#19,288 4 comments 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad act-observability-squad customer-reported Functions Interactive Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

In az interactive mode you can use `??` to get the last command output and `??[jmespath query]` according to the documentation. However, the following works on the command line:

```
az functionapp show -n myapp -g mygroup --query "contains(usageState,'orm')"
```

but the equivalent does not in az interactive

```
functionapp show -n myapp -g mygroup
??[contains(usageName, 'orm')]
```

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.