Skip to content

Misbehaving --dryrun flag in az storage blob delete-batch #5575

@elibarzilay

Description

@elibarzilay

(Ubuntu, azure-cli 2.0.27, and showing storage as 2.0.25.)

I've tried playing with the new delete-batch, and could not figure out
how to use --if-modified-since or --if-unmodified-since -- no matter
what I did, it seems to always insist on deleting everything. After
lots of fiddling around, I used a new container just to experiment with,
and to my surprise, it looks like --dryrun just ignores these flags,
but when it's not used, there are not ignored (but have other, unrelated
issues).

If this is correct then this is a very bad problem, since it is common
to use a dry run flag to see what will be deleted, and ignoring these
flags means that I can end up deleting blobs unexpectedly.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions