Skip to main content

export_configurations

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

Overview

Nameexport_configurations
TypeResource
Idazure.application_insights.export_configurations

Fields

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

NameAccessible byRequired ParamsDescription
getSELECTexportId, resourceGroupName, resourceName, subscriptionIdGet the Continuous Export configuration for this export id.
listSELECTresourceGroupName, resourceName, subscriptionIdGets a list of Continuous Export configuration of an Application Insights component.
createINSERTresourceGroupName, resourceName, subscriptionIdCreate a Continuous Export configuration of an Application Insights component.
deleteDELETEexportId, resourceGroupName, resourceName, subscriptionIdDelete a Continuous Export configuration of an Application Insights component.
updateREPLACEexportId, resourceGroupName, resourceName, subscriptionIdUpdate the Continuous Export configuration for this export id.

SELECT examples

Gets a list of Continuous Export configuration of an Application Insights component.

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 resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.application_insights.export_configurations (
resourceGroupName,
resourceName,
subscriptionId,
RecordTypes,
DestinationType,
DestinationAddress,
IsEnabled,
NotificationQueueEnabled,
NotificationQueueUri,
DestinationStorageSubscriptionId,
DestinationStorageLocationId,
DestinationAccountId
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ RecordTypes }}',
'{{ DestinationType }}',
'{{ DestinationAddress }}',
'{{ IsEnabled }}',
'{{ NotificationQueueEnabled }}',
'{{ NotificationQueueUri }}',
'{{ DestinationStorageSubscriptionId }}',
'{{ DestinationStorageLocationId }}',
'{{ DestinationAccountId }}'
;

REPLACE example

Replaces all fields in the specified export_configurations resource.

/*+ update */
REPLACE 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
exportId = '{{ exportId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified export_configurations resource.

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