hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.53k stars 4.6k forks source link

azurerm_automation update management ability to add virtual machine to schedule(s) #9543

Open Marcus-James-Adams opened 3 years ago

Marcus-James-Adams commented 3 years ago

Community Note

Description

This ties in with #2812 - New resource: azurerm_automation update management configuration https://github.com/terraform-providers/terraform-provider-azurerm/issues/2812

However and especially with the 3 resource groups per automation account it would be good if we had a separate resource/data set that allowed you to add/update a VM to an automation update schedule and also see which automation update schedules they are in

New or Affected Resource(s)

Exisiting

resource "azurerm_automation_software_virtualMachine_connection" "default" {
  location            = var.location
  name                = "thisname"
  azurerm_automation_account_id  = azurerm_automation_account.default.id
  azurerm_automation_account_id  = azurerm_automation_account.default.id
  azurerm_automation_UpdateSchedue_id = azurerm_automation_softwareUpdateConfigurations.myschedule.id
  azurerm_virtual_machine_id = azurerm_windows_virtual_machine.id

References

https://github.com/terraform-providers/terraform-provider-azurerm/issues/2812

wuxu92 commented 8 months ago

Hi @Marcus-James-Adams , does the new resource azurerm_automation_software_update_configuration fulfill your requirements?