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
The following fields are returned by SELECT queries:
- get
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
linkedStorageAccount | string | Linked storage account resource ID. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, resource_name, storage_type, subscription_id | Returns the current linked storage settings for an Application Insights component. | |
update | update | resource_group_name, resource_name, storage_type, subscription_id | Update linked storage accounts for an Application Insights component. | |
delete | delete | resource_group_name, resource_name, storage_type, subscription_id | Delete linked storage accounts for an Application Insights component. | |
create_and_update | exec | resource_group_name, resource_name, storage_type, subscription_id | Replace 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.
| Name | Datatype | Description |
|---|---|---|
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
resource_name | string | The name of the Application Insights component resource. Required. |
storage_type | string | The type of the Application Insights component data source for the linked storage account. "ServiceProfiler" Required. |
subscription_id | string |
SELECT examples
- get
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
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
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
- create_and_update
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 }}"
}'
;