Skip to main content

data_exports

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

Overview

Namedata_exports
TypeResource
Idazure.log_analytics.data_exports

Fields

NameDatatypeDescription
created_datetextfield from the properties object
dataExportNametextfield from the properties object
data_export_idtextfield from the properties object
destinationtextfield from the properties object
enabletextfield from the properties object
last_modified_datetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
table_namestextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdataExportName, resourceGroupName, subscriptionId, workspaceNameGets a data export instance.
list_by_workspaceSELECTresourceGroupName, subscriptionId, workspaceNameLists the data export instances within a workspace.
create_or_updateINSERTdataExportName, resourceGroupName, subscriptionId, workspaceNameCreate or update a data export.
deleteDELETEdataExportName, resourceGroupName, subscriptionId, workspaceNameDeletes the specified data export in a given workspace..

SELECT examples

Lists the data export instances within a workspace.

SELECT
created_date,
dataExportName,
data_export_id,
destination,
enable,
last_modified_date,
resourceGroupName,
subscriptionId,
table_names,
workspaceName
FROM azure.log_analytics.vw_data_exports
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.log_analytics.data_exports (
dataExportName,
resourceGroupName,
subscriptionId,
workspaceName,
properties
)
SELECT
'{{ dataExportName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified data_exports resource.

/*+ delete */
DELETE FROM azure.log_analytics.data_exports
WHERE dataExportName = '{{ dataExportName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';