Azure / Azure/azure-cli-extensions

Incorrect storage blob deprecation warning

Open
#5,732 1 comment 0 reactions 1 assignee Claimed by @evelyn-ys View on GitHub
Auto-Assign Azure CLI Team customer-reported feature-request Storage
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

### Related command
```bash
$ az storage blob list --container {}
This command has been deprecated and will be removed in future release. Use 'az storage fs file list' instead. For more information go to https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/azure/cli/command_modules/storage/docs/ADLS%20Gen2.md
The behavior of this command has been altered by the following extension: storage-preview
[
...
]
```

### Extension name (the extension in question)
storage-preview

### Description of issue (in as much detail as possible)
When running `az storage blob list` a warning is generated indicating that the command is deprecated and that `az storage fs file list` should be used instead (as shown above).

This is incorrect as `az storage fs` is for Azure Data Lake Gen2 and `az storage blob` is for standard blob storage. I am currently interacting with a StorageV2 account without hierarchical namespaces enabled so I cannot use `az storage fs file list`.

Trying to use `az storage fs file list` generates the following error: `This endpoint does not support BlobStorageEvents or SoftDelete. Please disable these account features if you would like to use this endpoint.`

Note that the output JSON generated from `az storage blob list` has also changed (not sure if this is due to the extension or not). Between Azure CLI 2.41.0 and 2.42.0, `az storage blob list` no longer contains the `container` field (there may be other differences as well).

### Version info
```bash
$ az version
{
"azure-cli": "2.43.0",
"azure-cli-core": "2.43.0",
"azure-cli-telemetry": "1.0.8",
"extensions": {
"storage-preview": "0.7.4"
}
}
```

Note: this issue first occurred in Azure CLI 2.42.0 (and I've confirmed that it does not exist in 2.41.0).

### Environment
Ubuntu 20.04.5 LTS running in WSL2: 5.10.102.1-microsoft-standard-WSL2

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.