I am searching through Azure container and want to filter out blobs ending with certain suffixes. When I use the --query
parameter with a JMESPath contains
function, it is giving me an error.
When I run the command
az storage blob list \
--account-name $account_name \
--account-key $key \
--num-results $numResults \
--show-next-marker \
--container-name $container_name \
--query [].name
it runs without any error.
When I change the query to
--query [].name[?contains(@,'R00005006')=='true']
or
--query [].name[?contains(@,'R00005006')]
I get this error:
syntax error near unexpected token `('