Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created September 16, 2024 01:17
Show Gist options
  • Save KyMidd/62adfb174d240bc7b3f6a5db299e9de3 to your computer and use it in GitHub Desktop.
Save KyMidd/62adfb174d240bc7b3f6a5db299e9de3 to your computer and use it in GitHub Desktop.
resource "azurerm_maintenance_assignment_dynamic_scope" "accountB" {
provider = azurerm.accountB
name = "dynamic-scope-accountb"
maintenance_configuration_id = azurerm_maintenance_configuration.main.id
filter {
os_types = ["Windows"]
resource_types = ["Microsoft.Compute/virtualMachines"]
tag_filter = "All"
tags {
tag = "HostType"
values = ["Servers"]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment