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

NameDatatypeDescription
linked_storage_accounttextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
storageTypetextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, storageType, subscriptionIdReturns the current linked storage settings for an Application Insights component.
create_and_updateINSERTresourceGroupName, resourceName, storageType, subscriptionIdReplace current linked storage account for an Application Insights component.
deleteDELETEresourceGroupName, resourceName, storageType, subscriptionIdDelete linked storage accounts for an Application Insights component.
updateUPDATEresourceGroupName, resourceName, storageType, subscriptionIdUpdate linked storage accounts for an Application Insights component.

SELECT examples

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

SELECT
linked_storage_account,
resourceGroupName,
resourceName,
storageType,
subscriptionId
FROM azure.application_insights.vw_component_linked_storage_accounts
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND storageType = '{{ storageType }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.application_insights.component_linked_storage_accounts (
resourceGroupName,
resourceName,
storageType,
subscriptionId,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ storageType }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a component_linked_storage_accounts resource.

/*+ update */
UPDATE azure.application_insights.component_linked_storage_accounts
SET
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND storageType = '{{ storageType }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified component_linked_storage_accounts resource.

/*+ delete */
DELETE FROM azure.application_insights.component_linked_storage_accounts
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND storageType = '{{ storageType }}'
AND subscriptionId = '{{ subscriptionId }}';