Where is this azurerm backup policy vm workload tf plan wrong?

where is this azurerm_backup_policy_vm_workload tf plan wrong???

 # module.pa.module.azure_backup.azurerm_backup_policy_vm_workload.workload[0] will be created
  + resource "azurerm_backup_policy_vm_workload" "workload" {
      + id                  = (known after apply)
      + name                = "client-muse2-backup-policy-sql"
      + recovery_vault_name = "client-muse2-recovery-vault"
      + resource_group_name = "client-muse2-general-rg"
      + workload_type       = "SQLDataBase"

      + protection_policy {
          + policy_type = "Log"

          + backup {
              + frequency_in_minutes = 30
              + weekdays             = []
            }

          + simple_retention {
              + count = 35
            }
        }
      + protection_policy {
          + policy_type = "Differential"

          + backup {
              + frequency = "Weekly"
              + time      = "23:00"
              + weekdays  = [
                  + "Friday",
                  + "Monday",
                  + "Saturday",
                  + "Thursday",
                  + "Tuesday",
                  + "Wednesday",
                ]
            }
      + retention_weekly {
              + count    = 12
              + weekdays = [
                  + "Friday",
                  + "Monday",
                  + "Saturday",
                  + "Sunday",
                  + "Thursday",
                  + "Tuesday",
                  + "Wednesday",
                ]
            }
        }
      + protection_policy {
          + policy_type = "Full"

          + backup {
              + frequency = "Weekly"
              + time      = "23:00"
              + weekdays  = [
                  + "Sunday",
                ]
            }

          + retention_monthly {
              + count       = 12
              + format_type = "Weekly"
              + monthdays   = []
              + weekdays    = [
                  + "Sunday",
                ]
              + weeks       = [
                  + "First",
                ]
            }
         + retention_weekly {
              + count    = 12
              + weekdays = [
                  + "Sunday",
                ]
            }

          + retention_yearly {
              + count       = 7
              + format_type = "Weekly"
              + monthdays   = []
              + months      = [
                  + "January",
                ]
              + weekdays    = [
                  + "Sunday",
                ]
              + weeks       = [
                  + "First",
                ]
            }
        }

      + settings {
          + compression_enabled = true
          + time_zone           = "Eastern Standard Time"
        }
    }

I keep getting error of:

│ Error: creating Backup Policy (Subscription: "*********"
│ Resource Group Name: "client-muse2-general-rg"
│ Vault Name: "client-muse2-recovery-vault"
│ Backup Policy Name: "client-muse2-backup-policy-sql"): protectionpolicies.ProtectionPoliciesClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BMSUserErrorInvalidPolicyInput" Message="Input for create or update policy is not in proper format. Please check format of parameters like schedule time, schedule days, retention time and retention days "
│ 
│   with module.ua.module.azure_backup.azurerm_backup_policy_vm_workload.workload[0],
│   on .terraform/modules/azure_backup/main.tf line 366, in resource "azurerm_backup_policy_vm_workload" "workload":
│  366: resource "azurerm_backup_policy_vm_workload" "workload" {
│ 
│ creating Backup Policy (Subscription:
│ "*******"
│ Resource Group Name: "client-muse2-general-rg"
│ Vault Name: "client-muse2-recovery-vault"
│ Backup Policy Name: "client-muse2-backup-policy-sql"):
│ protectionpolicies.ProtectionPoliciesClient#CreateOrUpdate: Failure
│ responding to request: StatusCode=400 -- Original Error: autorest/azure:
│ Service returned an error. Status=400 Code="BMSUserErrorInvalidPolicyInput"
│ Message="Input for create or update policy is not in proper format. Please
│ check format of parameters like schedule time, schedule days, retention
│ time and retention days "

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.