Skip to content

Commit

Permalink
adding interval to run every n months
Browse files Browse the repository at this point in the history
  • Loading branch information
yahya committed Jun 29, 2020
1 parent a953246 commit 3128f01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 3128f01

Please sign in to comment.