Skip to main content

linked_storage_accounts

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

Overview

Namelinked_storage_accounts
TypeResource
Idazure.log_analytics.linked_storage_accounts

Fields

NameDatatypeDescription
dataSourceTypetextfield from the properties object
data_source_typetextfield from the properties object
resourceGroupNametextfield from the properties object
storage_account_idstextfield from the properties object
subscriptionIdtextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdataSourceType, resourceGroupName, subscriptionId, workspaceNameGets all linked storage account of a specific data source type associated with the specified workspace.
list_by_workspaceSELECTresourceGroupName, subscriptionId, workspaceNameGets all linked storage accounts associated with the specified workspace, storage accounts will be sorted by their data source type.
create_or_updateINSERTdataSourceType, resourceGroupName, subscriptionId, workspaceName, data__propertiesCreate or Update a link relation between current workspace and a group of storage accounts of a specific data source type.
deleteDELETEdataSourceType, resourceGroupName, subscriptionId, workspaceNameDeletes all linked storage accounts of a specific data source type associated with the specified workspace.

SELECT examples

Gets all linked storage accounts associated with the specified workspace, storage accounts will be sorted by their data source type.

SELECT
dataSourceType,
data_source_type,
resourceGroupName,
storage_account_ids,
subscriptionId,
workspaceName
FROM azure.log_analytics.vw_linked_storage_accounts
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.log_analytics.linked_storage_accounts (
dataSourceType,
resourceGroupName,
subscriptionId,
workspaceName,
data__properties,
properties
)
SELECT
'{{ dataSourceType }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified linked_storage_accounts resource.

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