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

The following fields are returned by SELECT queries:

OK response definition.

NameDatatypeDescription
propertiesobjectLinked storage accounts properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, workspaceName, dataSourceType, subscriptionIdGets all linked storage account of a specific data source type associated with the specified workspace.
list_by_workspaceselectsubscriptionId, resourceGroupName, workspaceNameGets all linked storage accounts associated with the specified workspace, storage accounts will be sorted by their data source type.
create_or_updateinsertresourceGroupName, workspaceName, dataSourceType, subscriptionId, data__propertiesCreate or Update a link relation between current workspace and a group of storage accounts of a specific data source type.
deletedeleteresourceGroupName, workspaceName, dataSourceType, subscriptionIdDeletes all linked storage accounts of a specific data source type associated with the specified workspace.

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
dataSourceTypestringLinked storage accounts type.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
workspaceNamestringThe name of the workspace.

SELECT examples

Gets all linked storage account of a specific data source type associated with the specified workspace.

SELECT
properties
FROM azure.log_analytics.linked_storage_accounts
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND workspaceName = '{{ workspaceName }}' -- required
AND dataSourceType = '{{ dataSourceType }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Create or Update a link relation between current workspace and a group of storage accounts of a specific data source type.

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

DELETE examples

Deletes all linked storage accounts of a specific data source type associated with the specified workspace.

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