Skip to main content

export_configurations

Creates, updates, deletes, gets or lists an export_configurations resource.

Overview

Nameexport_configurations
TypeResource
Idazure.application_insights.export_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
ApplicationNamestringThe name of the Application Insights component.
ContainerNamestringThe name of the destination storage container.
DestinationAccountIdstringThe name of destination account.
DestinationStorageLocationIdstringThe destination account location ID.
DestinationStorageSubscriptionIdstringThe destination storage account subscription ID.
DestinationTypestringThe destination type.
ExportIdstringThe unique ID of the export configuration inside an Application Insights component. It is auto generated when the Continuous Export configuration is created.
ExportStatusstringThis indicates current Continuous Export configuration status. The possible values are 'Preparing', 'Success', 'Failure'.
InstrumentationKeystringThe instrumentation key of the Application Insights component.
IsUserEnabledstringThis will be 'true' if the Continuous Export configuration is enabled, otherwise it will be 'false'.
LastGapTimestringThe last time the Continuous Export configuration started failing.
LastSuccessTimestringThe last time data was successfully delivered to the destination storage container for this Continuous Export configuration.
LastUserUpdatestringLast time the Continuous Export configuration was updated.
NotificationQueueEnabledstringDeprecated.
PermanentErrorReasonstringThis is the reason the Continuous Export configuration started failing. It can be 'AzureStorageNotFound' or 'AzureStorageAccessDenied'.
RecordTypesstringThis comma separated list of document types that will be exported. The possible values include 'Requests', 'Event', 'Exceptions', 'Metrics', 'PageViews', 'PageViewPerformance', 'Rdd', 'PerformanceCounters', 'Availability', 'Messages'.
ResourceGroupstringThe resource group of the Application Insights component.
StorageNamestringThe name of the destination storage account.
SubscriptionIdstringThe subscription of the Application Insights component.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, resource_name, export_id, subscription_idGet the Continuous Export configuration for this export id.
listselectresource_group_name, resource_name, subscription_idGets a list of Continuous Export configuration of an Application Insights component.
createinsertresource_group_name, resource_name, subscription_idCreate a Continuous Export configuration of an Application Insights component.
updateupdateresource_group_name, resource_name, export_id, subscription_idUpdate the Continuous Export configuration for this export id.
deletedeleteresource_group_name, resource_name, export_id, subscription_idDelete a Continuous Export configuration of 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
export_idstringThe Continuous Export configuration ID. This is unique within a Application Insights component. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
resource_namestringThe name of the Application Insights component resource. Required.
subscription_idstring

SELECT examples

Get the Continuous Export configuration for this export id.

SELECT
ApplicationName,
ContainerName,
DestinationAccountId,
DestinationStorageLocationId,
DestinationStorageSubscriptionId,
DestinationType,
ExportId,
ExportStatus,
InstrumentationKey,
IsUserEnabled,
LastGapTime,
LastSuccessTime,
LastUserUpdate,
NotificationQueueEnabled,
PermanentErrorReason,
RecordTypes,
ResourceGroup,
StorageName,
SubscriptionId
FROM azure.application_insights.export_configurations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND export_id = '{{ export_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a Continuous Export configuration of an Application Insights component.

INSERT INTO azure.application_insights.export_configurations (
RecordTypes,
DestinationType,
DestinationAddress,
IsEnabled,
NotificationQueueEnabled,
NotificationQueueUri,
DestinationStorageSubscriptionId,
DestinationStorageLocationId,
DestinationAccountId,
resource_group_name,
resource_name,
subscription_id
)
SELECT
'{{ RecordTypes }}',
'{{ DestinationType }}',
'{{ DestinationAddress }}',
'{{ IsEnabled }}',
'{{ NotificationQueueEnabled }}',
'{{ NotificationQueueUri }}',
'{{ DestinationStorageSubscriptionId }}',
'{{ DestinationStorageLocationId }}',
'{{ DestinationAccountId }}',
'{{ resource_group_name }}',
'{{ resource_name }}',
'{{ subscription_id }}'
RETURNING
ApplicationName,
ContainerName,
DestinationAccountId,
DestinationStorageLocationId,
DestinationStorageSubscriptionId,
DestinationType,
ExportId,
ExportStatus,
InstrumentationKey,
IsUserEnabled,
LastGapTime,
LastSuccessTime,
LastUserUpdate,
NotificationQueueEnabled,
PermanentErrorReason,
RecordTypes,
ResourceGroup,
StorageName,
SubscriptionId
;

UPDATE examples

Update the Continuous Export configuration for this export id.

UPDATE azure.application_insights.export_configurations
SET
RecordTypes = '{{ RecordTypes }}',
DestinationType = '{{ DestinationType }}',
DestinationAddress = '{{ DestinationAddress }}',
IsEnabled = '{{ IsEnabled }}',
NotificationQueueEnabled = '{{ NotificationQueueEnabled }}',
NotificationQueueUri = '{{ NotificationQueueUri }}',
DestinationStorageSubscriptionId = '{{ DestinationStorageSubscriptionId }}',
DestinationStorageLocationId = '{{ DestinationStorageLocationId }}',
DestinationAccountId = '{{ DestinationAccountId }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND export_id = '{{ export_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
ApplicationName,
ContainerName,
DestinationAccountId,
DestinationStorageLocationId,
DestinationStorageSubscriptionId,
DestinationType,
ExportId,
ExportStatus,
InstrumentationKey,
IsUserEnabled,
LastGapTime,
LastSuccessTime,
LastUserUpdate,
NotificationQueueEnabled,
PermanentErrorReason,
RecordTypes,
ResourceGroup,
StorageName,
SubscriptionId;

DELETE examples

Delete a Continuous Export configuration of an Application Insights component.

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