Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Reference feedback]: Release notes for version 2.68.0 do not inform about breaking change: removal of "az storage blob directory" #30664

Open
bjosko96 opened this issue Jan 15, 2025 · 5 comments
Assignees
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage This is a new issue that needs to be triaged to the appropriate team. Possible-Solution question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue Storage az storage
Milestone

Comments

@bjosko96
Copy link

Type of issue

Missing information

Reference command name

az storage blob directory upload

Feedback

Hi! Starting today, when calling the az storage blob directory upload command in the AzureCLI inside Azure DevOps pipeline, we are getting the following error:

ERROR: 'directory' is misspelled or not recognized by the system.

The https://learn.microsoft.com/en-us/cli/azure/storage/blob/directory says it is deprecated but not removed. Also the latest release notes published yesterday https://learn.microsoft.com/en-us/cli/azure/release-notes-azure-cli#january-14-2025 do not mention any change to this command group ('storage blob directory' command group).

Can you help me to find out what is the reason of such error? Our guess is that this deprecated command group has been removed.
We are using StorageV2 blob storage account, not the "Data Lake Gen2". So an alternative command would be az storage blob upload-batch and not the az storage fs directory upload, correct?

Page URL

https://learn.microsoft.com/en-us/cli/azure/storage/blob/directory?view=azure-cli-latest

Content source URL

https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/storage/blob/directory.yml

Author

@dbradish-microsoft

Document Id

43fb2b4e-3f87-f3b8-2e85-ed5812a69ffc

@bjosko96 bjosko96 added the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jan 15, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Storage az storage labels Jan 15, 2025
@yonzhan
Copy link
Collaborator

yonzhan commented Jan 15, 2025

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jan 15, 2025
Copy link

Here are some similar issues that might help you. Please check if they can solve your problem.


Possible solution (Extracted from existing issue, might be incorrect; please verify carefully)

az storage fs file list is indeed the correct command to use. az storage blob directory has been deprecated as shown.

Reference:

@bjosko96
Copy link
Author

I noticed this commits merged earlier today: Azure/azure-cli-extensions@45f28fe which seems to confirm our assumption that this command group has really been removed:)

@yonzhan yonzhan added this to the Backlog milestone Jan 15, 2025
@gabrielSoudry
Copy link

For those who want a temporary solution, I pin this version:

az extension add --name storage-preview --version 0.4.0
and it works 👍

@calvinhzy
Copy link
Member

The az storage blob directory command group has been deprecated since late 2020, so we have decided to remove it from newer versions. h ttps://github.com/Azure/azure-cli-extensions/pull/2365
Using the command groups az storage blob and az storage fs directory should cover the same functionalities with newer features. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage This is a new issue that needs to be triaged to the appropriate team. Possible-Solution question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue Storage az storage
Projects
None yet
Development

No branches or pull requests

5 participants