Skip to main content

host_pools

Creates, updates, deletes, gets or lists a host_pools resource.

Overview

Namehost_pools
TypeResource
Idazure.desktop_virtualization.host_pools

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
agent_updatetextfield from the properties object
app_attach_package_referencestextfield from the properties object
application_group_referencestextfield from the properties object
cloud_pc_resourcetextfield from the properties object
custom_rdp_propertytextfield from the properties object
direct_udptextfield from the properties object
etagtextThe etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
friendly_nametextfield from the properties object
hostPoolNametextfield from the properties object
host_pool_typetextfield from the properties object
identitytextIdentity for the resource.
kindtextMetadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
load_balancer_typetextfield from the properties object
managed_bytextfield from the properties object
managed_private_udptextfield from the properties object
management_typetextfield from the properties object
max_session_limittextfield from the properties object
object_idtextfield from the properties object
personal_desktop_assignment_typetextfield from the properties object
plantextPlan for the resource.
preferred_app_group_typetextfield from the properties object
private_endpoint_connectionstextfield from the properties object
public_network_accesstextfield from the properties object
public_udptextfield from the properties object
registration_infotextfield from the properties object
relay_udptextfield from the properties object
resourceGroupNametextfield from the properties object
ringtextfield from the properties object
skutextThe resource model definition representing SKU
sso_client_idtextfield from the properties object
sso_client_secret_key_vault_pathtextfield from the properties object
sso_secret_typetextfield from the properties object
ssoadfs_authoritytextfield from the properties object
start_vm_on_connecttextfield from the properties object
subscriptionIdtextfield from the properties object
validation_environmenttextfield from the properties object
vm_templatetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECThostPoolName, resourceGroupName, subscriptionIdGet a host pool.
listSELECTsubscriptionIdList hostPools in subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList hostPools.
create_or_updateINSERThostPoolName, resourceGroupName, subscriptionId, data__propertiesCreate or update a host pool.
deleteDELETEhostPoolName, resourceGroupName, subscriptionIdRemove a host pool.
updateUPDATEhostPoolName, resourceGroupName, subscriptionIdUpdate a host pool.
retrieve_registration_tokenEXEChostPoolName, resourceGroupName, subscriptionIdRegistration token of the host pool.

SELECT examples

List hostPools in subscription.

SELECT
description,
agent_update,
app_attach_package_references,
application_group_references,
cloud_pc_resource,
custom_rdp_property,
direct_udp,
etag,
friendly_name,
hostPoolName,
host_pool_type,
identity,
kind,
load_balancer_type,
managed_by,
managed_private_udp,
management_type,
max_session_limit,
object_id,
personal_desktop_assignment_type,
plan,
preferred_app_group_type,
private_endpoint_connections,
public_network_access,
public_udp,
registration_info,
relay_udp,
resourceGroupName,
ring,
sku,
sso_client_id,
sso_client_secret_key_vault_path,
sso_secret_type,
ssoadfs_authority,
start_vm_on_connect,
subscriptionId,
validation_environment,
vm_template
FROM azure.desktop_virtualization.vw_host_pools
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new host_pools resource.

/*+ create */
INSERT INTO azure.desktop_virtualization.host_pools (
hostPoolName,
resourceGroupName,
subscriptionId,
data__properties,
managedBy,
kind,
identity,
sku,
plan,
properties
)
SELECT
'{{ hostPoolName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ managedBy }}',
'{{ kind }}',
'{{ identity }}',
'{{ sku }}',
'{{ plan }}',
'{{ properties }}'
;

UPDATE example

Updates a host_pools resource.

/*+ update */
UPDATE azure.desktop_virtualization.host_pools
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
hostPoolName = '{{ hostPoolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified host_pools resource.

/*+ delete */
DELETE FROM azure.desktop_virtualization.host_pools
WHERE hostPoolName = '{{ hostPoolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';