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:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}".
namestringThe name of the resource.
apiKeyEnabledbooleanIndicator of enablement of the Quantum workspace Api keys.
endpointUristringThe URI of the workspace endpoint.
identityobjectManaged Identity information.
locationstringThe geo-location where the resource lives. Required.
providersarrayList of Providers selected for this Workspace.
provisioningStatestringProvisioning status field. Known values are: "Succeeded", "ProviderLaunching", "ProviderUpdating", "ProviderDeleting", "ProviderProvisioning", and "Failed".
storageAccountstringARM Resource Id of the storage account associated with this workspace.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
usablestringWhether the current workspace is ready to accept Jobs. Known values are: "Yes", "No", and "Partial".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workspace_name, subscription_idReturns the Workspace resource associated with the given name.
list_by_resource_groupselectresource_group_name, subscription_idGets the list of Workspaces within a resource group.
list_by_subscriptionselectsubscription_idGets the list of Workspaces within a Subscription.
create_or_updateinsertresource_group_name, workspace_name, subscription_id, locationCreates or updates a workspace resource.
update_tagsupdateresource_group_name, workspace_name, subscription_idUpdates an existing workspace's tags.
create_or_updatereplaceresource_group_name, workspace_name, subscription_id, locationCreates or updates a workspace resource.
deletedeleteresource_group_name, workspace_name, subscription_idDeletes a Workspace resource.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_namestringThe name of the quantum workspace resource. Required.

SELECT examples

Returns the Workspace resource associated with the given name.

SELECT
id,
name,
apiKeyEnabled,
endpointUri,
identity,
location,
providers,
provisioningState,
storageAccount,
systemData,
tags,
type,
usable
FROM azure.quantum.workspaces
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a workspace resource.

INSERT INTO azure.quantum.workspaces (
tags,
location,
properties,
identity,
resource_group_name,
workspace_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ identity }}',
'{{ resource_group_name }}',
'{{ workspace_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates an existing workspace's tags.

UPDATE azure.quantum.workspaces
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Creates or updates a workspace resource.

REPLACE azure.quantum.workspaces
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes a Workspace resource.

DELETE FROM azure.quantum.workspaces
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;