linked_storage_accounts
Creates, updates, deletes, gets or lists a linked_storage_accounts
resource.
Overview
Name | linked_storage_accounts |
Type | Resource |
Id | azure.log_analytics.linked_storage_accounts |
Fields
- vw_linked_storage_accounts
- linked_storage_accounts
Name | Datatype | Description |
---|---|---|
dataSourceType | text | field from the properties object |
data_source_type | text | field from the properties object |
resourceGroupName | text | field from the properties object |
storage_account_ids | text | field from the properties object |
subscriptionId | text | field from the properties object |
workspaceName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Linked storage accounts properties. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | dataSourceType, resourceGroupName, subscriptionId, workspaceName | Gets all linked storage account of a specific data source type associated with the specified workspace. |
list_by_workspace | SELECT | resourceGroupName, subscriptionId, workspaceName | Gets all linked storage accounts associated with the specified workspace, storage accounts will be sorted by their data source type. |
create_or_update | INSERT | dataSourceType, resourceGroupName, subscriptionId, workspaceName, data__properties | Create or Update a link relation between current workspace and a group of storage accounts of a specific data source type. |
delete | DELETE | dataSourceType, resourceGroupName, subscriptionId, workspaceName | Deletes 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.
- vw_linked_storage_accounts
- linked_storage_accounts
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 }}';
SELECT
properties
FROM azure.log_analytics.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.log_analytics.linked_storage_accounts (
dataSourceType,
resourceGroupName,
subscriptionId,
workspaceName,
data__properties,
properties
)
SELECT
'{{ dataSourceType }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ data__properties }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: dataSourceType
value: string
- name: storageAccountIds
value:
- string
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 }}';