Data Export Args
The top level data export resource container. Uses Azure REST API version 2023-09-01. In version 2.x of the Azure Native provider, it used API version 2020-08-01. Other available API versions: 2019-08-01-preview, 2020-03-01-preview, 2020-08-01, 2025-02-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native operationalinsights [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
DataExportCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var dataExport = new AzureNative.OperationalInsights.DataExport("dataExport", new()
{
DataExportName = "export1",
ResourceGroupName = "RgTest1",
ResourceId = "/subscriptions/192b9f85-a39a-4276-b96d-d5cd351703f9/resourceGroups/OIAutoRest1234/providers/Microsoft.EventHub/namespaces/test",
TableNames = new[]
{
"Heartbeat",
},
WorkspaceName = "DeWnTest1234",
});
});
package main
import (
operationalinsights "github.com/pulumi/pulumi-azure-native-sdk/operationalinsights/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := operationalinsights.NewDataExport(ctx, "dataExport", &operationalinsights.DataExportArgs{
DataExportName: pulumi.String("export1"),
ResourceGroupName: pulumi.String("RgTest1"),
ResourceId: pulumi.String("/subscriptions/192b9f85-a39a-4276-b96d-d5cd351703f9/resourceGroups/OIAutoRest1234/providers/Microsoft.EventHub/namespaces/test"),
TableNames: pulumi.StringArray{
pulumi.String("Heartbeat"),
},
WorkspaceName: pulumi.String("DeWnTest1234"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.operationalinsights.DataExport;
import com.pulumi.azurenative.operationalinsights.DataExportArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var dataExport = new DataExport("dataExport", DataExportArgs.builder()
.dataExportName("export1")
.resourceGroupName("RgTest1")
.resourceId("/subscriptions/192b9f85-a39a-4276-b96d-d5cd351703f9/resourceGroups/OIAutoRest1234/providers/Microsoft.EventHub/namespaces/test")
.tableNames("Heartbeat")
.workspaceName("DeWnTest1234")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:operationalinsights:DataExport export1 /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}
Constructors
Properties
The latest data export rule modification time.
The data export rule ID.
The data export rule name.
Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account.
Date and time when the export was last modified.
The name of the resource group. The name is case insensitive.
The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure.
An array of tables to export, for example: “Heartbeat, SecurityEvent”.
The name of the workspace.