» azurerm_dev_test_lab

Manages a Dev Test Lab.

» Example Usage

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

resource "azurerm_dev_test_lab" "example" {
  name                = "example-devtestlab"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name

  tags = {
    "Sydney" = "Australia"
  }
}

» Argument Reference

The following arguments are supported:

  • name - (Required) Specifies the name of the Dev Test Lab. Changing this forces a new resource to be created.

  • resource_group_name - (Required) The name of the resource group under which the Dev Test Lab resource has to be created. Changing this forces a new resource to be created.

  • location - (Required) Specifies the supported Azure location where the Dev Test Lab should exist. Changing this forces a new resource to be created.

  • storage_type - (Optional) The type of storage used by the Dev Test Lab. Possible values are Standard and Premium. Defaults to Premium. Changing this forces a new resource to be created.

  • tags - (Optional) A mapping of tags to assign to the resource.

» Attributes Reference

The following attributes are exported:

» Timeouts

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

  • create - (Defaults to 30 minutes) Used when creating the DevTest Lab.
  • update - (Defaults to 30 minutes) Used when updating the DevTest Lab.
  • read - (Defaults to 5 minutes) Used when retrieving the DevTest Lab.
  • delete - (Defaults to 30 minutes) Used when deleting the DevTest Lab.

» Import

Dev Test Labs can be imported using the resource id, e.g.

terraform import azurerm_dev_test_lab.lab1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DevTestLab/labs/lab1