Skip to content

azurermAutomationHybridRunbookWorker

Manages a Automation Hybrid Runbook Worker.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new azurerm.automationHybridRunbookWorker.AutomationHybridRunbookWorker(
  this,
  "example",
  {
    automation_account_name: "${azurerm_automation_account.test.name}",
    resource_group_name: "${azurerm_resource_group.test.name}",
    vm_resource_id: "${azurerm_linux_virtual_machine.test.id}",
    worker_group_name:
      "${azurerm_automation_hybrid_runbook_worker_group.test.name}",
    worker_id: "00000000-0000-0000-0000-000000000000",
  }
);

Arguments Reference

The following arguments are supported:

  • resourceGroupName - (Required) The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.

  • automationAccountName - (Required) The name of the automation account in which the Hybrid Worker is created. Changing this forces a new resource to be created.

  • workerGroupName - (Required) The name of the HybridWorker Group. Changing this forces a new Automation to be created.

  • workerId - (Required) Specify the ID of this HybridWorker in UUID notation. Changing this forces a new Automation to be created.

  • vmResourceId - (Required) The ID of the virtual machine used for this HybridWorker. Changing this forces a new Automation to be created.

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

  • id - The ID of the Automation Hybrid Runbook Worker.

  • ip - The IP address of assigned machine.

  • lastSeenDateTime - Last Heartbeat from the Worker.

  • registrationDateTime - The registration time of the worker machine.

  • workerName - The name of HybridWorker.

  • workerType - The type of the HybridWorker, the possible values are hybridV1 and hybridV2.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 30 minutes) Used when creating the Automation.
  • read - (Defaults to 5 minutes) Used when retrieving the Automation.
  • delete - (Defaults to 10 minutes) Used when deleting the Automation.

Import

Automations can be imported using the resourceId, e.g.

terraform import azurerm_automation_hybrid_runbook_worker.example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.Automation/automationAccounts/account1/hybridRunbookWorkerGroups/group1/hybridRunbookWorkers/00000000-0000-0000-0000-000000000000