-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azurerm_backup_policy_vm
support instant_restore_retention_days
property
#8822
azurerm_backup_policy_vm
support instant_restore_retention_days
property
#8822
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @Lucretius - this lookgs good, but i am curious if the API will take 0 as a value?
Other then that question this is good to merge!
azurerm/internal/services/recoveryservices/tests/resource_arm_backup_policy_vm_test.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Lucretius - upon giving this a once more over i think instant_restore_retention_days
is a bit more clear. As such i've pushed a change to update it and am running tests
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we have a test failure, details on the line causing it i think
azurerm/internal/services/recoveryservices/resource_arm_backup_policy_vm.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/recoveryservices/resource_arm_backup_policy_vm.go
Outdated
Show resolved
Hide resolved
Hi @Lucretius - I just re-ran the tests and we're still seeing the error above:
|
@jackofallops I think I am going to have to close this PR, I cannot seem to figure out how to pass the correct value in here. I've tried leaving it out, specifying it as nil, providing a default (the value is apparently defaulted to 2). I've tried updating the backup SDK to the latest version in case it was an SDK bug - nothing seems to work, the same error shows up. |
Hi @Lucretius - I've had a quick dig and found that the problem seems to have been there's a default in the service ( |
azurerm_backup_policy_vm
support instant_restore_retention_days
property
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jackofallops LGTM
This has been released in version 2.34.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.34.0"
}
# ... other configuration ... |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Resolves #8321
I've added validation to ensure the retention range is at least 1 (it is in days, and zero didn't seem to make sense as an input) but let me know if this is incorrect.