azurerm_lighthouse_assignment

Manages a Lighthouse Assignment to a subscription, or to a resource group.

Example Usage

data "azurerm_subscription" "primary" {
}

resource "azurerm_lighthouse_assignment" "example" {
  scope                    = data.azurerm_subscription.primary.id
  lighthouse_definition_id = "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ManagedServices/registrationDefinitions/00000000-0000-0000-0000-000000000000"
}

Argument 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

Lighthouse Assignments can be imported using the resource id, e.g.

terraform import azurerm_lighthouse_assignment.example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ManagedServices/registrationAssignments/00000000-0000-0000-0000-000000000000