terraform-provider-azurerm
terraform-provider-azurerm copied to clipboard
Support for Day based monthly and yearly backup point in azurerm_backup_policy_file_share and azurerm_backup_policy_vm
Is there an existing issue for this?
- [X] I have searched the existing issues
Community Note
- Please vote on this issue by adding a :thumbsup: reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
Curently you can only create backup policies with a montly and yearly policy only for the first Sunday or Monday of a Week while the policy in the portal shows the option to set it up on a day of the month or year. It would be great to be able to setup the first day of the year/month as a backup retention option.
New or Affected Resource(s)/Data Source(s)
azurerm_backup_policy_file_share, azurerm_backup_policy_vm
Potential Terraform Configuration
***
rentention_monthly {
based = "Day"
on = ["1","15","Last"]
count = 12
}
retention_yearly {
based = "Day"
on = [1,"Last"]
count = 5
months = ["January","December"]
}
*** or ***
retention_yearly {
based = "Week" (or null)
count = 77
weekdays = ["Sunday"]
weeks = ["Last"]
months = ["January"]
}
References
No response
Also need this.