Azure / Azure/azure-cli-extensions

'Memory Error' When trying to Query Log Analytics Space Using az monitor log-analytics query

Open
#5,479 2 comments 0 reactions 2 assignees Claimed by @AllyW View on GitHub
Auto-Assign Azure CLI Team customer-reported feature-request Monitor
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

### **This is autogenerated. Please review and update as needed.**

## Describe the bug

**Command Name**
`az monitor log-analytics query
Extension Name: log-analytics. Version: 0.2.2.`

**Errors:**
```
The command failed with an unexpected error. Here is the traceback:

Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 239, in invoke
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/output.py", line 146, in out
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/output.py", line 37, in format_json
File "json\__init__.py", line 238, in dumps
File "json\encoder.py", line 201, in encode
MemoryError

```

## To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

- Having a Log analytics Resource with data
- `az monitor log-analytics query --workspace {} --analytics-query {}`

## Expected Behavior
Return the result of the embedded Kusto Query
## Environment Summary
```
Windows-10-10.0.19043-SP0
Python 3.10.5
Installer: MSI

azure-cli 2.41.0

Extensions:
log-analytics 0.2.2
log-analytics-solution 0.1.1

Dependencies:
msal 1.20.0b1
azure-mgmt-resource 21.1.0b1
```
## Additional Context

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.