-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
Storageaz storageaz storagequestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Description
I have a storage account with a storage container called "backups".
when the storage container is empty (no blob backup files in it) this command works:
az storage blob delete-batch --source backups --if-unmodified-since `date -d "1 month ago" '+%Y-%m-%dT%H:%MZ'`
[]
the command above deletes the files that were not modified since the last month, and it works as expected.
if I upload one blob backup file into the storage container and run the same command, it errors:
az storage blob delete-batch --source backups --if-unmodified-since `date -d "1 month ago" '+%Y-%m-%dT%H:%MZ'`
The condition specified using HTTP conditional header(s) is not met.
<?xml version="1.0" encoding="utf-8"?><Error><Code>ConditionNotMet</Code><Message>**The condition specified using HTTP conditional header(s) is not met.**
RequestId:ce18a9b3-001e-0117-78ab-8bea95000000
Time:2018-01-12T13:45:08.3718745Z</Message></Error>
Another example:
I have uploaded two blob files into the same storage container (now the storage container is not empty, it contains the two blob backup files)
az storage blob delete-batch --source backups --if-unmodified-since `date -d "2 minutes ago" '+%Y-%m-%dT%H:%MZ'`
The condition specified using HTTP conditional header(s) is not met.
<?xml version="1.0" encoding="utf-8"?><Error><Code>ConditionNotMet</Code><Message>**The condition specified using HTTP conditional header(s) is not met.**
It errors but it has actually deleted one of the backup files that I uploaded 4 minutes ago.
It would be great to fix that error message since the delete operation is actually working properly. Thanks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Storageaz storageaz storagequestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that