component_linked_storage_accounts
Creates, updates, deletes, gets or lists a component_linked_storage_accounts
resource.
Overview
Name | component_linked_storage_accounts |
Type | Resource |
Id | azure.application_insights.component_linked_storage_accounts |
Fields
- vw_component_linked_storage_accounts
- component_linked_storage_accounts
Name | Datatype | Description |
---|---|---|
linked_storage_account | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resourceName | text | field from the properties object |
storageType | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | An Application Insights component linked storage account |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, resourceName, storageType, subscriptionId | Returns the current linked storage settings for an Application Insights component. |
create_and_update | INSERT | resourceGroupName, resourceName, storageType, subscriptionId | Replace current linked storage account for an Application Insights component. |
delete | DELETE | resourceGroupName, resourceName, storageType, subscriptionId | Delete linked storage accounts for an Application Insights component. |
update | UPDATE | resourceGroupName, resourceName, storageType, subscriptionId | Update linked storage accounts for an Application Insights component. |
SELECT
examples
Returns the current linked storage settings for an Application Insights component.
- vw_component_linked_storage_accounts
- component_linked_storage_accounts
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 }}';
SELECT
properties
FROM azure.application_insights.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.application_insights.component_linked_storage_accounts (
resourceGroupName,
resourceName,
storageType,
subscriptionId,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ storageType }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: linkedStorageAccount
value: string
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 }}';