dataprotection - downgrade API version to 2025-07-01#31877
Conversation
|
Hi @sreallymatt , thanks for working on this! This is caused by the Secure by Default feature. Downgrade to In Backup vault, for API version 2025-09-01 or later, for regions |
|
Hi @QixiaLu - There do seem to be more than those 3 regions that prevent settings other than Terraform is showing a 406 here, due to a hardcoded |
|
Hi @sreallymatt , I have tested it in portal, seems like more regions are in Preview other than those documented in the learn site. The underlying 400 is expected as the secure by default feature only allows |
Community Note
Description
While tests were passing at the time of the version bump, it appears the API @ version
2025-09-01has introduced a new check, that's causing a 406 (which is really a 400, more on that below).2025-09-01no longer allowssoft_deletewith a value other thanAlwaysOn, thus the downgrade to2025-07-01as this version does not appear to have this problem.Error message for reference:
{ "error": { "additionalInfo": [ { "type": "UserFacingError", "info": { "message": "This API version requires backup vaults to have the soft delete setting configured to Enable Always-On Soft Delete.", "recommendedAction": [ "To use this API version, you must configure backup vaults with the soft delete setting set to Enable Always-On Soft Delete. If you don't want to enable this setting, use an older API version instead." ], "details": null, "code": "DppAlwaysOnSoftDeleteStateMandatory", "target": "", "innerError": null, "isRetryable": false, "isUserError": false } } ], "code": "DppAlwaysOnSoftDeleteStateMandatory", "message": "This API version requires backup vaults to have the soft delete setting configured to Enable Always-On Soft Delete.", "target": null, "details": null } }What this doesn't fix is the 406 responses on errors, this appears to be present in all API versions (tested all the way back to
2023-01-01). When theAcceptheader includes acharsetparameter, and the API request is invalid for some reason, the API responds with a 406 rather than a 400. The SDK used by the provider includes anAcceptheader with the value ofapplication/json; charset=utf-8; IEEE754Compatible=falsewhich has been present in the SDK since 2022, and in the provider since early 2023.PR Checklist
For example: “
resource_name_here- description of change e.g. adding propertynew_property_name_here”Changes to existing Resource / Data Source
Testing
RecoveryServices
DataProtection
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_resource- support for thething1property [GH-00000]This is a (please select all that apply):
Related Issue(s)
Fixes #31874
AI Assistance Disclosure
Rollback Plan
If a change needs to be reverted, we will publish an updated version of the provider.
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
Note
If this PR changes meaningfully during the course of review please update the title and description as required.