diff --git a/main.tf b/main.tf index 4b0a212..361f823 100644 --- a/main.tf +++ b/main.tf @@ -7,7 +7,7 @@ resource "azurerm_automation_schedule" "schedule" { resource_group_name = var.resource_group_name automation_account_name = var.automation_account_name frequency = var.frequency - #interval = var.interval + interval = var.interval start_time = var.start_time expiry_time = var.expiry_time timezone = var.timezone diff --git a/variables.tf b/variables.tf index 07afae2..61278e1 100644 --- a/variables.tf +++ b/variables.tf @@ -65,3 +65,9 @@ variable "parameters" { description = "(Optional) A map of key/value pairs corresponding to the arguments that can be passed to the Runbook. Changing this forces a new resource to be created." default = {} } + +variable "interval" { + type = number + description = "(Optional) The number of frequencys between runs. Only valid when frequency is Day, Hour, Week, or Month and defaults to 1." + default = 1 +}