azure-native.operationalinsights.DataSource

Datasources under OMS Workspace. API Version: 2020-08-01.

Example Usage

DataSourcesCreate

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var dataSource = new AzureNative.OperationalInsights.DataSource("dataSource", new()
    {
        DataSourceName = "AzTestDS774",
        Kind = "AzureActivityLog",
        Properties = 
        {
            { "LinkedResourceId", "/subscriptions/00000000-0000-0000-0000-00000000000/providers/microsoft.insights/eventtypes/management" },
        },
        ResourceGroupName = "OIAutoRest5123",
        WorkspaceName = "AzTest9724",
    });

});
package main

import (
	operationalinsights "github.com/pulumi/pulumi-azure-native/sdk/go/azure/operationalinsights"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := operationalinsights.NewDataSource(ctx, "dataSource", &operationalinsights.DataSourceArgs{
			DataSourceName: pulumi.String("AzTestDS774"),
			Kind:           pulumi.String("AzureActivityLog"),
			Properties: pulumi.Any{
				LinkedResourceId: "/subscriptions/00000000-0000-0000-0000-00000000000/providers/microsoft.insights/eventtypes/management",
			},
			ResourceGroupName: pulumi.String("OIAutoRest5123"),
			WorkspaceName:     pulumi.String("AzTest9724"),
		})
		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.DataSource;
import com.pulumi.azurenative.operationalinsights.DataSourceArgs;
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 dataSource = new DataSource("dataSource", DataSourceArgs.builder()        
            .dataSourceName("AzTestDS774")
            .kind("AzureActivityLog")
            .properties(Map.of("LinkedResourceId", "/subscriptions/00000000-0000-0000-0000-00000000000/providers/microsoft.insights/eventtypes/management"))
            .resourceGroupName("OIAutoRest5123")
            .workspaceName("AzTest9724")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

data_source = azure_native.operationalinsights.DataSource("dataSource",
    data_source_name="AzTestDS774",
    kind="AzureActivityLog",
    properties={
        "LinkedResourceId": "/subscriptions/00000000-0000-0000-0000-00000000000/providers/microsoft.insights/eventtypes/management",
    },
    resource_group_name="OIAutoRest5123",
    workspace_name="AzTest9724")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const dataSource = new azure_native.operationalinsights.DataSource("dataSource", {
    dataSourceName: "AzTestDS774",
    kind: "AzureActivityLog",
    properties: {
        LinkedResourceId: "/subscriptions/00000000-0000-0000-0000-00000000000/providers/microsoft.insights/eventtypes/management",
    },
    resourceGroupName: "OIAutoRest5123",
    workspaceName: "AzTest9724",
});
resources:
  dataSource:
    type: azure-native:operationalinsights:DataSource
    properties:
      dataSourceName: AzTestDS774
      kind: AzureActivityLog
      properties:
        LinkedResourceId: /subscriptions/00000000-0000-0000-0000-00000000000/providers/microsoft.insights/eventtypes/management
      resourceGroupName: OIAutoRest5123
      workspaceName: AzTest9724

Create DataSource Resource

new DataSource(name: string, args: DataSourceArgs, opts?: CustomResourceOptions);
@overload
def DataSource(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               data_source_name: Optional[str] = None,
               kind: Optional[Union[str, DataSourceKind]] = None,
               properties: Optional[Any] = None,
               resource_group_name: Optional[str] = None,
               tags: Optional[Mapping[str, str]] = None,
               workspace_name: Optional[str] = None)
@overload
def DataSource(resource_name: str,
               args: DataSourceArgs,
               opts: Optional[ResourceOptions] = None)
func NewDataSource(ctx *Context, name string, args DataSourceArgs, opts ...ResourceOption) (*DataSource, error)
public DataSource(string name, DataSourceArgs args, CustomResourceOptions? opts = null)
public DataSource(String name, DataSourceArgs args)
public DataSource(String name, DataSourceArgs args, CustomResourceOptions options)
type: azure-native:operationalinsights:DataSource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DataSourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args DataSourceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args DataSourceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DataSourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DataSourceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DataSource Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The DataSource resource accepts the following input properties:

Kind string | Pulumi.AzureNative.OperationalInsights.DataSourceKind

The kind of the DataSource.

Properties object

The data source properties in raw json format, each kind of data source have it's own schema.

ResourceGroupName string

The name of the resource group. The name is case insensitive.

WorkspaceName string

The name of the workspace.

DataSourceName string

The name of the datasource resource.

Tags Dictionary<string, string>

Resource tags.

Kind string | DataSourceKind

The kind of the DataSource.

Properties interface{}

The data source properties in raw json format, each kind of data source have it's own schema.

ResourceGroupName string

The name of the resource group. The name is case insensitive.

WorkspaceName string

The name of the workspace.

DataSourceName string

The name of the datasource resource.

Tags map[string]string

Resource tags.

kind String | DataSourceKind

The kind of the DataSource.

properties Object

The data source properties in raw json format, each kind of data source have it's own schema.

resourceGroupName String

The name of the resource group. The name is case insensitive.

workspaceName String

The name of the workspace.

dataSourceName String

The name of the datasource resource.

tags Map<String,String>

Resource tags.

kind string | DataSourceKind

The kind of the DataSource.

properties any

The data source properties in raw json format, each kind of data source have it's own schema.

resourceGroupName string

The name of the resource group. The name is case insensitive.

workspaceName string

The name of the workspace.

dataSourceName string

The name of the datasource resource.

tags {[key: string]: string}

Resource tags.

kind str | DataSourceKind

The kind of the DataSource.

properties Any

The data source properties in raw json format, each kind of data source have it's own schema.

resource_group_name str

The name of the resource group. The name is case insensitive.

workspace_name str

The name of the workspace.

data_source_name str

The name of the datasource resource.

tags Mapping[str, str]

Resource tags.

kind String | "WindowsEvent" | "WindowsPerformanceCounter" | "IISLogs" | "LinuxSyslog" | "LinuxSyslogCollection" | "LinuxPerformanceObject" | "LinuxPerformanceCollection" | "CustomLog" | "CustomLogCollection" | "AzureAuditLog" | "AzureActivityLog" | "GenericDataSource" | "ChangeTrackingCustomPath" | "ChangeTrackingPath" | "ChangeTrackingServices" | "ChangeTrackingDataTypeConfiguration" | "ChangeTrackingDefaultRegistry" | "ChangeTrackingRegistry" | "ChangeTrackingLinuxPath" | "LinuxChangeTrackingPath" | "ChangeTrackingContentLocation" | "WindowsTelemetry" | "Office365" | "SecurityWindowsBaselineConfiguration" | "SecurityCenterSecurityWindowsBaselineConfiguration" | "SecurityEventCollectionConfiguration" | "SecurityInsightsSecurityEventCollectionConfiguration" | "ImportComputerGroup" | "NetworkMonitoring" | "Itsm" | "DnsAnalytics" | "ApplicationInsights" | "SqlDataClassification"

The kind of the DataSource.

properties Any

The data source properties in raw json format, each kind of data source have it's own schema.

resourceGroupName String

The name of the resource group. The name is case insensitive.

workspaceName String

The name of the workspace.

dataSourceName String

The name of the datasource resource.

tags Map<String>

Resource tags.

Outputs

All input properties are implicitly available as output properties. Additionally, the DataSource resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

Type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Etag string

The ETag of the data source.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

Type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Etag string

The ETag of the data source.

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

type String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

etag String

The ETag of the data source.

id string

The provider-assigned unique ID for this managed resource.

name string

The name of the resource

type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

etag string

The ETag of the data source.

id str

The provider-assigned unique ID for this managed resource.

name str

The name of the resource

type str

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

etag str

The ETag of the data source.

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

type String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

etag String

The ETag of the data source.

Supporting Types

DataSourceKind

WindowsEvent
WindowsEvent
WindowsPerformanceCounter
WindowsPerformanceCounter
IISLogs
IISLogs
LinuxSyslog
LinuxSyslog
LinuxSyslogCollection
LinuxSyslogCollection
LinuxPerformanceObject
LinuxPerformanceObject
LinuxPerformanceCollection
LinuxPerformanceCollection
CustomLog
CustomLog
CustomLogCollection
CustomLogCollection
AzureAuditLog
AzureAuditLog
AzureActivityLog
AzureActivityLog
GenericDataSource
GenericDataSource
ChangeTrackingCustomPath
ChangeTrackingCustomPath
ChangeTrackingPath
ChangeTrackingPath
ChangeTrackingServices
ChangeTrackingServices
ChangeTrackingDataTypeConfiguration
ChangeTrackingDataTypeConfiguration
ChangeTrackingDefaultRegistry
ChangeTrackingDefaultRegistry
ChangeTrackingRegistry
ChangeTrackingRegistry
ChangeTrackingLinuxPath
ChangeTrackingLinuxPath
LinuxChangeTrackingPath
LinuxChangeTrackingPath
ChangeTrackingContentLocation
ChangeTrackingContentLocation
WindowsTelemetry
WindowsTelemetry
Office365
Office365
SecurityWindowsBaselineConfiguration
SecurityWindowsBaselineConfiguration
SecurityCenterSecurityWindowsBaselineConfiguration
SecurityCenterSecurityWindowsBaselineConfiguration
SecurityEventCollectionConfiguration
SecurityEventCollectionConfiguration
SecurityInsightsSecurityEventCollectionConfiguration
SecurityInsightsSecurityEventCollectionConfiguration
ImportComputerGroup
ImportComputerGroup
NetworkMonitoring
NetworkMonitoring
Itsm
Itsm
DnsAnalytics
DnsAnalytics
ApplicationInsights
ApplicationInsights
SqlDataClassification
SqlDataClassification
DataSourceKindWindowsEvent
WindowsEvent
DataSourceKindWindowsPerformanceCounter
WindowsPerformanceCounter
DataSourceKindIISLogs
IISLogs
DataSourceKindLinuxSyslog
LinuxSyslog
DataSourceKindLinuxSyslogCollection
LinuxSyslogCollection
DataSourceKindLinuxPerformanceObject
LinuxPerformanceObject
DataSourceKindLinuxPerformanceCollection
LinuxPerformanceCollection
DataSourceKindCustomLog
CustomLog
DataSourceKindCustomLogCollection
CustomLogCollection
DataSourceKindAzureAuditLog
AzureAuditLog
DataSourceKindAzureActivityLog
AzureActivityLog
DataSourceKindGenericDataSource
GenericDataSource
DataSourceKindChangeTrackingCustomPath
ChangeTrackingCustomPath
DataSourceKindChangeTrackingPath
ChangeTrackingPath
DataSourceKindChangeTrackingServices
ChangeTrackingServices
DataSourceKindChangeTrackingDataTypeConfiguration
ChangeTrackingDataTypeConfiguration
DataSourceKindChangeTrackingDefaultRegistry
ChangeTrackingDefaultRegistry
DataSourceKindChangeTrackingRegistry
ChangeTrackingRegistry
DataSourceKindChangeTrackingLinuxPath
ChangeTrackingLinuxPath
DataSourceKindLinuxChangeTrackingPath
LinuxChangeTrackingPath
DataSourceKindChangeTrackingContentLocation
ChangeTrackingContentLocation
DataSourceKindWindowsTelemetry
WindowsTelemetry
DataSourceKindOffice365
Office365
DataSourceKindSecurityWindowsBaselineConfiguration
SecurityWindowsBaselineConfiguration
DataSourceKindSecurityCenterSecurityWindowsBaselineConfiguration
SecurityCenterSecurityWindowsBaselineConfiguration
DataSourceKindSecurityEventCollectionConfiguration
SecurityEventCollectionConfiguration
DataSourceKindSecurityInsightsSecurityEventCollectionConfiguration
SecurityInsightsSecurityEventCollectionConfiguration
DataSourceKindImportComputerGroup
ImportComputerGroup
DataSourceKindNetworkMonitoring
NetworkMonitoring
DataSourceKindItsm
Itsm
DataSourceKindDnsAnalytics
DnsAnalytics
DataSourceKindApplicationInsights
ApplicationInsights
DataSourceKindSqlDataClassification
SqlDataClassification
WindowsEvent
WindowsEvent
WindowsPerformanceCounter
WindowsPerformanceCounter
IISLogs
IISLogs
LinuxSyslog
LinuxSyslog
LinuxSyslogCollection
LinuxSyslogCollection
LinuxPerformanceObject
LinuxPerformanceObject
LinuxPerformanceCollection
LinuxPerformanceCollection
CustomLog
CustomLog
CustomLogCollection
CustomLogCollection
AzureAuditLog
AzureAuditLog
AzureActivityLog
AzureActivityLog
GenericDataSource
GenericDataSource
ChangeTrackingCustomPath
ChangeTrackingCustomPath
ChangeTrackingPath
ChangeTrackingPath
ChangeTrackingServices
ChangeTrackingServices
ChangeTrackingDataTypeConfiguration
ChangeTrackingDataTypeConfiguration
ChangeTrackingDefaultRegistry
ChangeTrackingDefaultRegistry
ChangeTrackingRegistry
ChangeTrackingRegistry
ChangeTrackingLinuxPath
ChangeTrackingLinuxPath
LinuxChangeTrackingPath
LinuxChangeTrackingPath
ChangeTrackingContentLocation
ChangeTrackingContentLocation
WindowsTelemetry
WindowsTelemetry
Office365
Office365
SecurityWindowsBaselineConfiguration
SecurityWindowsBaselineConfiguration
SecurityCenterSecurityWindowsBaselineConfiguration
SecurityCenterSecurityWindowsBaselineConfiguration
SecurityEventCollectionConfiguration
SecurityEventCollectionConfiguration
SecurityInsightsSecurityEventCollectionConfiguration
SecurityInsightsSecurityEventCollectionConfiguration
ImportComputerGroup
ImportComputerGroup
NetworkMonitoring
NetworkMonitoring
Itsm
Itsm
DnsAnalytics
DnsAnalytics
ApplicationInsights
ApplicationInsights
SqlDataClassification
SqlDataClassification
WindowsEvent
WindowsEvent
WindowsPerformanceCounter
WindowsPerformanceCounter
IISLogs
IISLogs
LinuxSyslog
LinuxSyslog
LinuxSyslogCollection
LinuxSyslogCollection
LinuxPerformanceObject
LinuxPerformanceObject
LinuxPerformanceCollection
LinuxPerformanceCollection
CustomLog
CustomLog
CustomLogCollection
CustomLogCollection
AzureAuditLog
AzureAuditLog
AzureActivityLog
AzureActivityLog
GenericDataSource
GenericDataSource
ChangeTrackingCustomPath
ChangeTrackingCustomPath
ChangeTrackingPath
ChangeTrackingPath
ChangeTrackingServices
ChangeTrackingServices
ChangeTrackingDataTypeConfiguration
ChangeTrackingDataTypeConfiguration
ChangeTrackingDefaultRegistry
ChangeTrackingDefaultRegistry
ChangeTrackingRegistry
ChangeTrackingRegistry
ChangeTrackingLinuxPath
ChangeTrackingLinuxPath
LinuxChangeTrackingPath
LinuxChangeTrackingPath
ChangeTrackingContentLocation
ChangeTrackingContentLocation
WindowsTelemetry
WindowsTelemetry
Office365
Office365
SecurityWindowsBaselineConfiguration
SecurityWindowsBaselineConfiguration
SecurityCenterSecurityWindowsBaselineConfiguration
SecurityCenterSecurityWindowsBaselineConfiguration
SecurityEventCollectionConfiguration
SecurityEventCollectionConfiguration
SecurityInsightsSecurityEventCollectionConfiguration
SecurityInsightsSecurityEventCollectionConfiguration
ImportComputerGroup
ImportComputerGroup
NetworkMonitoring
NetworkMonitoring
Itsm
Itsm
DnsAnalytics
DnsAnalytics
ApplicationInsights
ApplicationInsights
SqlDataClassification
SqlDataClassification
WINDOWS_EVENT
WindowsEvent
WINDOWS_PERFORMANCE_COUNTER
WindowsPerformanceCounter
IIS_LOGS
IISLogs
LINUX_SYSLOG
LinuxSyslog
LINUX_SYSLOG_COLLECTION
LinuxSyslogCollection
LINUX_PERFORMANCE_OBJECT
LinuxPerformanceObject
LINUX_PERFORMANCE_COLLECTION
LinuxPerformanceCollection
CUSTOM_LOG
CustomLog
CUSTOM_LOG_COLLECTION
CustomLogCollection
AZURE_AUDIT_LOG
AzureAuditLog
AZURE_ACTIVITY_LOG
AzureActivityLog
GENERIC_DATA_SOURCE
GenericDataSource
CHANGE_TRACKING_CUSTOM_PATH
ChangeTrackingCustomPath
CHANGE_TRACKING_PATH
ChangeTrackingPath
CHANGE_TRACKING_SERVICES
ChangeTrackingServices
CHANGE_TRACKING_DATA_TYPE_CONFIGURATION
ChangeTrackingDataTypeConfiguration
CHANGE_TRACKING_DEFAULT_REGISTRY
ChangeTrackingDefaultRegistry
CHANGE_TRACKING_REGISTRY
ChangeTrackingRegistry
CHANGE_TRACKING_LINUX_PATH
ChangeTrackingLinuxPath
LINUX_CHANGE_TRACKING_PATH
LinuxChangeTrackingPath
CHANGE_TRACKING_CONTENT_LOCATION
ChangeTrackingContentLocation
WINDOWS_TELEMETRY
WindowsTelemetry
OFFICE365
Office365
SECURITY_WINDOWS_BASELINE_CONFIGURATION
SecurityWindowsBaselineConfiguration
SECURITY_CENTER_SECURITY_WINDOWS_BASELINE_CONFIGURATION
SecurityCenterSecurityWindowsBaselineConfiguration
SECURITY_EVENT_COLLECTION_CONFIGURATION
SecurityEventCollectionConfiguration
SECURITY_INSIGHTS_SECURITY_EVENT_COLLECTION_CONFIGURATION
SecurityInsightsSecurityEventCollectionConfiguration
IMPORT_COMPUTER_GROUP
ImportComputerGroup
NETWORK_MONITORING
NetworkMonitoring
ITSM
Itsm
DNS_ANALYTICS
DnsAnalytics
APPLICATION_INSIGHTS
ApplicationInsights
SQL_DATA_CLASSIFICATION
SqlDataClassification
"WindowsEvent"
WindowsEvent
"WindowsPerformanceCounter"
WindowsPerformanceCounter
"IISLogs"
IISLogs
"LinuxSyslog"
LinuxSyslog
"LinuxSyslogCollection"
LinuxSyslogCollection
"LinuxPerformanceObject"
LinuxPerformanceObject
"LinuxPerformanceCollection"
LinuxPerformanceCollection
"CustomLog"
CustomLog
"CustomLogCollection"
CustomLogCollection
"AzureAuditLog"
AzureAuditLog
"AzureActivityLog"
AzureActivityLog
"GenericDataSource"
GenericDataSource
"ChangeTrackingCustomPath"
ChangeTrackingCustomPath
"ChangeTrackingPath"
ChangeTrackingPath
"ChangeTrackingServices"
ChangeTrackingServices
"ChangeTrackingDataTypeConfiguration"
ChangeTrackingDataTypeConfiguration
"ChangeTrackingDefaultRegistry"
ChangeTrackingDefaultRegistry
"ChangeTrackingRegistry"
ChangeTrackingRegistry
"ChangeTrackingLinuxPath"
ChangeTrackingLinuxPath
"LinuxChangeTrackingPath"
LinuxChangeTrackingPath
"ChangeTrackingContentLocation"
ChangeTrackingContentLocation
"WindowsTelemetry"
WindowsTelemetry
"Office365"
Office365
"SecurityWindowsBaselineConfiguration"
SecurityWindowsBaselineConfiguration
"SecurityCenterSecurityWindowsBaselineConfiguration"
SecurityCenterSecurityWindowsBaselineConfiguration
"SecurityEventCollectionConfiguration"
SecurityEventCollectionConfiguration
"SecurityInsightsSecurityEventCollectionConfiguration"
SecurityInsightsSecurityEventCollectionConfiguration
"ImportComputerGroup"
ImportComputerGroup
"NetworkMonitoring"
NetworkMonitoring
"Itsm"
Itsm
"DnsAnalytics"
DnsAnalytics
"ApplicationInsights"
ApplicationInsights
"SqlDataClassification"
SqlDataClassification

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:operationalinsights:DataSource AzTestDS774 /subscriptions/00000000-0000-0000-0000-000000000005/resourceGroups/OIAutoRest5123/providers/Microsoft.OperationalInsights/workspaces/AzTest9724/datasources/AzTestDS774 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0