terraform-provider-azurerm icon indicating copy to clipboard operation
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

Open ofbjansen opened this issue 3 years ago • 1 comments

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

ofbjansen avatar Jun 23 '22 08:06 ofbjansen

Also need this.

nbishopfnts avatar Aug 11 '22 18:08 nbishopfnts