Manages the Registration Info for a Virtual Desktop Host Pool.
resource "azurerm_resource_group" "example" {
name = "example-hostpool"
location = "westeurope"
}
resource "azurerm_virtual_desktop_host_pool" "example" {
name = "example-HP"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
type = "Pooled"
validate_environment = true
load_balancer_type = "BreadthFirst"
}
resource "azurerm_virtual_desktop_host_pool_registration_info" "example" {
hostpool_id = azurerm_virtual_desktop_host_pool.example.id
expiration_date = "2022-01-01T23:40:52Z"
}
The following arguments are supported:
expiration_date
- (Required) A valid RFC3339Time
for the expiration of the token..
hostpool_id
- (Required) The ID of the Virtual Desktop Host Pool to link the Registration Info to. Changing this forces a new Registration Info resource to be created. Only a single virtual_desktop_host_pool_registration_info resource should be associated with a given hostpool. Assigning multiple resources will produce inconsistent results.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Virtual Desktop Host Pool Registration Info resource.
token
- The registration token generated by the Virtual Desktop Host Pool for registration of session hosts.
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the AVD Registration Info.read
- (Defaults to 5 minutes) Used when retrieving the AVD Registration Info.update
- (Defaults to 30 minutes) Used when updating the AVD Registration Info.delete
- (Defaults to 30 minutes) Used when deleting the AVD Registration Info.AVD Registration Infos can be imported using the resource id
, e.g.
terraform import azurerm_virtual_desktop_host_pool_registration_info.example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.DesktopVirtualization/hostPools/pool1/registrationInfo/default