Azure / Azure/azure-cli

Depracated blob features not supported

Open
#25,298 3 comments 0 reactions 1 assignee Claimed by @evelyn-ys View on GitHub
act-codegen-extensibility-squad Auto-Assign Azure CLI Team customer-reported question Service Attention Storage
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

I need to search for a file using wildcards. All documentation indicates this is not supported by ADLS Gen 2, and to use the blob API instead.

When I use `az storage blob directory list` to search for a file, I get this message:

> This command is implicitly deprecated and because command group 'storage blob directory' is deprecated and will be removed in a future release. Use 'az storage fs directory' instead

Going by the docs, `az storage fs directory list` does not support two items of functionality:

* It only lists directories, not files
* It doesn't support "prefix search" on files, in fact no `fs` functions do.

Can you explain why this command is being deprecated when there is no other command to replace it.

ADLS Gen2 wildcard search is a glaring gap in functionality (it's not even supported in Storage Explorer)

My use case is that I have millions of files in a single folder and I need to find and download one of them, but I don't have container level access, only folder level access. Therefore I can't use `az storage fs file list` since it will return an enormous JSON file

---
#### Document Details

⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*

* ID: 677f1e65-8bbc-2905-b9bc-5c7761a4894c
* Version Independent ID: c40da9b2-8eea-976d-c80f-0e0d708b7745
* Content: [az storage fs directory](https://learn.microsoft.com/en-us/cli/azure/storage/fs/directory?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/storage/fs/directory.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/storage/fs/directory.yml)
* Service: **storage**
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

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.