Skip to main content

storage_insight_configs

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

Overview

Namestorage_insight_configs
TypeResource
Idazure.log_analytics.storage_insight_configs

Fields

The following fields are returned by SELECT queries:

OK response definition.

NameDatatypeDescription
eTagstringThe ETag of the storage insight.
propertiesobjectStorage insight properties.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, workspaceName, storageInsightName, subscriptionIdGets a storage insight instance.
list_by_workspaceselectresourceGroupName, workspaceName, subscriptionIdLists the storage insight instances within a workspace
create_or_updateinsertresourceGroupName, workspaceName, storageInsightName, subscriptionIdCreate or update a storage insight.
deletedeleteresourceGroupName, workspaceName, storageInsightName, subscriptionIdDeletes a storageInsightsConfigs 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
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
storageInsightNamestringName of the storageInsightsConfigs resource
subscriptionIdstringThe ID of the target subscription.
workspaceNamestringThe name of the workspace.

SELECT examples

Gets a storage insight instance.

SELECT
eTag,
properties,
tags
FROM azure.log_analytics.storage_insight_configs
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND workspaceName = '{{ workspaceName }}' -- required
AND storageInsightName = '{{ storageInsightName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Create or update a storage insight.

INSERT INTO azure.log_analytics.storage_insight_configs (
data__properties,
data__eTag,
data__tags,
resourceGroupName,
workspaceName,
storageInsightName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ eTag }}',
'{{ tags }}',
'{{ resourceGroupName }}',
'{{ workspaceName }}',
'{{ storageInsightName }}',
'{{ subscriptionId }}'
RETURNING
eTag,
properties,
tags
;

DELETE examples

Deletes a storageInsightsConfigs resource

DELETE FROM azure.log_analytics.storage_insight_configs
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND workspaceName = '{{ workspaceName }}' --required
AND storageInsightName = '{{ storageInsightName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;