[BUG] Microsoft.RecoveryServices/vaults updating softDeleteState does not work #34218
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Mgmt
This issue is related to a management-plane library.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
RecoveryServices
Service Attention
Workflow: This issue is responsible by Azure service team.
API Spec link
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/vaults.json
API Spec version
2025-02-01
Describe the bug
Hi,
it seems that updating the soft delete state does not work through the update process.
https://learn.microsoft.com/en-us/rest/api/recoveryservices/vaults/update?view=rest-recoveryservices-2025-02-01&tabs=HTTP&tryIt=true#code-try-0
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}?api-version=2025-02-01
If I want to update the softDeleteState it does not actually change anything, even though I get a
Response Code: 200
I can also see in the body of the response nothing has changed.
Expected behavior
Security Settings actually change
Actual behavior
Nothing, and no error
Reproduction Steps
use curl or https://learn.microsoft.com/en-us/rest/api/recoveryservices/vaults/update?view=rest-recoveryservices-2025-02-01&tabs=HTTP&tryIt=true#code-try-0
Post to a vault that does not have soft delete enabled:
I've noticed this is a bigger bug during testing, actually more affected than just the setting I want to change:
will error as it should but with no helpful message though
Will happily report 200 back, but won't notice that the setting does not actually exist, so my guess is everything below securitySettings is broken.
Environment
current rhel8 curl and edge
The text was updated successfully, but these errors were encountered: