Unable to disable azurerm_linux_web_app backups

Hi all
I am attempting to deploy an azurerm_linux_web_app but do not need backups but can’t find a way to disable them without also specifying a name, storage account and schedule. Why are these needed if the backups are disabled?

backup {
  enabled = false
}
╷
│ Error: Missing required argument
│ 
│   on modules/app_service/app_service.tf line 52, in resource "azurerm_linux_web_app" "dashboard":
│   52:   backup {
│ 
│ The argument "name" is required, but no definition was found.
╵
╷
│ Error: Missing required argument
│ 
│   on modules/app_service/app_service.tf line 52, in resource "azurerm_linux_web_app" "dashboard":
│   52:   backup {
│ 
│ The argument "storage_account_url" is required, but no definition was found.
╵
╷
│ Error: Insufficient schedule blocks
│ 
│   on modules/app_service/app_service.tf line 52, in resource "azurerm_linux_web_app" "dashboard":
│   52:   backup {
│ 
│ At least 1 "schedule" blocks are required.

Hi,
Based on the error your module is generating, there is a backup block declaration in your app_service.tf file, even though you are not using it. The backup block is optional, but since it is declared in your module, Terraform will request the mandatory information for this block, which includes name, schedule, and storage_account_url.

If you convert this backup block in your module into a dynamic block, it will solve this issue, as Terraform will only create this block if you are passing it to your module.