{"action":"opened","issue":{"url":"https://api.github.com/repos/Azure/azure-cli/issues/5575","repository_url":"https://api.github.com/repos/Azure/azure-cli","labels_url":"https://api.github.com/repos/Azure/azure-cli/issues/5575/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-cli/issues/5575/comments","events_url":"https://api.github.com/repos/Azure/azure-cli/issues/5575/events","html_url":"https://github.com/Azure/azure-cli/issues/5575","id":296875703,"number":5575,"title":"Misbehaving `--dryrun` flag in `az storage blob delete-batch`","user":{"login":"elibarzilay","id":185905,"avatar_url":"https://avatars2.githubusercontent.com/u/185905?v=4","gravatar_id":"","url":"https://api.github.com/users/elibarzilay","html_url":"https://github.com/elibarzilay","followers_url":"https://api.github.com/users/elibarzilay/followers","following_url":"https://api.github.com/users/elibarzilay/following{/other_user}","gists_url":"https://api.github.com/users/elibarzilay/gists{/gist_id}","starred_url":"https://api.github.com/users/elibarzilay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elibarzilay/subscriptions","organizations_url":"https://api.github.com/users/elibarzilay/orgs","repos_url":"https://api.github.com/users/elibarzilay/repos","events_url":"https://api.github.com/users/elibarzilay/events{/privacy}","received_events_url":"https://api.github.com/users/elibarzilay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-13T20:33:09Z","updated_at":"2018-02-13T20:33:09Z","closed_at":null,"author_association":"NONE","body":"(Ubuntu, azure-cli 2.0.27, and showing storage as 2.0.25.)\r\n\r\nI've tried playing with the new `delete-batch`, and could not figure out\r\nhow to use `--if-modified-since` or `--if-unmodified-since` -- no matter\r\nwhat I did, it seems to always insist on deleting *everything*.  After\r\nlots of fiddling around, I used a new container just to experiment with,\r\nand to my surprise, it looks like `--dryrun` just ignores these flags,\r\nbut when it's not used, there are not ignored (but have other, unrelated\r\nissues).\r\n\r\nIf this is correct then this is a very bad problem, since it is common\r\nto use a dry run flag to see what will be deleted, and ignoring these\r\nflags means that I can end up deleting blobs unexpectedly.\r\n"}}
{"actor":{"display_login":"elibarzilay"}}