Closed jmalbarran closed 1 month ago
Thank you for opening this issue, we will look into it.
@jmalbarran can you try --query "[?properties.contentLength > 0].name"
Already did! It crashes with different error. Checked with JMSPath sintax, and it seems than event with number content, you have to quote the parameter.
Enviado desde Outlook para Androidhttps://aka.ms/AAb9ysg
From: Zhiyi Huang @.> Sent: Monday, August 5, 2024 5:23:46 AM To: Azure/azure-cli @.> Cc: Jose Manuel Albarrán @.>; Mention @.> Subject: Re: [Azure/azure-cli] CLI Blob list checking contentLength crashes (Issue #29645)
@jmalbarranhttps://github.com/jmalbarran can you try --query "[?properties.contentLength > 0].name"
— Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-cli/issues/29645#issuecomment-2268098663, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AT3JLNLLH464T5ZREMVOTA3ZP3V4FAVCNFSM6AAAAABL6BF3H2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRYGA4TQNRWGM. You are receiving this because you were mentioned.Message ID: @.***>
I got an answer in StackOverflow.
This is the solution --query "[?properties.contentLength > `0`].name"
Describe the bug
I'm trying to select all the blobs with content (basically, to avoid directories).
I'm trying the following query:
Azure CLI crashes with the following error:
The full trace is:
Related command
I'm trying to select all the blobs with content (basically, to avoid directories).
I'm trying the following query:
Errors
I'm trying to select all the blobs with content (basically, to avoid directories). Azure CLI crashes with the following error:
The full trace is:
Issue script & Debug output
I'm trying to select all the blobs with content (basically, to avoid directories).
I'm trying the following query:
Azure CLI crashes with the following error:
The full trace is:
Expected behavior
Return of all objects with size greater than 0 (avoid subdirectories)
Environment Summary
azure-cli 2.62.0
core 2.62.0 telemetry 1.1.0
Dependencies: msal 1.28.1 azure-mgmt-resource 23.1.1
Python location '/usr/local/Cellar/azure-cli/2.62.0/libexec/bin/python' Extensions directory '/Users/jmalbarran/.azure/cliextensions'
Python (Darwin) 3.11.9 (main, Apr 2 2024, 08:25:04) [Clang 15.0.0 (clang-1500.3.9.4)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response