export_configurations
Creates, updates, deletes, gets or lists a export_configurations
resource.
Overview
Name | export_configurations |
Type | Resource |
Id | azure.application_insights.export_configurations |
Fields
Name | Datatype | Description |
---|---|---|
ApplicationName | string | The name of the Application Insights component. |
ContainerName | string | The name of the destination storage container. |
DestinationAccountId | string | The name of destination account. |
DestinationStorageLocationId | string | The destination account location ID. |
DestinationStorageSubscriptionId | string | The destination storage account subscription ID. |
DestinationType | string | The destination type. |
ExportId | string | The unique ID of the export configuration inside an Application Insights component. It is auto generated when the Continuous Export configuration is created. |
ExportStatus | string | This indicates current Continuous Export configuration status. The possible values are 'Preparing', 'Success', 'Failure'. |
InstrumentationKey | string | The instrumentation key of the Application Insights component. |
IsUserEnabled | string | This will be 'true' if the Continuous Export configuration is enabled, otherwise it will be 'false'. |
LastGapTime | string | The last time the Continuous Export configuration started failing. |
LastSuccessTime | string | The last time data was successfully delivered to the destination storage container for this Continuous Export configuration. |
LastUserUpdate | string | Last time the Continuous Export configuration was updated. |
NotificationQueueEnabled | string | Deprecated |
PermanentErrorReason | string | This is the reason the Continuous Export configuration started failing. It can be 'AzureStorageNotFound' or 'AzureStorageAccessDenied'. |
RecordTypes | string | This comma separated list of document types that will be exported. The possible values include 'Requests', 'Event', 'Exceptions', 'Metrics', 'PageViews', 'PageViewPerformance', 'Rdd', 'PerformanceCounters', 'Availability', 'Messages'. |
ResourceGroup | string | The resource group of the Application Insights component. |
StorageName | string | The name of the destination storage account. |
SubscriptionId | string | The subscription of the Application Insights component. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | exportId, resourceGroupName, resourceName, subscriptionId | Get the Continuous Export configuration for this export id. |
list | SELECT | resourceGroupName, resourceName, subscriptionId | Gets a list of Continuous Export configuration of an Application Insights component. |
create | INSERT | resourceGroupName, resourceName, subscriptionId | Create a Continuous Export configuration of an Application Insights component. |
delete | DELETE | exportId, resourceGroupName, resourceName, subscriptionId | Delete a Continuous Export configuration of an Application Insights component. |
update | REPLACE | exportId, resourceGroupName, resourceName, subscriptionId | Update 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: RecordTypes
value: string
- name: DestinationType
value: string
- name: DestinationAddress
value: string
- name: IsEnabled
value: string
- name: NotificationQueueEnabled
value: string
- name: NotificationQueueUri
value: string
- name: DestinationStorageSubscriptionId
value: string
- name: DestinationStorageLocationId
value: string
- name: DestinationAccountId
value: string
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 }}';