desktops
Creates, updates, deletes, gets or lists a desktops
resource.
Overview
Name | desktops |
Type | Resource |
Id | azure.desktop_virtualization.desktops |
Fields
- vw_desktops
- desktops
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | text | The name of the resource |
description | text | field from the properties object |
applicationGroupName | text | field from the properties object |
desktopName | text | field from the properties object |
friendly_name | text | field from the properties object |
icon_content | text | field from the properties object |
icon_hash | text | field from the properties object |
object_id | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
type | text | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | string | The name of the resource |
properties | object | Schema for Desktop properties. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | applicationGroupName, desktopName, resourceGroupName, subscriptionId | Get a desktop. |
list | SELECT | applicationGroupName, resourceGroupName, subscriptionId | List desktops. |
update | UPDATE | applicationGroupName, desktopName, resourceGroupName, subscriptionId | Update a desktop. |
SELECT
examples
List desktops.
- vw_desktops
- desktops
SELECT
id,
name,
description,
applicationGroupName,
desktopName,
friendly_name,
icon_content,
icon_hash,
object_id,
resourceGroupName,
subscriptionId,
system_data,
type
FROM azure.desktop_virtualization.vw_desktops
WHERE applicationGroupName = '{{ applicationGroupName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
properties,
systemData,
type
FROM azure.desktop_virtualization.desktops
WHERE applicationGroupName = '{{ applicationGroupName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
UPDATE
example
Updates a desktops
resource.
/*+ update */
UPDATE azure.desktop_virtualization.desktops
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
applicationGroupName = '{{ applicationGroupName }}'
AND desktopName = '{{ desktopName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';