Azure Desktop Virtualization Host Pool
This page shows how to write Terraform and Azure Resource Manager for Desktop Virtualization Host Pool and write them securely.
azurerm_virtual_desktop_host_pool (Terraform)
The Host Pool in Desktop Virtualization can be configured in Terraform with the resource name azurerm_virtual_desktop_host_pool
. The following sections describe 10 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_virtual_desktop_host_pool" "pooleddepthfirst" {
location = var.region
resource_group_name = var.rgname
name = var.pooledhpname
friendly_name = var.pooledhpfriendlyname
description = var.pooledhpdescription
resource "azurerm_virtual_desktop_host_pool" "pooledbreadthfirst" {
name = "pooledbreadthfirst"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
type = "Pooled"
load_balancer_type = "BreadthFirst"
resource "azurerm_virtual_desktop_host_pool" "wvdhp" {
location = var.location
resource_group_name = azurerm_resource_group.hp.name
name = var.hpname
friendly_name = var.hpname
resource "azurerm_virtual_desktop_host_pool" "wvdhppooled" {
name = var.hppooled-name
location = var.location
resource_group_name = var.resourcename
type = "Pooled"
resource "azurerm_virtual_desktop_host_pool" "wvd" {
location = var.wvd.location
resource_group_name = var.wvd.name
name = var.wvd.name
friendly_name = var.wvd.name
type = "Pooled"
resource "azurerm_virtual_desktop_host_pool" "wvdhppooled" {
name = var.pooled-hp-name
location = azurerm_resource_group.wvdrg.location
resource_group_name = azurerm_resource_group.wvdrg.name
type = "Pooled"
resource "azurerm_virtual_desktop_host_pool" "wvdpool" {
location = var.location
resource_group_name = var.resource_group_name
name = azurecaf_name.wvdpool.result
friendly_name = try(var.settings.friendly_name, null)
description = try(var.settings.description, null)
resource "azurerm_virtual_desktop_host_pool" "avdhp1" {
location = var.region
resource_group_name = azurerm_resource_group.avdrg1.name
name = var.pooledhpname
friendly_name = var.pooledhpfriendlyname
resource "azurerm_virtual_desktop_host_pool" "hostpool" {
resource_group_name = var.rgname
location = var.location
name = var.hostpool
friendly_name = var.hostpool
validate_environment = true
resource "azurerm_virtual_desktop_host_pool" "pooleddepthfirst" {
location = var.region
resource_group_name = var.rgname
name = var.pooledhpname
friendly_name = var.pooledhpfriendlyname
description = var.pooledhpdescription
Parameters
-
custom_rdp_properties
optional - string -
description
optional - string -
friendly_name
optional - string -
id
optional computed - string -
load_balancer_type
required - string -
location
required - string -
maximum_sessions_allowed
optional - number -
name
required - string -
personal_desktop_assignment_type
optional - string -
preferred_app_group_type
optional - string
Preferred App Group type to display
-
resource_group_name
required - string -
tags
optional - map from string to string -
type
required - string -
validate_environment
optional - bool -
registration_info
list block-
expiration_date
required - string -
reset_token
optional computed - bool -
token
optional computed - string
-
-
timeouts
single block
Explanation in Terraform Registry
Manages a Virtual Desktop Host Pool.
Microsoft.DesktopVirtualization/hostpools (Azure Resource Manager)
The hostpools in Microsoft.DesktopVirtualization can be configured in Azure Resource Manager with the resource name Microsoft.DesktopVirtualization/hostpools
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
{
"contentVersion": "1.0.0.0",
"parameters": {
"workbookDisplayName": {
"type": "string",
{
"contentVersion": "1.0.0.0",
"parameters": {
"workbookDisplayName": {
"type": "string",
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workbookDisplayName": {
{
"contentVersion": "1.0.0.0",
"parameters": {
"workbookDisplayName": {
"type": "string",
Frequently asked questions
What is Azure Desktop Virtualization Host Pool?
Azure Desktop Virtualization Host Pool is a resource for Desktop Virtualization of Microsoft Azure. Settings can be wrote in Terraform.
Where can I find the example code for the Azure Desktop Virtualization Host Pool?
For Terraform, the diogofrj/Hashicorp, tkaburagi/boundary-vault-demo and INGourav/Azure-Resources source code examples are useful. See the Terraform Example section for further details.
For Azure Resource Manager, the mydur/AzMon, StellrMSP/STELLR-MSP and Bistech/Azure source code examples are useful. See the Azure Resource Manager Example section for further details.