Skip to main content

workspaces

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

Overview

Nameworkspaces
TypeResource
Idazure.quantum.workspaces

Fields

The following fields are returned by SELECT queries:

Workspace details.

NameDatatypeDescription
identityobjectManaged Identity information.
locationstringThe geo-location where the resource lives
propertiesobjectGets or sets the properties. Define quantum workspace's specific properties.
systemDataobjectSystem metadata
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, subscriptionId, workspaceNameReturns the Workspace resource associated with the given name.
list_by_resource_groupselectresourceGroupName, subscriptionIdGets the list of Workspaces within a resource group.
list_by_subscriptionselectsubscriptionIdGets the list of Workspaces within a Subscription.
create_or_updateinsertresourceGroupName, subscriptionId, workspaceNameCreates or updates a workspace resource.
deletedeleteresourceGroupName, subscriptionId, workspaceNameDeletes a Workspace resource.
update_tagsexecresourceGroupName, subscriptionId, workspaceNameUpdates an existing workspace's tags.
check_name_availabilityexecsubscriptionId, locationCheck the availability of the resource name.
regenerate_keysexecsubscriptionId, resourceGroupName, workspaceNameRegenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately.

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
locationstringThe name of the Azure region.
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.
workspaceNamestringThe name of the quantum workspace resource.

SELECT examples

Returns the Workspace resource associated with the given name.

SELECT
identity,
location,
properties,
systemData,
tags
FROM azure.quantum.workspaces
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND workspaceName = '{{ workspaceName }}' -- required
;

INSERT examples

Creates or updates a workspace resource.

INSERT INTO azure.quantum.workspaces (
data__properties,
data__identity,
data__tags,
data__location,
resourceGroupName,
subscriptionId,
workspaceName
)
SELECT
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}'
RETURNING
identity,
location,
properties,
systemData,
tags
;

DELETE examples

Deletes a Workspace resource.

DELETE FROM azure.quantum.workspaces
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND workspaceName = '{{ workspaceName }}' --required
;

Lifecycle Methods

Updates an existing workspace's tags.

EXEC azure.quantum.workspaces.update_tags 
@resourceGroupName='{{ resourceGroupName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required,
@workspaceName='{{ workspaceName }}' --required
@@json=
'{
"tags": "{{ tags }}"
}'
;