Skip to main content

workspaces

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

Overview

Nameworkspaces
TypeResource
Idazure.discovery.workspaces

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
agentSubnetIdstringAgent Subnet ID for agent resources.
customerManagedKeysstringWhether or not to use a customer managed key when encrypting data at rest. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
keyVaultPropertiesobjectThe key to use for encrypting data at rest when customer managed keys are enabled.
locationstringThe geo-location where the resource lives. Required.
logAnalyticsClusterIdstringThe Log Analytics Cluster to use for debug logs. This is required when Customer Managed Keys are enabled.
managedOnBehalfOfConfigurationobjectManaged-On-Behalf-Of configuration properties. This configuration exists for the resources where a resource provider manages those resources on behalf of the resource owner.
managedResourceGroupstringThe resource group for resources managed on behalf of customer.
privateEndpointConnectionsarrayList of private endpoint connections.
privateEndpointSubnetIdstringPrivate Endpoint Subnet ID for private endpoint connections.
provisioningStatestringThe status of the last operation. Known values are: "Succeeded", "Failed", "Canceled", "Accepted", "Provisioning", "Updating", and "Deleting". (Succeeded, Failed, Canceled, Accepted, Provisioning, Updating, Deleting)
publicNetworkAccessstringWhether or not public network access is allowed for this resource. For security reasons, it is recommended to disable it whenever possible. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
supercomputerIdsarrayList of linked SuperComputers.
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".
workspaceApiUristringworkspace API endpoint Uri.
workspaceIdentityobjectIdentity IDs used for leveraging Workspace resources. Required.
workspaceSubnetIdstringFunction Subnet ID for workspace resources.
workspaceUiUristringworkspace User Interface Uri.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workspace_name, subscription_idGet a Workspace.
list_by_resource_groupselectresource_group_name, subscription_idList Workspace resources by resource group.
list_by_subscriptionselectsubscription_idList Workspace resources by subscription ID.
create_or_updateinsertresource_group_name, workspace_name, subscription_id, locationCreate a Workspace.
updateupdateresource_group_name, workspace_name, subscription_id, locationUpdate a Workspace.
create_or_updatereplaceresource_group_name, workspace_name, subscription_id, locationCreate a Workspace.
deletedeleteresource_group_name, workspace_name, subscription_idDelete a Workspace.

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 Workspace. Required.

SELECT examples

Get a Workspace.

SELECT
id,
name,
agentSubnetId,
customerManagedKeys,
keyVaultProperties,
location,
logAnalyticsClusterId,
managedOnBehalfOfConfiguration,
managedResourceGroup,
privateEndpointConnections,
privateEndpointSubnetId,
provisioningState,
publicNetworkAccess,
supercomputerIds,
systemData,
tags,
type,
workspaceApiUri,
workspaceIdentity,
workspaceSubnetId,
workspaceUiUri
FROM azure.discovery.workspaces
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a Workspace.

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

UPDATE examples

Update a Workspace.

UPDATE azure.discovery.workspaces
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
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,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Create a Workspace.

REPLACE azure.discovery.workspaces
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
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,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete a Workspace.

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