Skip to main content

session_hosts

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

Overview

Namesession_hosts
TypeResource
Idazure.desktop_virtualization.session_hosts

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
agent_versiontextfield from the properties object
allow_new_sessiontextfield from the properties object
assigned_usertextfield from the properties object
friendly_nametextfield from the properties object
hostPoolNametextfield from the properties object
last_heart_beattextfield from the properties object
last_session_host_update_timetextfield from the properties object
last_update_timetextfield from the properties object
object_idtextfield from the properties object
os_versiontextfield from the properties object
resourceGroupNametextfield from the properties object
resource_idtextfield from the properties object
sessionHostNametextfield from the properties object
session_host_configurationtextfield from the properties object
session_host_health_check_resultstextfield from the properties object
sessionstextfield from the properties object
statustextfield from the properties object
status_timestamptextfield from the properties object
subscriptionIdtextfield from the properties object
sx_s_stack_versiontextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
update_error_messagetextfield from the properties object
update_statetextfield from the properties object
virtual_machine_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECThostPoolName, resourceGroupName, sessionHostName, subscriptionIdGet a session host.
listSELECThostPoolName, resourceGroupName, subscriptionIdList sessionHosts.
deleteDELETEhostPoolName, resourceGroupName, sessionHostName, subscriptionIdRemove a SessionHost.
updateUPDATEhostPoolName, resourceGroupName, sessionHostName, subscriptionIdUpdate a session host.
retry_provisioningEXEChostPoolName, resourceGroupName, sessionHostName, subscriptionIdRetry provisioning on a SessionHost.

SELECT examples

List sessionHosts.

SELECT
id,
name,
agent_version,
allow_new_session,
assigned_user,
friendly_name,
hostPoolName,
last_heart_beat,
last_session_host_update_time,
last_update_time,
object_id,
os_version,
resourceGroupName,
resource_id,
sessionHostName,
session_host_configuration,
session_host_health_check_results,
sessions,
status,
status_timestamp,
subscriptionId,
sx_s_stack_version,
system_data,
type,
update_error_message,
update_state,
virtual_machine_id
FROM azure.desktop_virtualization.vw_session_hosts
WHERE hostPoolName = '{{ hostPoolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

UPDATE example

Updates a session_hosts resource.

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

DELETE example

Deletes the specified session_hosts resource.

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