Skip to main content

workspaces

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

Overview

Nameworkspaces
TypeResource
Idazure.desktop_virtualization.workspaces

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
application_group_referencestextfield from the properties object
cloud_pc_resourcetextfield from the properties object
etagtextThe etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
friendly_nametextfield from the properties object
identitytextIdentity for the resource.
kindtextMetadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
managed_bytextfield from the properties object
object_idtextfield from the properties object
plantextPlan for the resource.
private_endpoint_connectionstextfield from the properties object
public_network_accesstextfield from the properties object
resourceGroupNametextfield from the properties object
skutextThe resource model definition representing SKU
subscriptionIdtextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, workspaceNameGet a workspace.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList workspaces.
list_by_subscriptionSELECTsubscriptionIdList workspaces in subscription.
create_or_updateINSERTresourceGroupName, subscriptionId, workspaceNameCreate or update a workspace.
deleteDELETEresourceGroupName, subscriptionId, workspaceNameRemove a workspace.
updateUPDATEresourceGroupName, subscriptionId, workspaceNameUpdate a workspace.

SELECT examples

List workspaces in subscription.

SELECT
description,
application_group_references,
cloud_pc_resource,
etag,
friendly_name,
identity,
kind,
managed_by,
object_id,
plan,
private_endpoint_connections,
public_network_access,
resourceGroupName,
sku,
subscriptionId,
workspaceName
FROM azure.desktop_virtualization.vw_workspaces
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.desktop_virtualization.workspaces (
resourceGroupName,
subscriptionId,
workspaceName,
managedBy,
kind,
identity,
sku,
plan,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ managedBy }}',
'{{ kind }}',
'{{ identity }}',
'{{ sku }}',
'{{ plan }}',
'{{ properties }}'
;

UPDATE example

Updates a workspaces resource.

/*+ update */
UPDATE azure.desktop_virtualization.workspaces
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

DELETE example

Deletes the specified workspaces resource.

/*+ delete */
DELETE FROM azure.desktop_virtualization.workspaces
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';