Skip to main content

session_host_managements

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

Overview

Namesession_host_managements
TypeResource
Idazure.desktop_virtualization.session_host_managements

Fields

NameDatatypeDescription
hostPoolNametextfield from the properties object
resourceGroupNametextfield from the properties object
scheduled_date_time_zonetextfield from the properties object
subscriptionIdtextfield from the properties object
updatetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECThostPoolName, resourceGroupName, subscriptionIdGet a SessionHostManagement.
list_by_host_poolSELECThostPoolName, resourceGroupName, subscriptionIdList SessionHostManagements by hostPool.
create_or_updateINSERThostPoolName, resourceGroupName, subscriptionId, data__propertiesCreate or update a SessionHostManagement.
updateUPDATEhostPoolName, resourceGroupName, subscriptionIdUpdate a SessionHostManagement.

SELECT examples

Get a SessionHostManagement.

SELECT
hostPoolName,
resourceGroupName,
scheduled_date_time_zone,
subscriptionId,
update
FROM azure.desktop_virtualization.vw_session_host_managements
WHERE hostPoolName = '{{ hostPoolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.desktop_virtualization.session_host_managements (
hostPoolName,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ hostPoolName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

UPDATE example

Updates a session_host_managements resource.

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