Skip to content

az storage blob upload - early fail on overwrite error #25019

@hholst80

Description

@hholst80

It is quite reasonable that the tool reports an error at the start of the upload. That is the primary use case. It is very unexpected that the file will be removed during the upload. More likely the user is uploading a blob and is unaware of that it already exists. It is therefore better not to waste resources on uploading data that will be discarded.

An example:

trainer:/workdir/model# az storage blob upload -c models --file model.onnx --name p11808/model.onnx
Finished[#############################################################]  100.0000%
The specified blob already exists.
RequestId:1401d725-501e-0046-56b1-1e54bb000000
Time:2023-01-02T13:54:11.9826631Z
ErrorCode:BlobAlreadyExists
If you want to overwrite the existing one, please add --overwrite in your command.
trainer:/workdir/model#

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions