Skip to main content

desktops

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

Overview

Namedesktops
TypeResource
Idazure.desktop_virtualization.desktops

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
descriptiontextfield from the properties object
applicationGroupNametextfield from the properties object
desktopNametextfield from the properties object
friendly_nametextfield from the properties object
icon_contenttextfield from the properties object
icon_hashtextfield from the properties object
object_idtextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTapplicationGroupName, desktopName, resourceGroupName, subscriptionIdGet a desktop.
listSELECTapplicationGroupName, resourceGroupName, subscriptionIdList desktops.
updateUPDATEapplicationGroupName, desktopName, resourceGroupName, subscriptionIdUpdate a desktop.

SELECT examples

List 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 }}';

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 }}';