azurerm_data_protection_backup_vault - add workaround for ArchiveStore datastore_type - #31985
azurerm_data_protection_backup_vault - add workaround for ArchiveStore datastore_type#31985ziyeqf wants to merge 7 commits into
azurerm_data_protection_backup_vault - add workaround for ArchiveStore datastore_type#31985Conversation
`ArchiveStore` datastore_type
There was a problem hiding this comment.
Pull request overview
This PR adds a workaround in the azurerm_data_protection_backup_vault resource to support datastore_type = "ArchiveStore" by sending an additional VaultStore entry in the service storageSettings, aligning with the Data Protection API’s requirement.
Changes:
- Add
ArchiveStoreworkaround by appending aVaultStorestorage setting during create/update. - Add new acceptance tests covering
datastore_typevaluesOperationalStoreandArchiveStore. - Update the resource documentation to reflect the currently supported
datastore_typevalues (removingSnapshotStorereferences).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
internal/services/dataprotection/data_protection_backup_vault_resource.go |
Implements the ArchiveStore workaround by adding required extra VaultStore storage setting. |
internal/services/dataprotection/data_protection_backup_vault_resource_test.go |
Adds acceptance coverage for OperationalStore and ArchiveStore datastore types. |
website/docs/r/data_protection_backup_vault.html.markdown |
Updates docs to match supported datastore types and removes outdated SnapshotStore note. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
This draft pull request is being closed because it has been inactive for 60 days ⏳. This helps our maintainers find and focus on the active contributions. If you would like to continue working on this, please reopen the pull request and mark it as ready for review when complete. Thank you! |
|
This draft pull request is being closed because it has been inactive for 60 days ⏳. This helps our maintainers find and focus on the active contributions. If you would like to continue working on this, please reopen the pull request and mark it as ready for review when complete. Thank you! |
This comment has been minimized.
This comment has been minimized.
|
Total: 11 Test Details
|
Community Note
Description
Per the error message, setting the
datastore_typetoArchiveStorerequires an addtional item ofStorageSettings.The schema was designed to only accept 1
datastore_type, considering this is currently the only known case, requires more than 1StorageSettings, added a workaround logic instead of introduce breaking change to the schema.PR Checklist
For example: “
resource_name_here- description of change e.g. adding propertynew_property_name_here”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_data_protection_backup_vault- add workaround forArchiveStoredatastore_type[GH-00000]This is a (please select all that apply):
Related Issue(s)
Fixes #31962
AI Assistance Disclosure
For code review
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.