1. Packages
  2. Azure Classic
  3. API Docs
  4. loganalytics
  5. DataSourceWindowsPerformanceCounter

We recommend using Azure Native.

Azure Classic v5.72.0 published on Monday, Apr 15, 2024 by Pulumi

azure.loganalytics.DataSourceWindowsPerformanceCounter

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.72.0 published on Monday, Apr 15, 2024 by Pulumi

    Manages a Log Analytics (formally Operational Insights) Windows Performance Counter DataSource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("example", {
        name: "example-law",
        location: example.location,
        resourceGroupName: example.name,
        sku: "PerGB2018",
    });
    const exampleDataSourceWindowsPerformanceCounter = new azure.loganalytics.DataSourceWindowsPerformanceCounter("example", {
        name: "example-lad-wpc",
        resourceGroupName: example.name,
        workspaceName: exampleAnalyticsWorkspace.name,
        objectName: "CPU",
        instanceName: "*",
        counterName: "CPU",
        intervalSeconds: 10,
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_analytics_workspace = azure.operationalinsights.AnalyticsWorkspace("example",
        name="example-law",
        location=example.location,
        resource_group_name=example.name,
        sku="PerGB2018")
    example_data_source_windows_performance_counter = azure.loganalytics.DataSourceWindowsPerformanceCounter("example",
        name="example-lad-wpc",
        resource_group_name=example.name,
        workspace_name=example_analytics_workspace.name,
        object_name="CPU",
        instance_name="*",
        counter_name="CPU",
        interval_seconds=10)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/loganalytics"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/operationalinsights"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{
    			Name:              pulumi.String("example-law"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    			Sku:               pulumi.String("PerGB2018"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = loganalytics.NewDataSourceWindowsPerformanceCounter(ctx, "example", &loganalytics.DataSourceWindowsPerformanceCounterArgs{
    			Name:              pulumi.String("example-lad-wpc"),
    			ResourceGroupName: example.Name,
    			WorkspaceName:     exampleAnalyticsWorkspace.Name,
    			ObjectName:        pulumi.String("CPU"),
    			InstanceName:      pulumi.String("*"),
    			CounterName:       pulumi.String("CPU"),
    			IntervalSeconds:   pulumi.Int(10),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var exampleAnalyticsWorkspace = new Azure.OperationalInsights.AnalyticsWorkspace("example", new()
        {
            Name = "example-law",
            Location = example.Location,
            ResourceGroupName = example.Name,
            Sku = "PerGB2018",
        });
    
        var exampleDataSourceWindowsPerformanceCounter = new Azure.LogAnalytics.DataSourceWindowsPerformanceCounter("example", new()
        {
            Name = "example-lad-wpc",
            ResourceGroupName = example.Name,
            WorkspaceName = exampleAnalyticsWorkspace.Name,
            ObjectName = "CPU",
            InstanceName = "*",
            CounterName = "CPU",
            IntervalSeconds = 10,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.operationalinsights.AnalyticsWorkspace;
    import com.pulumi.azure.operationalinsights.AnalyticsWorkspaceArgs;
    import com.pulumi.azure.loganalytics.DataSourceWindowsPerformanceCounter;
    import com.pulumi.azure.loganalytics.DataSourceWindowsPerformanceCounterArgs;
    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 example = new ResourceGroup("example", ResourceGroupArgs.builder()        
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()        
                .name("example-law")
                .location(example.location())
                .resourceGroupName(example.name())
                .sku("PerGB2018")
                .build());
    
            var exampleDataSourceWindowsPerformanceCounter = new DataSourceWindowsPerformanceCounter("exampleDataSourceWindowsPerformanceCounter", DataSourceWindowsPerformanceCounterArgs.builder()        
                .name("example-lad-wpc")
                .resourceGroupName(example.name())
                .workspaceName(exampleAnalyticsWorkspace.name())
                .objectName("CPU")
                .instanceName("*")
                .counterName("CPU")
                .intervalSeconds(10)
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleAnalyticsWorkspace:
        type: azure:operationalinsights:AnalyticsWorkspace
        name: example
        properties:
          name: example-law
          location: ${example.location}
          resourceGroupName: ${example.name}
          sku: PerGB2018
      exampleDataSourceWindowsPerformanceCounter:
        type: azure:loganalytics:DataSourceWindowsPerformanceCounter
        name: example
        properties:
          name: example-lad-wpc
          resourceGroupName: ${example.name}
          workspaceName: ${exampleAnalyticsWorkspace.name}
          objectName: CPU
          instanceName: '*'
          counterName: CPU
          intervalSeconds: 10
    

    Create DataSourceWindowsPerformanceCounter Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DataSourceWindowsPerformanceCounter(name: string, args: DataSourceWindowsPerformanceCounterArgs, opts?: CustomResourceOptions);
    @overload
    def DataSourceWindowsPerformanceCounter(resource_name: str,
                                            args: DataSourceWindowsPerformanceCounterArgs,
                                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def DataSourceWindowsPerformanceCounter(resource_name: str,
                                            opts: Optional[ResourceOptions] = None,
                                            counter_name: Optional[str] = None,
                                            instance_name: Optional[str] = None,
                                            interval_seconds: Optional[int] = None,
                                            object_name: Optional[str] = None,
                                            resource_group_name: Optional[str] = None,
                                            workspace_name: Optional[str] = None,
                                            name: Optional[str] = None)
    func NewDataSourceWindowsPerformanceCounter(ctx *Context, name string, args DataSourceWindowsPerformanceCounterArgs, opts ...ResourceOption) (*DataSourceWindowsPerformanceCounter, error)
    public DataSourceWindowsPerformanceCounter(string name, DataSourceWindowsPerformanceCounterArgs args, CustomResourceOptions? opts = null)
    public DataSourceWindowsPerformanceCounter(String name, DataSourceWindowsPerformanceCounterArgs args)
    public DataSourceWindowsPerformanceCounter(String name, DataSourceWindowsPerformanceCounterArgs args, CustomResourceOptions options)
    
    type: azure:loganalytics:DataSourceWindowsPerformanceCounter
    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 DataSourceWindowsPerformanceCounterArgs
    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 DataSourceWindowsPerformanceCounterArgs
    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 DataSourceWindowsPerformanceCounterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DataSourceWindowsPerformanceCounterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DataSourceWindowsPerformanceCounterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var dataSourceWindowsPerformanceCounterResource = new Azure.LogAnalytics.DataSourceWindowsPerformanceCounter("dataSourceWindowsPerformanceCounterResource", new()
    {
        CounterName = "string",
        InstanceName = "string",
        IntervalSeconds = 0,
        ObjectName = "string",
        ResourceGroupName = "string",
        WorkspaceName = "string",
        Name = "string",
    });
    
    example, err := loganalytics.NewDataSourceWindowsPerformanceCounter(ctx, "dataSourceWindowsPerformanceCounterResource", &loganalytics.DataSourceWindowsPerformanceCounterArgs{
    	CounterName:       pulumi.String("string"),
    	InstanceName:      pulumi.String("string"),
    	IntervalSeconds:   pulumi.Int(0),
    	ObjectName:        pulumi.String("string"),
    	ResourceGroupName: pulumi.String("string"),
    	WorkspaceName:     pulumi.String("string"),
    	Name:              pulumi.String("string"),
    })
    
    var dataSourceWindowsPerformanceCounterResource = new DataSourceWindowsPerformanceCounter("dataSourceWindowsPerformanceCounterResource", DataSourceWindowsPerformanceCounterArgs.builder()        
        .counterName("string")
        .instanceName("string")
        .intervalSeconds(0)
        .objectName("string")
        .resourceGroupName("string")
        .workspaceName("string")
        .name("string")
        .build());
    
    data_source_windows_performance_counter_resource = azure.loganalytics.DataSourceWindowsPerformanceCounter("dataSourceWindowsPerformanceCounterResource",
        counter_name="string",
        instance_name="string",
        interval_seconds=0,
        object_name="string",
        resource_group_name="string",
        workspace_name="string",
        name="string")
    
    const dataSourceWindowsPerformanceCounterResource = new azure.loganalytics.DataSourceWindowsPerformanceCounter("dataSourceWindowsPerformanceCounterResource", {
        counterName: "string",
        instanceName: "string",
        intervalSeconds: 0,
        objectName: "string",
        resourceGroupName: "string",
        workspaceName: "string",
        name: "string",
    });
    
    type: azure:loganalytics:DataSourceWindowsPerformanceCounter
    properties:
        counterName: string
        instanceName: string
        intervalSeconds: 0
        name: string
        objectName: string
        resourceGroupName: string
        workspaceName: string
    

    DataSourceWindowsPerformanceCounter 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 DataSourceWindowsPerformanceCounter resource accepts the following input properties:

    CounterName string
    The friendly name of the performance counter.
    InstanceName string
    The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a * will apply to all instances.
    IntervalSeconds int
    The time of sample interval in seconds. Supports values between 10 and 2147483647.
    ObjectName string
    The object name of the Log Analytics Windows Performance Counter DataSource.
    ResourceGroupName string
    The name of the Resource Group where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    WorkspaceName string
    The name of the Log Analytics Workspace where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    Name string
    The Name which should be used for this Log Analytics Windows Performance Counter DataSource. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    CounterName string
    The friendly name of the performance counter.
    InstanceName string
    The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a * will apply to all instances.
    IntervalSeconds int
    The time of sample interval in seconds. Supports values between 10 and 2147483647.
    ObjectName string
    The object name of the Log Analytics Windows Performance Counter DataSource.
    ResourceGroupName string
    The name of the Resource Group where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    WorkspaceName string
    The name of the Log Analytics Workspace where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    Name string
    The Name which should be used for this Log Analytics Windows Performance Counter DataSource. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    counterName String
    The friendly name of the performance counter.
    instanceName String
    The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a * will apply to all instances.
    intervalSeconds Integer
    The time of sample interval in seconds. Supports values between 10 and 2147483647.
    objectName String
    The object name of the Log Analytics Windows Performance Counter DataSource.
    resourceGroupName String
    The name of the Resource Group where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    workspaceName String
    The name of the Log Analytics Workspace where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    name String
    The Name which should be used for this Log Analytics Windows Performance Counter DataSource. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    counterName string
    The friendly name of the performance counter.
    instanceName string
    The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a * will apply to all instances.
    intervalSeconds number
    The time of sample interval in seconds. Supports values between 10 and 2147483647.
    objectName string
    The object name of the Log Analytics Windows Performance Counter DataSource.
    resourceGroupName string
    The name of the Resource Group where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    workspaceName string
    The name of the Log Analytics Workspace where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    name string
    The Name which should be used for this Log Analytics Windows Performance Counter DataSource. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    counter_name str
    The friendly name of the performance counter.
    instance_name str
    The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a * will apply to all instances.
    interval_seconds int
    The time of sample interval in seconds. Supports values between 10 and 2147483647.
    object_name str
    The object name of the Log Analytics Windows Performance Counter DataSource.
    resource_group_name str
    The name of the Resource Group where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    workspace_name str
    The name of the Log Analytics Workspace where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    name str
    The Name which should be used for this Log Analytics Windows Performance Counter DataSource. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    counterName String
    The friendly name of the performance counter.
    instanceName String
    The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a * will apply to all instances.
    intervalSeconds Number
    The time of sample interval in seconds. Supports values between 10 and 2147483647.
    objectName String
    The object name of the Log Analytics Windows Performance Counter DataSource.
    resourceGroupName String
    The name of the Resource Group where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    workspaceName String
    The name of the Log Analytics Workspace where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    name String
    The Name which should be used for this Log Analytics Windows Performance Counter DataSource. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DataSourceWindowsPerformanceCounter Resource

    Get an existing DataSourceWindowsPerformanceCounter resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: DataSourceWindowsPerformanceCounterState, opts?: CustomResourceOptions): DataSourceWindowsPerformanceCounter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            counter_name: Optional[str] = None,
            instance_name: Optional[str] = None,
            interval_seconds: Optional[int] = None,
            name: Optional[str] = None,
            object_name: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            workspace_name: Optional[str] = None) -> DataSourceWindowsPerformanceCounter
    func GetDataSourceWindowsPerformanceCounter(ctx *Context, name string, id IDInput, state *DataSourceWindowsPerformanceCounterState, opts ...ResourceOption) (*DataSourceWindowsPerformanceCounter, error)
    public static DataSourceWindowsPerformanceCounter Get(string name, Input<string> id, DataSourceWindowsPerformanceCounterState? state, CustomResourceOptions? opts = null)
    public static DataSourceWindowsPerformanceCounter get(String name, Output<String> id, DataSourceWindowsPerformanceCounterState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CounterName string
    The friendly name of the performance counter.
    InstanceName string
    The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a * will apply to all instances.
    IntervalSeconds int
    The time of sample interval in seconds. Supports values between 10 and 2147483647.
    Name string
    The Name which should be used for this Log Analytics Windows Performance Counter DataSource. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    ObjectName string
    The object name of the Log Analytics Windows Performance Counter DataSource.
    ResourceGroupName string
    The name of the Resource Group where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    WorkspaceName string
    The name of the Log Analytics Workspace where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    CounterName string
    The friendly name of the performance counter.
    InstanceName string
    The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a * will apply to all instances.
    IntervalSeconds int
    The time of sample interval in seconds. Supports values between 10 and 2147483647.
    Name string
    The Name which should be used for this Log Analytics Windows Performance Counter DataSource. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    ObjectName string
    The object name of the Log Analytics Windows Performance Counter DataSource.
    ResourceGroupName string
    The name of the Resource Group where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    WorkspaceName string
    The name of the Log Analytics Workspace where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    counterName String
    The friendly name of the performance counter.
    instanceName String
    The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a * will apply to all instances.
    intervalSeconds Integer
    The time of sample interval in seconds. Supports values between 10 and 2147483647.
    name String
    The Name which should be used for this Log Analytics Windows Performance Counter DataSource. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    objectName String
    The object name of the Log Analytics Windows Performance Counter DataSource.
    resourceGroupName String
    The name of the Resource Group where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    workspaceName String
    The name of the Log Analytics Workspace where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    counterName string
    The friendly name of the performance counter.
    instanceName string
    The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a * will apply to all instances.
    intervalSeconds number
    The time of sample interval in seconds. Supports values between 10 and 2147483647.
    name string
    The Name which should be used for this Log Analytics Windows Performance Counter DataSource. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    objectName string
    The object name of the Log Analytics Windows Performance Counter DataSource.
    resourceGroupName string
    The name of the Resource Group where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    workspaceName string
    The name of the Log Analytics Workspace where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    counter_name str
    The friendly name of the performance counter.
    instance_name str
    The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a * will apply to all instances.
    interval_seconds int
    The time of sample interval in seconds. Supports values between 10 and 2147483647.
    name str
    The Name which should be used for this Log Analytics Windows Performance Counter DataSource. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    object_name str
    The object name of the Log Analytics Windows Performance Counter DataSource.
    resource_group_name str
    The name of the Resource Group where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    workspace_name str
    The name of the Log Analytics Workspace where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    counterName String
    The friendly name of the performance counter.
    instanceName String
    The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a * will apply to all instances.
    intervalSeconds Number
    The time of sample interval in seconds. Supports values between 10 and 2147483647.
    name String
    The Name which should be used for this Log Analytics Windows Performance Counter DataSource. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    objectName String
    The object name of the Log Analytics Windows Performance Counter DataSource.
    resourceGroupName String
    The name of the Resource Group where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
    workspaceName String
    The name of the Log Analytics Workspace where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.

    Import

    Log Analytics Windows Performance Counter DataSources can be imported using the resource id, e.g.

    $ pulumi import azure:loganalytics/dataSourceWindowsPerformanceCounter:DataSourceWindowsPerformanceCounter example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.OperationalInsights/workspaces/workspace1/dataSources/datasource1
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.72.0 published on Monday, Apr 15, 2024 by Pulumi