azurerm_storage_mover_agent

Manages a Storage Mover Agent.

Example Usage

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "East US"
}

resource "azurerm_storage_mover" "example" {
  name                = "example-ssm"
  resource_group_name = azurerm_resource_group.example.name
}

resource "azurerm_storage_mover_agent" "example" {
  name                     = "example-sa"
  storage_mover_id         = azurerm_storage_mover.example.id
  arc_virtual_machine_id   = "${azurerm_resource_group.example.id}/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName"
  arc_virtual_machine_uuid = "3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9"
  description              = "Example Agent Description"
}

Arguments Reference

The following arguments are supported:

Attributes Reference

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

Timeouts

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

Import

Storage Mover Agent can be imported using the resource id, e.g.

terraform import azurerm_storage_mover_agent.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.StorageMover/storageMovers/storageMover1/agents/agent1