Azure / Azure/azure-cli-extensions

az storage blob directory upload deprecated, but docs for az storage fs directory apply only to ADLS gen 2

Open
#3,589 3 comments 0 reactions 1 assignee Claimed by @Juliehzl View on GitHub
Documentation feature-request Storage
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 storage blob directory upload
Extension Name: storage-preview. Version: 0.7.3.`

**Errors:**
```
No errors, but deprecation message appears when running `az storage blob directory` commands. This advises using `az storage fs directory`, but this command is:
1. documentation says it is just for ADLS gen 2 - not Blob Storage.
1. the command is also currently in preview.
```

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

- _Put any pre-requisite steps here..._
- `az storage blob directory upload --account-name {} -c {} -d {} --account-key {} -s {} --recursive`

## Expected Behavior

## Environment Summary
```
Linux-5.4.0-1051-azure-x86_64-with-debian-10.2 (Cloud Shell)
Python 3.6.10
Installer: DEB

azure-cli 2.25.0

Extensions:
storage-preview 0.7.3
ai-examples 0.2.5
ssh 0.1.5

```
## Additional Context

This appears to be more of a documentation issue than anything. The documentation for `az storage fs directory` ( https://docs.microsoft.com/en-us/cli/azure/storage/fs?view=azure-cli-latest) indicates that these commands are for ADLS gen 2. This should indicate that they are for StorageV2 as well - because otherwise the deprecation message is very confusing for anyone using `az storage blob directory` against a StorageV2 account:

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

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.