Skip to main content

component_linked_storage_accounts

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

Overview

Namecomponent_linked_storage_accounts
TypeResource
Idazure.application_insights.component_linked_storage_accounts

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.
linkedStorageAccountstringLinked storage account resource ID.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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, resource_name, storage_type, subscription_idReturns the current linked storage settings for an Application Insights component.
updateupdateresource_group_name, resource_name, storage_type, subscription_idUpdate linked storage accounts for an Application Insights component.
deletedeleteresource_group_name, resource_name, storage_type, subscription_idDelete linked storage accounts for an Application Insights component.
create_and_updateexecresource_group_name, resource_name, storage_type, subscription_idReplace current linked storage account for an Application Insights component.

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.
resource_namestringThe name of the Application Insights component resource. Required.
storage_typestringThe type of the Application Insights component data source for the linked storage account. "ServiceProfiler" Required.
subscription_idstring

SELECT examples

Returns the current linked storage settings for an Application Insights component.

SELECT
id,
name,
linkedStorageAccount,
systemData,
type
FROM azure.application_insights.component_linked_storage_accounts
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND storage_type = '{{ storage_type }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

UPDATE examples

Update linked storage accounts for an Application Insights component.

UPDATE azure.application_insights.component_linked_storage_accounts
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND storage_type = '{{ storage_type }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete linked storage accounts for an Application Insights component.

DELETE FROM azure.application_insights.component_linked_storage_accounts
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND storage_type = '{{ storage_type }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Replace current linked storage account for an Application Insights component.

EXEC azure.application_insights.component_linked_storage_accounts.create_and_update 
@resource_group_name='{{ resource_group_name }}' --required,
@resource_name='{{ resource_name }}' --required,
@storage_type='{{ storage_type }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;