Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix https://github.com/hashicorp/terraform-provider-azurerm/issues/17970 #7

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ resource "azurerm_automation_schedule" "every_12h_starting_7am" {
description = "This schedule runs every twelve hours staring 7 AM."
}

# Will allways be recreated to fix: https://github.com/hashicorp/terraform-provider-azurerm/issues/17970
resource "azurerm_automation_job_schedule" "set_deployment_schedules" {
resource_group_name = var.automation_account.resource_group_name
automation_account_name = var.automation_account.name
Expand All @@ -36,6 +37,10 @@ resource "azurerm_automation_job_schedule" "set_deployment_schedules" {
managementsubscriptionid = var.management_subscription_id
managementgroupid = var.management_group_id
}

lifecycle {
replace_triggered_by = [azurerm_automation_runbook.set_deployment_schedules]
}
}

resource "azurerm_automation_runbook" "set_deployment_schedules" {
Expand Down
Loading