azure-native.operationalinsights.DataSource
Explore with Pulumi AI
Datasources under OMS Workspace. Azure REST API version: 2020-08-01. Prior API version in Azure Native 1.x: 2020-08-01.
Other available API versions: 2015-11-01-preview, 2023-09-01.
Example Usage
DataSourcesCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var dataSource = new AzureNative.OperationalInsights.DataSource("dataSource", new()
{
DataSourceName = "AzTestDS774",
Kind = AzureNative.OperationalInsights.DataSourceKind.AzureActivityLog,
Properties = new Dictionary<string, object?>
{
["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/operationalinsights/v2"
"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(operationalinsights.DataSourceKindAzureActivityLog),
Properties: pulumi.Any(map[string]interface{}{
"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=azure_native.operationalinsights.DataSourceKind.AZURE_ACTIVITY_LOG,
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: azure_native.operationalinsights.DataSourceKind.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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DataSource(name: string, args: DataSourceArgs, opts?: CustomResourceOptions);
@overload
def DataSource(resource_name: str,
args: DataSourceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DataSource(resource_name: str,
opts: Optional[ResourceOptions] = None,
kind: Optional[Union[str, DataSourceKind]] = None,
properties: Optional[Any] = None,
resource_group_name: Optional[str] = None,
workspace_name: Optional[str] = None,
data_source_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var dataSourceResource = new AzureNative.OperationalInsights.DataSource("dataSourceResource", new()
{
Kind = "string",
Properties = "any",
ResourceGroupName = "string",
WorkspaceName = "string",
DataSourceName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := operationalinsights.NewDataSource(ctx, "dataSourceResource", &operationalinsights.DataSourceArgs{
Kind: pulumi.String("string"),
Properties: pulumi.Any("any"),
ResourceGroupName: pulumi.String("string"),
WorkspaceName: pulumi.String("string"),
DataSourceName: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var dataSourceResource = new DataSource("dataSourceResource", DataSourceArgs.builder()
.kind("string")
.properties("any")
.resourceGroupName("string")
.workspaceName("string")
.dataSourceName("string")
.tags(Map.of("string", "string"))
.build());
data_source_resource = azure_native.operationalinsights.DataSource("dataSourceResource",
kind="string",
properties="any",
resource_group_name="string",
workspace_name="string",
data_source_name="string",
tags={
"string": "string",
})
const dataSourceResource = new azure_native.operationalinsights.DataSource("dataSourceResource", {
kind: "string",
properties: "any",
resourceGroupName: "string",
workspaceName: "string",
dataSourceName: "string",
tags: {
string: "string",
},
});
type: azure-native:operationalinsights:DataSource
properties:
dataSourceName: string
kind: string
properties: any
resourceGroupName: string
tags:
string: string
workspaceName: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DataSource resource accepts the following input properties:
- Kind
string | Pulumi.
Azure Native. Operational Insights. Data Source Kind - 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.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Workspace
Name string - The name of the workspace.
- Data
Source stringName - The name of the datasource resource.
- Dictionary<string, string>
- Resource tags.
- Kind
string | Data
Source Kind - 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.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Workspace
Name string - The name of the workspace.
- Data
Source stringName - The name of the datasource resource.
- map[string]string
- Resource tags.
- kind
String | Data
Source Kind - 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.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- workspace
Name String - The name of the workspace.
- data
Source StringName - The name of the datasource resource.
- Map<String,String>
- Resource tags.
- kind
string | Data
Source Kind - 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 stringName - The name of the resource group. The name is case insensitive.
- workspace
Name string - The name of the workspace.
- data
Source stringName - The name of the datasource resource.
- {[key: string]: string}
- Resource tags.
- kind
str | Data
Source Kind - 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_ strname - The name of the resource group. The name is case insensitive.
- workspace_
name str - The name of the workspace.
- data_
source_ strname - The name of the datasource resource.
- Mapping[str, str]
- Resource tags.
- kind
String | "Windows
Event" | "Windows Performance Counter" | "IISLogs" | "Linux Syslog" | "Linux Syslog Collection" | "Linux Performance Object" | "Linux Performance Collection" | "Custom Log" | "Custom Log Collection" | "Azure Audit Log" | "Azure Activity Log" | "Generic Data Source" | "Change Tracking Custom Path" | "Change Tracking Path" | "Change Tracking Services" | "Change Tracking Data Type Configuration" | "Change Tracking Default Registry" | "Change Tracking Registry" | "Change Tracking Linux Path" | "Linux Change Tracking Path" | "Change Tracking Content Location" | "Windows Telemetry" | "Office365" | "Security Windows Baseline Configuration" | "Security Center Security Windows Baseline Configuration" | "Security Event Collection Configuration" | "Security Insights Security Event Collection Configuration" | "Import Computer Group" | "Network Monitoring" | "Itsm" | "Dns Analytics" | "Application Insights" | "Sql Data Classification" - 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 StringName - The name of the resource group. The name is case insensitive.
- workspace
Name String - The name of the workspace.
- data
Source StringName - The name of the datasource resource.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the DataSource resource produces the following output properties:
Supporting Types
DataSourceKind, DataSourceKindArgs
- Windows
Event - WindowsEvent
- Windows
Performance Counter - WindowsPerformanceCounter
- IISLogs
- 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
- Data
Source Kind Windows Event - WindowsEvent
- Data
Source Kind Windows Performance Counter - WindowsPerformanceCounter
- Data
Source Kind IISLogs - IISLogs
- Data
Source Kind Linux Syslog - LinuxSyslog
- Data
Source Kind Linux Syslog Collection - LinuxSyslogCollection
- Data
Source Kind Linux Performance Object - LinuxPerformanceObject
- Data
Source Kind Linux Performance Collection - LinuxPerformanceCollection
- Data
Source Kind Custom Log - CustomLog
- Data
Source Kind Custom Log Collection - CustomLogCollection
- Data
Source Kind Azure Audit Log - AzureAuditLog
- Data
Source Kind Azure Activity Log - AzureActivityLog
- Data
Source Kind Generic Data Source - GenericDataSource
- Data
Source Kind Change Tracking Custom Path - ChangeTrackingCustomPath
- Data
Source Kind Change Tracking Path - ChangeTrackingPath
- Data
Source Kind Change Tracking Services - ChangeTrackingServices
- Data
Source Kind Change Tracking Data Type Configuration - ChangeTrackingDataTypeConfiguration
- Data
Source Kind Change Tracking Default Registry - ChangeTrackingDefaultRegistry
- Data
Source Kind Change Tracking Registry - ChangeTrackingRegistry
- Data
Source Kind Change Tracking Linux Path - ChangeTrackingLinuxPath
- Data
Source Kind Linux Change Tracking Path - LinuxChangeTrackingPath
- Data
Source Kind Change Tracking Content Location - ChangeTrackingContentLocation
- Data
Source Kind Windows Telemetry - WindowsTelemetry
- Data
Source Kind Office365 - Office365
- Data
Source Kind Security Windows Baseline Configuration - SecurityWindowsBaselineConfiguration
- Data
Source Kind Security Center Security Windows Baseline Configuration - SecurityCenterSecurityWindowsBaselineConfiguration
- Data
Source Kind Security Event Collection Configuration - SecurityEventCollectionConfiguration
- Data
Source Kind Security Insights Security Event Collection Configuration - SecurityInsightsSecurityEventCollectionConfiguration
- Data
Source Kind Import Computer Group - ImportComputerGroup
- Data
Source Kind Network Monitoring - NetworkMonitoring
- Data
Source Kind Itsm - Itsm
- Data
Source Kind Dns Analytics - DnsAnalytics
- Data
Source Kind Application Insights - ApplicationInsights
- Data
Source Kind Sql Data Classification - SqlDataClassification
- Windows
Event - WindowsEvent
- Windows
Performance Counter - WindowsPerformanceCounter
- IISLogs
- 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
- Windows
Event - WindowsEvent
- Windows
Performance Counter - WindowsPerformanceCounter
- IISLogs
- 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
- 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
- "Windows
Event" - WindowsEvent
- "Windows
Performance Counter" - WindowsPerformanceCounter
- "IISLogs"
- 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
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:operationalinsights:DataSource AzTestDS774 /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0