Skip to main content

deleted_workspaces

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

Overview

Namedeleted_workspaces
TypeResource
Idazure.log_analytics.deleted_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.
createdDatestring (date-time)Workspace creation date.
customerIdstringThis is a read-only property. Represents the ID associated with the workspace.
defaultDataCollectionRuleResourceIdstringThe resource ID of the default Data Collection Rule to use for this workspace. Expected format is - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}.
etagstringThe etag of the workspace.
failoverobjectworkspace failover properties.
featuresobjectWorkspace features.
forceCmkForQuerybooleanIndicates whether customer managed storage is mandatory for query management.
identityobjectThe identity of the resource.
locationstringThe geo-location where the resource lives. Required.
modifiedDatestring (date-time)Workspace modification date.
privateLinkScopedResourcesarrayList of linked private link scope resources.
provisioningStatestringThe provisioning state of the workspace. Known values are: "Creating", "Succeeded", "Failed", "Canceled", "Deleting", "ProvisioningAccount", and "Updating". (Creating, Succeeded, Failed, Canceled, Deleting, ProvisioningAccount, Updating)
publicNetworkAccessForIngestionstringThe network access type for accessing Log Analytics ingestion. Known values are: "Enabled", "Disabled", and "SecuredByPerimeter". (Enabled, Disabled, SecuredByPerimeter)
publicNetworkAccessForQuerystringThe network access type for accessing Log Analytics query. Known values are: "Enabled", "Disabled", and "SecuredByPerimeter". (Enabled, Disabled, SecuredByPerimeter)
replicationobjectworkspace replication properties.
retentionInDaysintegerThe workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details.
skuobjectThe SKU of the 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".
workspaceCappingobjectThe daily volume cap for ingestion.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_resource_groupselectresource_group_name, subscription_idGets recently deleted workspaces in a resource group, available for recovery.
listselectsubscription_idGets recently deleted workspaces in a subscription, available for recovery.

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

SELECT examples

Gets recently deleted workspaces in a resource group, available for recovery.

SELECT
id,
name,
createdDate,
customerId,
defaultDataCollectionRuleResourceId,
etag,
failover,
features,
forceCmkForQuery,
identity,
location,
modifiedDate,
privateLinkScopedResources,
provisioningState,
publicNetworkAccessForIngestion,
publicNetworkAccessForQuery,
replication,
retentionInDays,
sku,
systemData,
tags,
type,
workspaceCapping
FROM azure.log_analytics.deleted_workspaces
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;