Skip to content

Getting InvalidRange error when trying to download folders and files from file share via az storage file command #20383

@ravindrakmr

Description

@ravindrakmr

Describe the bug

When I try to download folders and files from Azure file share directory, I receive the below error -
HTTP status code=416, Exception=The range specified is invalid for the current size of the resource. ErrorCode: InvalidRangeInvalidRangeThe range specified is invalid for the current size of the resource

Though I can see it is downloading the files but looks like skipping the empty folders. I have also tried after deleting all the empty folders from file share but error is still there.
To Reproduce

To reproduce this error, try to download contents from Azure file share with "az storage file download-batch" command.

Environment summary

OS : RadHat Enterprise Linux 7.9
AZ CLI : 2.27.2

Additional context

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions