hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.61k stars 4.65k forks source link

Unable to disable backups on azurerm_linux_web_app #28018

Open scottpirrie opened 5 days ago

scottpirrie commented 5 days ago

Is there an existing issue for this?

Community Note

Terraform Version

1.9.8

AzureRM Provider Version

4.9.0

Affected Resource(s)/Data Source(s)

azurerm_linux_web_app

Terraform Configuration Files

resource "azurerm_linux_web_app" "dashboard" {
  ...
  backup {
    enabled = false
  }
}

Debug Output/Panic Output

╷
│ 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.

Expected Behaviour

App service created without backups enabled

Actual Behaviour

App service failed to be created as states name, storage_account_url and schedule are required

Steps to Reproduce

No response

Important Factoids

No response

References

No response