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:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
containersarrayThe names of the blob containers that the workspace should read.
eTagstringThe ETag of the storage insight.
statusobjectThe status of the storage insight.
storageAccountobjectThe storage account connection details. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tablesarrayThe names of the Azure tables that the workspace should read.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workspace_name, storage_insight_name, subscription_idGets a storage insight instance.
list_by_workspaceselectresource_group_name, workspace_name, subscription_idLists the storage insight instances within a workspace.
create_or_updateinsertresource_group_name, workspace_name, storage_insight_name, subscription_idCreate or update a storage insight.
create_or_updatereplaceresource_group_name, workspace_name, storage_insight_name, subscription_idCreate or update a storage insight.
deletedeleteresource_group_name, workspace_name, storage_insight_name, subscription_idDeletes 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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
storage_insight_namestringName of the storageInsightsConfigs resource. Required.
subscription_idstring
workspace_namestringThe name of the workspace. Required.

SELECT examples

Gets a storage insight instance.

SELECT
id,
name,
containers,
eTag,
status,
storageAccount,
systemData,
tables,
tags,
type
FROM azure.log_analytics.storage_insight_configs
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND storage_insight_name = '{{ storage_insight_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update a storage insight.

INSERT INTO azure.log_analytics.storage_insight_configs (
properties,
eTag,
tags,
resource_group_name,
workspace_name,
storage_insight_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ eTag }}',
'{{ tags }}',
'{{ resource_group_name }}',
'{{ workspace_name }}',
'{{ storage_insight_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
eTag,
properties,
systemData,
tags,
type
;

REPLACE examples

Create or update a storage insight.

REPLACE azure.log_analytics.storage_insight_configs
SET
properties = '{{ properties }}',
eTag = '{{ eTag }}',
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND storage_insight_name = '{{ storage_insight_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
eTag,
properties,
systemData,
tags,
type;

DELETE examples

Deletes a storageInsightsConfigs resource.

DELETE FROM azure.log_analytics.storage_insight_configs
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND storage_insight_name = '{{ storage_insight_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;