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

NameDatatypeDescription
containerstextfield from the properties object
e_tagtextfield from the properties object
resourceGroupNametextfield from the properties object
statustextfield from the properties object
storageInsightNametextfield from the properties object
storage_accounttextfield from the properties object
subscriptionIdtextfield from the properties object
tablestextfield from the properties object
tagstextResource tags.
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, storageInsightName, subscriptionId, workspaceNameGets a storage insight instance.
list_by_workspaceSELECTresourceGroupName, subscriptionId, workspaceNameLists the storage insight instances within a workspace
create_or_updateINSERTresourceGroupName, storageInsightName, subscriptionId, workspaceNameCreate or update a storage insight.
deleteDELETEresourceGroupName, storageInsightName, subscriptionId, workspaceNameDeletes a storageInsightsConfigs resource

SELECT examples

Lists the storage insight instances within a workspace

SELECT
containers,
e_tag,
resourceGroupName,
status,
storageInsightName,
storage_account,
subscriptionId,
tables,
tags,
workspaceName
FROM azure.log_analytics.vw_storage_insight_configs
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

Use the following StackQL query and manifest file to create a new storage_insight_configs resource.

/*+ create */
INSERT INTO azure.log_analytics.storage_insight_configs (
resourceGroupName,
storageInsightName,
subscriptionId,
workspaceName,
properties,
eTag,
tags
)
SELECT
'{{ resourceGroupName }}',
'{{ storageInsightName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ properties }}',
'{{ eTag }}',
'{{ tags }}'
;

DELETE example

Deletes the specified storage_insight_configs resource.

/*+ delete */
DELETE FROM azure.log_analytics.storage_insight_configs
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND storageInsightName = '{{ storageInsightName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';