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

The following fields are returned by SELECT queries:

Successfully retrieved sessionHostManagement.

NameDatatypeDescription
propertiesobjectDetailed properties for SessionHostManagement

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, hostPoolNameGet a SessionHostManagement.
list_by_host_poolselectsubscriptionId, resourceGroupName, hostPoolNameList SessionHostManagements by hostPool.
create_or_updateinsertsubscriptionId, resourceGroupName, hostPoolName, data__propertiesCreate or update a SessionHostManagement.
updateupdatesubscriptionId, resourceGroupName, hostPoolNameUpdate a SessionHostManagement.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
hostPoolNamestringThe name of the host pool within the specified resource group
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get a SessionHostManagement.

SELECT
properties
FROM azure.desktop_virtualization.session_host_managements
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND hostPoolName = '{{ hostPoolName }}' -- required
;

INSERT examples

Create or update a SessionHostManagement.

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

UPDATE examples

Update a SessionHostManagement.

UPDATE azure.desktop_virtualization.session_host_managements
SET
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND hostPoolName = '{{ hostPoolName }}' --required
RETURNING
properties;