session_host_managements
Creates, updates, deletes, gets or lists a session_host_managements
resource.
Overview
Name | session_host_managements |
Type | Resource |
Id | azure.desktop_virtualization.session_host_managements |
Fields
- vw_session_host_managements
- session_host_managements
Name | Datatype | Description |
---|---|---|
hostPoolName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
scheduled_date_time_zone | text | field from the properties object |
subscriptionId | text | field from the properties object |
update | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Session host Managements of HostPool. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | hostPoolName, resourceGroupName, subscriptionId | Get a SessionHostManagement. |
list_by_host_pool | SELECT | hostPoolName, resourceGroupName, subscriptionId | List SessionHostManagements by hostPool. |
create_or_update | INSERT | hostPoolName, resourceGroupName, subscriptionId, data__properties | Create or update a SessionHostManagement. |
update | UPDATE | hostPoolName, resourceGroupName, subscriptionId | Update a SessionHostManagement. |
SELECT
examples
Get a SessionHostManagement.
- vw_session_host_managements
- session_host_managements
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 }}';
SELECT
properties
FROM azure.desktop_virtualization.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.desktop_virtualization.session_host_managements (
hostPoolName,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ hostPoolName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: scheduledDateTimeZone
value: string
- name: update
value:
- name: deleteOriginalVm
value: boolean
- name: maxVmsRemoved
value: integer
- name: logOffDelayMinutes
value: integer
- name: logOffMessage
value: string
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 }}';