Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.68k stars 5.1k forks source link

Storage Blob Service `deleteRetentionPolicy` should not have restricts when `RestorePolicy` is disabled #11236

Open yupwei68 opened 4 years ago

yupwei68 commented 4 years ago
  1. PUT https://management.azure.com/subscriptions/{{subscriptionId}}/resourceGroups/yupstr/providers/Microsoft.Storage/storageAccounts/yups/blobServices/default?api-version=2019-06-01 { "properties": { "cors": { "corsRules": [] }, "deleteRetentionPolicy": { "enabled": true, "days":12 }, "RestorePolicy": { "enabled": true, "days":7 }, "isVersioningEnabled": true, "changeFeed":{ "enabled":true } } }

  2. https://management.azure.com/subscriptions/{{subscriptionId}}/resourceGroups/yupstr/providers/Microsoft.Storage/storageAccounts/yups/blobServices/default?api-version=2019-06-01 { "properties": { "cors": { "corsRules": [] }, "deleteRetentionPolicy": { "enabled": true, "days":5 }, "RestorePolicy": { "enabled": false }, "isVersioningEnabled": true, "changeFeed":{ "enabled":true } } }

Response: { "error": { "code": "ContainerOperationFailure", "message": "Blob Delete Retention policy days should be longer than Point In Time Restore policy days.\nRequestId:feb1f7f7-401e-000e-7d8e-a33552000000\nTime:2020-10-16T07:29:21.9434562Z" } }

ghost commented 3 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.

Issue Details
1. PUT https://management.azure.com/subscriptions/{{subscriptionId}}/resourceGroups/yupstr/providers/Microsoft.Storage/storageAccounts/yups/blobServices/default?api-version=2019-06-01 { "properties": { "cors": { "corsRules": [] }, "deleteRetentionPolicy": { "enabled": true, "days":12 }, "RestorePolicy": { "enabled": true, "days":7 }, "isVersioningEnabled": true, "changeFeed":{ "enabled":true } } } 2. https://management.azure.com/subscriptions/{{subscriptionId}}/resourceGroups/yupstr/providers/Microsoft.Storage/storageAccounts/yups/blobServices/default?api-version=2019-06-01 { "properties": { "cors": { "corsRules": [] }, "deleteRetentionPolicy": { "enabled": true, "days":5 }, "RestorePolicy": { "enabled": false }, "isVersioningEnabled": true, "changeFeed":{ "enabled":true } } } Response: { "error": { "code": "ContainerOperationFailure", "message": "Blob Delete Retention policy days should be longer than Point In Time Restore policy days.\nRequestId:feb1f7f7-401e-000e-7d8e-a33552000000\nTime:2020-10-16T07:29:21.9434562Z" } }
Author: yupwei68
Assignees: MyronFanQiu
Labels: `Service Attention`, `Storage`, `needs-triage`
Milestone: -
blueww commented 3 years ago

@zfchen95 This looks like a server issue, would you like help to look?

yupwei68 commented 3 years ago

@blueww The service team (Mgmt and data plan) is fixing this problem. They give me an ETA of March.

blueww commented 3 years ago

@yupwei68 Thanks for the update! Then let's wait for the fix.

invidian commented 8 months ago

@yupwei68 has this been fixed?