loganalytics

package
v5.74.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	pulumi.CustomResourceState

	// The GUID of the cluster.
	ClusterId pulumi.StringOutput `pulumi:"clusterId"`
	// An `identity` block as defined below. Changing this forces a new Log Analytics Cluster to be created.
	Identity ClusterIdentityOutput `pulumi:"identity"`
	// The Azure Region where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created.
	Location pulumi.StringOutput `pulumi:"location"`
	// The name which should be used for this Log Analytics Cluster. Changing this forces a new Log Analytics Cluster to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the Resource Group where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `500`, `1000`, `2000` or `5000`. Defaults to `1000`.
	//
	// > **NOTE:** The cluster capacity must start at 500 GB and can be set to 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `500` GB.
	SizeGb pulumi.IntPtrOutput `pulumi:"sizeGb"`
	// A mapping of tags which should be assigned to the Log Analytics Cluster.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
}

> **Note:** Log Analytics Clusters are subject to 14-day soft delete policy. Clusters created with the same resource group & name as a previously deleted cluster will be recovered rather than creating anew.

Manages a Log Analytics Cluster.

## Example Usage

```go 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/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
		}
		_, err = loganalytics.NewCluster(ctx, "example", &loganalytics.ClusterArgs{
			Name:              pulumi.String("example-cluster"),
			ResourceGroupName: example.Name,
			Location:          example.Location,
			Identity: &loganalytics.ClusterIdentityArgs{
				Type: pulumi.String("SystemAssigned"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Log Analytics Clusters can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:loganalytics/cluster:Cluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.OperationalInsights/clusters/cluster1 ```

func GetCluster

func GetCluster(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ClusterState, opts ...pulumi.ResourceOption) (*Cluster, error)

GetCluster gets an existing Cluster resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCluster

func NewCluster(ctx *pulumi.Context,
	name string, args *ClusterArgs, opts ...pulumi.ResourceOption) (*Cluster, error)

NewCluster registers a new resource with the given unique name, arguments, and options.

func (*Cluster) ElementType

func (*Cluster) ElementType() reflect.Type

func (*Cluster) ToClusterOutput

func (i *Cluster) ToClusterOutput() ClusterOutput

func (*Cluster) ToClusterOutputWithContext

func (i *Cluster) ToClusterOutputWithContext(ctx context.Context) ClusterOutput

type ClusterArgs

type ClusterArgs struct {
	// An `identity` block as defined below. Changing this forces a new Log Analytics Cluster to be created.
	Identity ClusterIdentityInput
	// The Azure Region where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created.
	Location pulumi.StringPtrInput
	// The name which should be used for this Log Analytics Cluster. Changing this forces a new Log Analytics Cluster to be created.
	Name pulumi.StringPtrInput
	// The name of the Resource Group where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created.
	ResourceGroupName pulumi.StringInput
	// The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `500`, `1000`, `2000` or `5000`. Defaults to `1000`.
	//
	// > **NOTE:** The cluster capacity must start at 500 GB and can be set to 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `500` GB.
	SizeGb pulumi.IntPtrInput
	// A mapping of tags which should be assigned to the Log Analytics Cluster.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a Cluster resource.

func (ClusterArgs) ElementType

func (ClusterArgs) ElementType() reflect.Type

type ClusterArray

type ClusterArray []ClusterInput

func (ClusterArray) ElementType

func (ClusterArray) ElementType() reflect.Type

func (ClusterArray) ToClusterArrayOutput

func (i ClusterArray) ToClusterArrayOutput() ClusterArrayOutput

func (ClusterArray) ToClusterArrayOutputWithContext

func (i ClusterArray) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput

type ClusterArrayInput

type ClusterArrayInput interface {
	pulumi.Input

	ToClusterArrayOutput() ClusterArrayOutput
	ToClusterArrayOutputWithContext(context.Context) ClusterArrayOutput
}

ClusterArrayInput is an input type that accepts ClusterArray and ClusterArrayOutput values. You can construct a concrete instance of `ClusterArrayInput` via:

ClusterArray{ ClusterArgs{...} }

type ClusterArrayOutput

type ClusterArrayOutput struct{ *pulumi.OutputState }

func (ClusterArrayOutput) ElementType

func (ClusterArrayOutput) ElementType() reflect.Type

func (ClusterArrayOutput) Index

func (ClusterArrayOutput) ToClusterArrayOutput

func (o ClusterArrayOutput) ToClusterArrayOutput() ClusterArrayOutput

func (ClusterArrayOutput) ToClusterArrayOutputWithContext

func (o ClusterArrayOutput) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput

type ClusterCustomerManagedKey

type ClusterCustomerManagedKey struct {
	pulumi.CustomResourceState

	// The ID of the Key Vault Key to use for encryption.
	KeyVaultKeyId pulumi.StringOutput `pulumi:"keyVaultKeyId"`
	// The ID of the Log Analytics Cluster. Changing this forces a new Log Analytics Cluster Customer Managed Key to be created.
	LogAnalyticsClusterId pulumi.StringOutput `pulumi:"logAnalyticsClusterId"`
}

Manages a Log Analytics Cluster Customer Managed Key.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/keyvault"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/loganalytics"
"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
		}
		current, err := core.GetClientConfig(ctx, nil, nil)
		if err != nil {
			return err
		}
		exampleCluster, err := loganalytics.NewCluster(ctx, "example", &loganalytics.ClusterArgs{
			Name:              pulumi.String("example-cluster"),
			ResourceGroupName: example.Name,
			Location:          example.Location,
			Identity: &loganalytics.ClusterIdentityArgs{
				Type: pulumi.String("SystemAssigned"),
			},
		})
		if err != nil {
			return err
		}
		exampleKeyVault, err := keyvault.NewKeyVault(ctx, "example", &keyvault.KeyVaultArgs{
			Name:              pulumi.String("keyvaultkeyexample"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			TenantId:          pulumi.String(current.TenantId),
			SkuName:           pulumi.String("premium"),
			AccessPolicies: keyvault.KeyVaultAccessPolicyArray{
				&keyvault.KeyVaultAccessPolicyArgs{
					TenantId: pulumi.String(current.TenantId),
					ObjectId: pulumi.String(current.ObjectId),
					KeyPermissions: pulumi.StringArray{
						pulumi.String("Create"),
						pulumi.String("Get"),
						pulumi.String("GetRotationPolicy"),
					},
					SecretPermissions: pulumi.StringArray{
						pulumi.String("Set"),
					},
				},
				&keyvault.KeyVaultAccessPolicyArgs{
					TenantId: exampleCluster.Identity.ApplyT(func(identity loganalytics.ClusterIdentity) (*string, error) {
						return &identity.TenantId, nil
					}).(pulumi.StringPtrOutput),
					ObjectId: exampleCluster.Identity.ApplyT(func(identity loganalytics.ClusterIdentity) (*string, error) {
						return &identity.PrincipalId, nil
					}).(pulumi.StringPtrOutput),
					KeyPermissions: pulumi.StringArray{
						pulumi.String("Get"),
						pulumi.String("Unwrapkey"),
						pulumi.String("Wrapkey"),
					},
				},
			},
			Tags: pulumi.StringMap{
				"environment": pulumi.String("Production"),
			},
		})
		if err != nil {
			return err
		}
		exampleKey, err := keyvault.NewKey(ctx, "example", &keyvault.KeyArgs{
			Name:       pulumi.String("generated-certificate"),
			KeyVaultId: exampleKeyVault.ID(),
			KeyType:    pulumi.String("RSA"),
			KeySize:    pulumi.Int(2048),
			KeyOpts: pulumi.StringArray{
				pulumi.String("decrypt"),
				pulumi.String("encrypt"),
				pulumi.String("sign"),
				pulumi.String("unwrapKey"),
				pulumi.String("verify"),
				pulumi.String("wrapKey"),
			},
		})
		if err != nil {
			return err
		}
		_, err = loganalytics.NewClusterCustomerManagedKey(ctx, "example", &loganalytics.ClusterCustomerManagedKeyArgs{
			LogAnalyticsClusterId: exampleCluster.ID(),
			KeyVaultKeyId:         exampleKey.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Log Analytics Cluster Customer Managed Keys can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:loganalytics/clusterCustomerManagedKey:ClusterCustomerManagedKey example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.OperationalInsights/clusters/cluster1 ```

func GetClusterCustomerManagedKey

func GetClusterCustomerManagedKey(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ClusterCustomerManagedKeyState, opts ...pulumi.ResourceOption) (*ClusterCustomerManagedKey, error)

GetClusterCustomerManagedKey gets an existing ClusterCustomerManagedKey resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewClusterCustomerManagedKey

func NewClusterCustomerManagedKey(ctx *pulumi.Context,
	name string, args *ClusterCustomerManagedKeyArgs, opts ...pulumi.ResourceOption) (*ClusterCustomerManagedKey, error)

NewClusterCustomerManagedKey registers a new resource with the given unique name, arguments, and options.

func (*ClusterCustomerManagedKey) ElementType

func (*ClusterCustomerManagedKey) ElementType() reflect.Type

func (*ClusterCustomerManagedKey) ToClusterCustomerManagedKeyOutput

func (i *ClusterCustomerManagedKey) ToClusterCustomerManagedKeyOutput() ClusterCustomerManagedKeyOutput

func (*ClusterCustomerManagedKey) ToClusterCustomerManagedKeyOutputWithContext

func (i *ClusterCustomerManagedKey) ToClusterCustomerManagedKeyOutputWithContext(ctx context.Context) ClusterCustomerManagedKeyOutput

type ClusterCustomerManagedKeyArgs

type ClusterCustomerManagedKeyArgs struct {
	// The ID of the Key Vault Key to use for encryption.
	KeyVaultKeyId pulumi.StringInput
	// The ID of the Log Analytics Cluster. Changing this forces a new Log Analytics Cluster Customer Managed Key to be created.
	LogAnalyticsClusterId pulumi.StringInput
}

The set of arguments for constructing a ClusterCustomerManagedKey resource.

func (ClusterCustomerManagedKeyArgs) ElementType

type ClusterCustomerManagedKeyArray

type ClusterCustomerManagedKeyArray []ClusterCustomerManagedKeyInput

func (ClusterCustomerManagedKeyArray) ElementType

func (ClusterCustomerManagedKeyArray) ToClusterCustomerManagedKeyArrayOutput

func (i ClusterCustomerManagedKeyArray) ToClusterCustomerManagedKeyArrayOutput() ClusterCustomerManagedKeyArrayOutput

func (ClusterCustomerManagedKeyArray) ToClusterCustomerManagedKeyArrayOutputWithContext

func (i ClusterCustomerManagedKeyArray) ToClusterCustomerManagedKeyArrayOutputWithContext(ctx context.Context) ClusterCustomerManagedKeyArrayOutput

type ClusterCustomerManagedKeyArrayInput

type ClusterCustomerManagedKeyArrayInput interface {
	pulumi.Input

	ToClusterCustomerManagedKeyArrayOutput() ClusterCustomerManagedKeyArrayOutput
	ToClusterCustomerManagedKeyArrayOutputWithContext(context.Context) ClusterCustomerManagedKeyArrayOutput
}

ClusterCustomerManagedKeyArrayInput is an input type that accepts ClusterCustomerManagedKeyArray and ClusterCustomerManagedKeyArrayOutput values. You can construct a concrete instance of `ClusterCustomerManagedKeyArrayInput` via:

ClusterCustomerManagedKeyArray{ ClusterCustomerManagedKeyArgs{...} }

type ClusterCustomerManagedKeyArrayOutput

type ClusterCustomerManagedKeyArrayOutput struct{ *pulumi.OutputState }

func (ClusterCustomerManagedKeyArrayOutput) ElementType

func (ClusterCustomerManagedKeyArrayOutput) Index

func (ClusterCustomerManagedKeyArrayOutput) ToClusterCustomerManagedKeyArrayOutput

func (o ClusterCustomerManagedKeyArrayOutput) ToClusterCustomerManagedKeyArrayOutput() ClusterCustomerManagedKeyArrayOutput

func (ClusterCustomerManagedKeyArrayOutput) ToClusterCustomerManagedKeyArrayOutputWithContext

func (o ClusterCustomerManagedKeyArrayOutput) ToClusterCustomerManagedKeyArrayOutputWithContext(ctx context.Context) ClusterCustomerManagedKeyArrayOutput

type ClusterCustomerManagedKeyInput

type ClusterCustomerManagedKeyInput interface {
	pulumi.Input

	ToClusterCustomerManagedKeyOutput() ClusterCustomerManagedKeyOutput
	ToClusterCustomerManagedKeyOutputWithContext(ctx context.Context) ClusterCustomerManagedKeyOutput
}

type ClusterCustomerManagedKeyMap

type ClusterCustomerManagedKeyMap map[string]ClusterCustomerManagedKeyInput

func (ClusterCustomerManagedKeyMap) ElementType

func (ClusterCustomerManagedKeyMap) ToClusterCustomerManagedKeyMapOutput

func (i ClusterCustomerManagedKeyMap) ToClusterCustomerManagedKeyMapOutput() ClusterCustomerManagedKeyMapOutput

func (ClusterCustomerManagedKeyMap) ToClusterCustomerManagedKeyMapOutputWithContext

func (i ClusterCustomerManagedKeyMap) ToClusterCustomerManagedKeyMapOutputWithContext(ctx context.Context) ClusterCustomerManagedKeyMapOutput

type ClusterCustomerManagedKeyMapInput

type ClusterCustomerManagedKeyMapInput interface {
	pulumi.Input

	ToClusterCustomerManagedKeyMapOutput() ClusterCustomerManagedKeyMapOutput
	ToClusterCustomerManagedKeyMapOutputWithContext(context.Context) ClusterCustomerManagedKeyMapOutput
}

ClusterCustomerManagedKeyMapInput is an input type that accepts ClusterCustomerManagedKeyMap and ClusterCustomerManagedKeyMapOutput values. You can construct a concrete instance of `ClusterCustomerManagedKeyMapInput` via:

ClusterCustomerManagedKeyMap{ "key": ClusterCustomerManagedKeyArgs{...} }

type ClusterCustomerManagedKeyMapOutput

type ClusterCustomerManagedKeyMapOutput struct{ *pulumi.OutputState }

func (ClusterCustomerManagedKeyMapOutput) ElementType

func (ClusterCustomerManagedKeyMapOutput) MapIndex

func (ClusterCustomerManagedKeyMapOutput) ToClusterCustomerManagedKeyMapOutput

func (o ClusterCustomerManagedKeyMapOutput) ToClusterCustomerManagedKeyMapOutput() ClusterCustomerManagedKeyMapOutput

func (ClusterCustomerManagedKeyMapOutput) ToClusterCustomerManagedKeyMapOutputWithContext

func (o ClusterCustomerManagedKeyMapOutput) ToClusterCustomerManagedKeyMapOutputWithContext(ctx context.Context) ClusterCustomerManagedKeyMapOutput

type ClusterCustomerManagedKeyOutput

type ClusterCustomerManagedKeyOutput struct{ *pulumi.OutputState }

func (ClusterCustomerManagedKeyOutput) ElementType

func (ClusterCustomerManagedKeyOutput) KeyVaultKeyId added in v5.5.0

The ID of the Key Vault Key to use for encryption.

func (ClusterCustomerManagedKeyOutput) LogAnalyticsClusterId added in v5.5.0

func (o ClusterCustomerManagedKeyOutput) LogAnalyticsClusterId() pulumi.StringOutput

The ID of the Log Analytics Cluster. Changing this forces a new Log Analytics Cluster Customer Managed Key to be created.

func (ClusterCustomerManagedKeyOutput) ToClusterCustomerManagedKeyOutput

func (o ClusterCustomerManagedKeyOutput) ToClusterCustomerManagedKeyOutput() ClusterCustomerManagedKeyOutput

func (ClusterCustomerManagedKeyOutput) ToClusterCustomerManagedKeyOutputWithContext

func (o ClusterCustomerManagedKeyOutput) ToClusterCustomerManagedKeyOutputWithContext(ctx context.Context) ClusterCustomerManagedKeyOutput

type ClusterCustomerManagedKeyState

type ClusterCustomerManagedKeyState struct {
	// The ID of the Key Vault Key to use for encryption.
	KeyVaultKeyId pulumi.StringPtrInput
	// The ID of the Log Analytics Cluster. Changing this forces a new Log Analytics Cluster Customer Managed Key to be created.
	LogAnalyticsClusterId pulumi.StringPtrInput
}

func (ClusterCustomerManagedKeyState) ElementType

type ClusterIdentity

type ClusterIdentity struct {
	// The Principal ID associated with this Managed Service Identity.
	PrincipalId *string `pulumi:"principalId"`
	// The Tenant ID associated with this Managed Service Identity.
	TenantId *string `pulumi:"tenantId"`
	// Specifies the type of Managed Service Identity that should be configured on this Log Analytics Cluster. The only possible value is `SystemAssigned`. Changing this forces a new resource to be created.
	//
	// > **NOTE:** The assigned `principalId` and `tenantId` can be retrieved after the identity `type` has been set to `SystemAssigned` and the Log Analytics Cluster has been created. More details are available below.
	Type string `pulumi:"type"`
}

type ClusterIdentityArgs

type ClusterIdentityArgs struct {
	// The Principal ID associated with this Managed Service Identity.
	PrincipalId pulumi.StringPtrInput `pulumi:"principalId"`
	// The Tenant ID associated with this Managed Service Identity.
	TenantId pulumi.StringPtrInput `pulumi:"tenantId"`
	// Specifies the type of Managed Service Identity that should be configured on this Log Analytics Cluster. The only possible value is `SystemAssigned`. Changing this forces a new resource to be created.
	//
	// > **NOTE:** The assigned `principalId` and `tenantId` can be retrieved after the identity `type` has been set to `SystemAssigned` and the Log Analytics Cluster has been created. More details are available below.
	Type pulumi.StringInput `pulumi:"type"`
}

func (ClusterIdentityArgs) ElementType

func (ClusterIdentityArgs) ElementType() reflect.Type

func (ClusterIdentityArgs) ToClusterIdentityOutput

func (i ClusterIdentityArgs) ToClusterIdentityOutput() ClusterIdentityOutput

func (ClusterIdentityArgs) ToClusterIdentityOutputWithContext

func (i ClusterIdentityArgs) ToClusterIdentityOutputWithContext(ctx context.Context) ClusterIdentityOutput

func (ClusterIdentityArgs) ToClusterIdentityPtrOutput

func (i ClusterIdentityArgs) ToClusterIdentityPtrOutput() ClusterIdentityPtrOutput

func (ClusterIdentityArgs) ToClusterIdentityPtrOutputWithContext

func (i ClusterIdentityArgs) ToClusterIdentityPtrOutputWithContext(ctx context.Context) ClusterIdentityPtrOutput

type ClusterIdentityInput

type ClusterIdentityInput interface {
	pulumi.Input

	ToClusterIdentityOutput() ClusterIdentityOutput
	ToClusterIdentityOutputWithContext(context.Context) ClusterIdentityOutput
}

ClusterIdentityInput is an input type that accepts ClusterIdentityArgs and ClusterIdentityOutput values. You can construct a concrete instance of `ClusterIdentityInput` via:

ClusterIdentityArgs{...}

type ClusterIdentityOutput

type ClusterIdentityOutput struct{ *pulumi.OutputState }

func (ClusterIdentityOutput) ElementType

func (ClusterIdentityOutput) ElementType() reflect.Type

func (ClusterIdentityOutput) PrincipalId

The Principal ID associated with this Managed Service Identity.

func (ClusterIdentityOutput) TenantId

The Tenant ID associated with this Managed Service Identity.

func (ClusterIdentityOutput) ToClusterIdentityOutput

func (o ClusterIdentityOutput) ToClusterIdentityOutput() ClusterIdentityOutput

func (ClusterIdentityOutput) ToClusterIdentityOutputWithContext

func (o ClusterIdentityOutput) ToClusterIdentityOutputWithContext(ctx context.Context) ClusterIdentityOutput

func (ClusterIdentityOutput) ToClusterIdentityPtrOutput

func (o ClusterIdentityOutput) ToClusterIdentityPtrOutput() ClusterIdentityPtrOutput

func (ClusterIdentityOutput) ToClusterIdentityPtrOutputWithContext

func (o ClusterIdentityOutput) ToClusterIdentityPtrOutputWithContext(ctx context.Context) ClusterIdentityPtrOutput

func (ClusterIdentityOutput) Type

Specifies the type of Managed Service Identity that should be configured on this Log Analytics Cluster. The only possible value is `SystemAssigned`. Changing this forces a new resource to be created.

> **NOTE:** The assigned `principalId` and `tenantId` can be retrieved after the identity `type` has been set to `SystemAssigned` and the Log Analytics Cluster has been created. More details are available below.

type ClusterIdentityPtrInput

type ClusterIdentityPtrInput interface {
	pulumi.Input

	ToClusterIdentityPtrOutput() ClusterIdentityPtrOutput
	ToClusterIdentityPtrOutputWithContext(context.Context) ClusterIdentityPtrOutput
}

ClusterIdentityPtrInput is an input type that accepts ClusterIdentityArgs, ClusterIdentityPtr and ClusterIdentityPtrOutput values. You can construct a concrete instance of `ClusterIdentityPtrInput` via:

        ClusterIdentityArgs{...}

or:

        nil

type ClusterIdentityPtrOutput

type ClusterIdentityPtrOutput struct{ *pulumi.OutputState }

func (ClusterIdentityPtrOutput) Elem

func (ClusterIdentityPtrOutput) ElementType

func (ClusterIdentityPtrOutput) ElementType() reflect.Type

func (ClusterIdentityPtrOutput) PrincipalId

The Principal ID associated with this Managed Service Identity.

func (ClusterIdentityPtrOutput) TenantId

The Tenant ID associated with this Managed Service Identity.

func (ClusterIdentityPtrOutput) ToClusterIdentityPtrOutput

func (o ClusterIdentityPtrOutput) ToClusterIdentityPtrOutput() ClusterIdentityPtrOutput

func (ClusterIdentityPtrOutput) ToClusterIdentityPtrOutputWithContext

func (o ClusterIdentityPtrOutput) ToClusterIdentityPtrOutputWithContext(ctx context.Context) ClusterIdentityPtrOutput

func (ClusterIdentityPtrOutput) Type

Specifies the type of Managed Service Identity that should be configured on this Log Analytics Cluster. The only possible value is `SystemAssigned`. Changing this forces a new resource to be created.

> **NOTE:** The assigned `principalId` and `tenantId` can be retrieved after the identity `type` has been set to `SystemAssigned` and the Log Analytics Cluster has been created. More details are available below.

type ClusterInput

type ClusterInput interface {
	pulumi.Input

	ToClusterOutput() ClusterOutput
	ToClusterOutputWithContext(ctx context.Context) ClusterOutput
}

type ClusterMap

type ClusterMap map[string]ClusterInput

func (ClusterMap) ElementType

func (ClusterMap) ElementType() reflect.Type

func (ClusterMap) ToClusterMapOutput

func (i ClusterMap) ToClusterMapOutput() ClusterMapOutput

func (ClusterMap) ToClusterMapOutputWithContext

func (i ClusterMap) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput

type ClusterMapInput

type ClusterMapInput interface {
	pulumi.Input

	ToClusterMapOutput() ClusterMapOutput
	ToClusterMapOutputWithContext(context.Context) ClusterMapOutput
}

ClusterMapInput is an input type that accepts ClusterMap and ClusterMapOutput values. You can construct a concrete instance of `ClusterMapInput` via:

ClusterMap{ "key": ClusterArgs{...} }

type ClusterMapOutput

type ClusterMapOutput struct{ *pulumi.OutputState }

func (ClusterMapOutput) ElementType

func (ClusterMapOutput) ElementType() reflect.Type

func (ClusterMapOutput) MapIndex

func (ClusterMapOutput) ToClusterMapOutput

func (o ClusterMapOutput) ToClusterMapOutput() ClusterMapOutput

func (ClusterMapOutput) ToClusterMapOutputWithContext

func (o ClusterMapOutput) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput

type ClusterOutput

type ClusterOutput struct{ *pulumi.OutputState }

func (ClusterOutput) ClusterId added in v5.5.0

func (o ClusterOutput) ClusterId() pulumi.StringOutput

The GUID of the cluster.

func (ClusterOutput) ElementType

func (ClusterOutput) ElementType() reflect.Type

func (ClusterOutput) Identity added in v5.5.0

func (o ClusterOutput) Identity() ClusterIdentityOutput

An `identity` block as defined below. Changing this forces a new Log Analytics Cluster to be created.

func (ClusterOutput) Location added in v5.5.0

func (o ClusterOutput) Location() pulumi.StringOutput

The Azure Region where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created.

func (ClusterOutput) Name added in v5.5.0

The name which should be used for this Log Analytics Cluster. Changing this forces a new Log Analytics Cluster to be created.

func (ClusterOutput) ResourceGroupName added in v5.5.0

func (o ClusterOutput) ResourceGroupName() pulumi.StringOutput

The name of the Resource Group where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created.

func (ClusterOutput) SizeGb added in v5.5.0

func (o ClusterOutput) SizeGb() pulumi.IntPtrOutput

The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `500`, `1000`, `2000` or `5000`. Defaults to `1000`.

> **NOTE:** The cluster capacity must start at 500 GB and can be set to 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `500` GB.

func (ClusterOutput) Tags added in v5.5.0

A mapping of tags which should be assigned to the Log Analytics Cluster.

func (ClusterOutput) ToClusterOutput

func (o ClusterOutput) ToClusterOutput() ClusterOutput

func (ClusterOutput) ToClusterOutputWithContext

func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput

type ClusterState

type ClusterState struct {
	// The GUID of the cluster.
	ClusterId pulumi.StringPtrInput
	// An `identity` block as defined below. Changing this forces a new Log Analytics Cluster to be created.
	Identity ClusterIdentityPtrInput
	// The Azure Region where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created.
	Location pulumi.StringPtrInput
	// The name which should be used for this Log Analytics Cluster. Changing this forces a new Log Analytics Cluster to be created.
	Name pulumi.StringPtrInput
	// The name of the Resource Group where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created.
	ResourceGroupName pulumi.StringPtrInput
	// The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `500`, `1000`, `2000` or `5000`. Defaults to `1000`.
	//
	// > **NOTE:** The cluster capacity must start at 500 GB and can be set to 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `500` GB.
	SizeGb pulumi.IntPtrInput
	// A mapping of tags which should be assigned to the Log Analytics Cluster.
	Tags pulumi.StringMapInput
}

func (ClusterState) ElementType

func (ClusterState) ElementType() reflect.Type

type DataExportRule

type DataExportRule struct {
	pulumi.CustomResourceState

	// The destination resource ID. It should be a storage account, an event hub namespace or an event hub. If the destination is an event hub namespace, an event hub would be created for each table automatically.
	DestinationResourceId pulumi.StringOutput `pulumi:"destinationResourceId"`
	// Is this Log Analytics Data Export Rule enabled? Possible values include `true` or `false`. Defaults to `false`.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// The ID of the created Data Export Rule.
	ExportRuleId pulumi.StringOutput `pulumi:"exportRuleId"`
	// The name of the Log Analytics Data Export Rule. Changing this forces a new Log Analytics Data Export Rule to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the Resource Group where the Log Analytics Data Export should exist. Changing this forces a new Log Analytics Data Export Rule to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// A list of table names to export to the destination resource, for example: `["Heartbeat", "SecurityEvent"]`.
	TableNames pulumi.StringArrayOutput `pulumi:"tableNames"`
	// The resource ID of the workspace. Changing this forces a new Log Analytics Data Export Rule to be created.
	WorkspaceResourceId pulumi.StringOutput `pulumi:"workspaceResourceId"`
}

Manages a Log Analytics Data Export Rule.

## Example Usage

```go 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-azure/sdk/v5/go/azure/storage"
"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("exampleworkspace"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			Sku:               pulumi.String("PerGB2018"),
			RetentionInDays:   pulumi.Int(30),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
			Name:                   pulumi.String("examplestoracc"),
			ResourceGroupName:      example.Name,
			Location:               example.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("LRS"),
		})
		if err != nil {
			return err
		}
		_, err = loganalytics.NewDataExportRule(ctx, "example", &loganalytics.DataExportRuleArgs{
			Name:                  pulumi.String("dataExport1"),
			ResourceGroupName:     example.Name,
			WorkspaceResourceId:   exampleAnalyticsWorkspace.ID(),
			DestinationResourceId: exampleAccount.ID(),
			TableNames: pulumi.StringArray{
				pulumi.String("Heartbeat"),
			},
			Enabled: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Log Analytics Data Export Rule can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:loganalytics/dataExportRule:DataExportRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.OperationalInsights/workspaces/workspace1/dataExports/dataExport1 ```

func GetDataExportRule

func GetDataExportRule(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DataExportRuleState, opts ...pulumi.ResourceOption) (*DataExportRule, error)

GetDataExportRule gets an existing DataExportRule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDataExportRule

func NewDataExportRule(ctx *pulumi.Context,
	name string, args *DataExportRuleArgs, opts ...pulumi.ResourceOption) (*DataExportRule, error)

NewDataExportRule registers a new resource with the given unique name, arguments, and options.

func (*DataExportRule) ElementType

func (*DataExportRule) ElementType() reflect.Type

func (*DataExportRule) ToDataExportRuleOutput

func (i *DataExportRule) ToDataExportRuleOutput() DataExportRuleOutput

func (*DataExportRule) ToDataExportRuleOutputWithContext

func (i *DataExportRule) ToDataExportRuleOutputWithContext(ctx context.Context) DataExportRuleOutput

type DataExportRuleArgs

type DataExportRuleArgs struct {
	// The destination resource ID. It should be a storage account, an event hub namespace or an event hub. If the destination is an event hub namespace, an event hub would be created for each table automatically.
	DestinationResourceId pulumi.StringInput
	// Is this Log Analytics Data Export Rule enabled? Possible values include `true` or `false`. Defaults to `false`.
	Enabled pulumi.BoolPtrInput
	// The name of the Log Analytics Data Export Rule. Changing this forces a new Log Analytics Data Export Rule to be created.
	Name pulumi.StringPtrInput
	// The name of the Resource Group where the Log Analytics Data Export should exist. Changing this forces a new Log Analytics Data Export Rule to be created.
	ResourceGroupName pulumi.StringInput
	// A list of table names to export to the destination resource, for example: `["Heartbeat", "SecurityEvent"]`.
	TableNames pulumi.StringArrayInput
	// The resource ID of the workspace. Changing this forces a new Log Analytics Data Export Rule to be created.
	WorkspaceResourceId pulumi.StringInput
}

The set of arguments for constructing a DataExportRule resource.

func (DataExportRuleArgs) ElementType

func (DataExportRuleArgs) ElementType() reflect.Type

type DataExportRuleArray

type DataExportRuleArray []DataExportRuleInput

func (DataExportRuleArray) ElementType

func (DataExportRuleArray) ElementType() reflect.Type

func (DataExportRuleArray) ToDataExportRuleArrayOutput

func (i DataExportRuleArray) ToDataExportRuleArrayOutput() DataExportRuleArrayOutput

func (DataExportRuleArray) ToDataExportRuleArrayOutputWithContext

func (i DataExportRuleArray) ToDataExportRuleArrayOutputWithContext(ctx context.Context) DataExportRuleArrayOutput

type DataExportRuleArrayInput

type DataExportRuleArrayInput interface {
	pulumi.Input

	ToDataExportRuleArrayOutput() DataExportRuleArrayOutput
	ToDataExportRuleArrayOutputWithContext(context.Context) DataExportRuleArrayOutput
}

DataExportRuleArrayInput is an input type that accepts DataExportRuleArray and DataExportRuleArrayOutput values. You can construct a concrete instance of `DataExportRuleArrayInput` via:

DataExportRuleArray{ DataExportRuleArgs{...} }

type DataExportRuleArrayOutput

type DataExportRuleArrayOutput struct{ *pulumi.OutputState }

func (DataExportRuleArrayOutput) ElementType

func (DataExportRuleArrayOutput) ElementType() reflect.Type

func (DataExportRuleArrayOutput) Index

func (DataExportRuleArrayOutput) ToDataExportRuleArrayOutput

func (o DataExportRuleArrayOutput) ToDataExportRuleArrayOutput() DataExportRuleArrayOutput

func (DataExportRuleArrayOutput) ToDataExportRuleArrayOutputWithContext

func (o DataExportRuleArrayOutput) ToDataExportRuleArrayOutputWithContext(ctx context.Context) DataExportRuleArrayOutput

type DataExportRuleInput

type DataExportRuleInput interface {
	pulumi.Input

	ToDataExportRuleOutput() DataExportRuleOutput
	ToDataExportRuleOutputWithContext(ctx context.Context) DataExportRuleOutput
}

type DataExportRuleMap

type DataExportRuleMap map[string]DataExportRuleInput

func (DataExportRuleMap) ElementType

func (DataExportRuleMap) ElementType() reflect.Type

func (DataExportRuleMap) ToDataExportRuleMapOutput

func (i DataExportRuleMap) ToDataExportRuleMapOutput() DataExportRuleMapOutput

func (DataExportRuleMap) ToDataExportRuleMapOutputWithContext

func (i DataExportRuleMap) ToDataExportRuleMapOutputWithContext(ctx context.Context) DataExportRuleMapOutput

type DataExportRuleMapInput

type DataExportRuleMapInput interface {
	pulumi.Input

	ToDataExportRuleMapOutput() DataExportRuleMapOutput
	ToDataExportRuleMapOutputWithContext(context.Context) DataExportRuleMapOutput
}

DataExportRuleMapInput is an input type that accepts DataExportRuleMap and DataExportRuleMapOutput values. You can construct a concrete instance of `DataExportRuleMapInput` via:

DataExportRuleMap{ "key": DataExportRuleArgs{...} }

type DataExportRuleMapOutput

type DataExportRuleMapOutput struct{ *pulumi.OutputState }

func (DataExportRuleMapOutput) ElementType

func (DataExportRuleMapOutput) ElementType() reflect.Type

func (DataExportRuleMapOutput) MapIndex

func (DataExportRuleMapOutput) ToDataExportRuleMapOutput

func (o DataExportRuleMapOutput) ToDataExportRuleMapOutput() DataExportRuleMapOutput

func (DataExportRuleMapOutput) ToDataExportRuleMapOutputWithContext

func (o DataExportRuleMapOutput) ToDataExportRuleMapOutputWithContext(ctx context.Context) DataExportRuleMapOutput

type DataExportRuleOutput

type DataExportRuleOutput struct{ *pulumi.OutputState }

func (DataExportRuleOutput) DestinationResourceId added in v5.5.0

func (o DataExportRuleOutput) DestinationResourceId() pulumi.StringOutput

The destination resource ID. It should be a storage account, an event hub namespace or an event hub. If the destination is an event hub namespace, an event hub would be created for each table automatically.

func (DataExportRuleOutput) ElementType

func (DataExportRuleOutput) ElementType() reflect.Type

func (DataExportRuleOutput) Enabled added in v5.5.0

Is this Log Analytics Data Export Rule enabled? Possible values include `true` or `false`. Defaults to `false`.

func (DataExportRuleOutput) ExportRuleId added in v5.5.0

func (o DataExportRuleOutput) ExportRuleId() pulumi.StringOutput

The ID of the created Data Export Rule.

func (DataExportRuleOutput) Name added in v5.5.0

The name of the Log Analytics Data Export Rule. Changing this forces a new Log Analytics Data Export Rule to be created.

func (DataExportRuleOutput) ResourceGroupName added in v5.5.0

func (o DataExportRuleOutput) ResourceGroupName() pulumi.StringOutput

The name of the Resource Group where the Log Analytics Data Export should exist. Changing this forces a new Log Analytics Data Export Rule to be created.

func (DataExportRuleOutput) TableNames added in v5.5.0

A list of table names to export to the destination resource, for example: `["Heartbeat", "SecurityEvent"]`.

func (DataExportRuleOutput) ToDataExportRuleOutput

func (o DataExportRuleOutput) ToDataExportRuleOutput() DataExportRuleOutput

func (DataExportRuleOutput) ToDataExportRuleOutputWithContext

func (o DataExportRuleOutput) ToDataExportRuleOutputWithContext(ctx context.Context) DataExportRuleOutput

func (DataExportRuleOutput) WorkspaceResourceId added in v5.5.0

func (o DataExportRuleOutput) WorkspaceResourceId() pulumi.StringOutput

The resource ID of the workspace. Changing this forces a new Log Analytics Data Export Rule to be created.

type DataExportRuleState

type DataExportRuleState struct {
	// The destination resource ID. It should be a storage account, an event hub namespace or an event hub. If the destination is an event hub namespace, an event hub would be created for each table automatically.
	DestinationResourceId pulumi.StringPtrInput
	// Is this Log Analytics Data Export Rule enabled? Possible values include `true` or `false`. Defaults to `false`.
	Enabled pulumi.BoolPtrInput
	// The ID of the created Data Export Rule.
	ExportRuleId pulumi.StringPtrInput
	// The name of the Log Analytics Data Export Rule. Changing this forces a new Log Analytics Data Export Rule to be created.
	Name pulumi.StringPtrInput
	// The name of the Resource Group where the Log Analytics Data Export should exist. Changing this forces a new Log Analytics Data Export Rule to be created.
	ResourceGroupName pulumi.StringPtrInput
	// A list of table names to export to the destination resource, for example: `["Heartbeat", "SecurityEvent"]`.
	TableNames pulumi.StringArrayInput
	// The resource ID of the workspace. Changing this forces a new Log Analytics Data Export Rule to be created.
	WorkspaceResourceId pulumi.StringPtrInput
}

func (DataExportRuleState) ElementType

func (DataExportRuleState) ElementType() reflect.Type

type DataSourceWindowsEvent

type DataSourceWindowsEvent struct {
	pulumi.CustomResourceState

	// Specifies the name of the Windows Event Log to collect events from.
	EventLogName pulumi.StringOutput `pulumi:"eventLogName"`
	// Specifies an array of event types applied to the specified event log. Possible values include `Error`, `Warning` and `Information`.
	EventTypes pulumi.StringArrayOutput `pulumi:"eventTypes"`
	// The name which should be used for this Log Analytics Windows Event DataSource. Changing this forces a new Log Analytics Windows Event DataSource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the Resource Group where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// The name of the Log Analytics Workspace where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
	WorkspaceName pulumi.StringOutput `pulumi:"workspaceName"`
}

Manages a Log Analytics Windows Event DataSource.

## Example Usage

```go 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.NewDataSourceWindowsEvent(ctx, "example", &loganalytics.DataSourceWindowsEventArgs{
			Name:              pulumi.String("example-lad-wpc"),
			ResourceGroupName: example.Name,
			WorkspaceName:     exampleAnalyticsWorkspace.Name,
			EventLogName:      pulumi.String("Application"),
			EventTypes: pulumi.StringArray{
				pulumi.String("Error"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Log Analytics Windows Event DataSources can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:loganalytics/dataSourceWindowsEvent:DataSourceWindowsEvent example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.OperationalInsights/workspaces/workspace1/dataSources/datasource1 ```

func GetDataSourceWindowsEvent

func GetDataSourceWindowsEvent(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DataSourceWindowsEventState, opts ...pulumi.ResourceOption) (*DataSourceWindowsEvent, error)

GetDataSourceWindowsEvent gets an existing DataSourceWindowsEvent resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDataSourceWindowsEvent

func NewDataSourceWindowsEvent(ctx *pulumi.Context,
	name string, args *DataSourceWindowsEventArgs, opts ...pulumi.ResourceOption) (*DataSourceWindowsEvent, error)

NewDataSourceWindowsEvent registers a new resource with the given unique name, arguments, and options.

func (*DataSourceWindowsEvent) ElementType

func (*DataSourceWindowsEvent) ElementType() reflect.Type

func (*DataSourceWindowsEvent) ToDataSourceWindowsEventOutput

func (i *DataSourceWindowsEvent) ToDataSourceWindowsEventOutput() DataSourceWindowsEventOutput

func (*DataSourceWindowsEvent) ToDataSourceWindowsEventOutputWithContext

func (i *DataSourceWindowsEvent) ToDataSourceWindowsEventOutputWithContext(ctx context.Context) DataSourceWindowsEventOutput

type DataSourceWindowsEventArgs

type DataSourceWindowsEventArgs struct {
	// Specifies the name of the Windows Event Log to collect events from.
	EventLogName pulumi.StringInput
	// Specifies an array of event types applied to the specified event log. Possible values include `Error`, `Warning` and `Information`.
	EventTypes pulumi.StringArrayInput
	// The name which should be used for this Log Analytics Windows Event DataSource. Changing this forces a new Log Analytics Windows Event DataSource to be created.
	Name pulumi.StringPtrInput
	// The name of the Resource Group where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
	ResourceGroupName pulumi.StringInput
	// The name of the Log Analytics Workspace where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
	WorkspaceName pulumi.StringInput
}

The set of arguments for constructing a DataSourceWindowsEvent resource.

func (DataSourceWindowsEventArgs) ElementType

func (DataSourceWindowsEventArgs) ElementType() reflect.Type

type DataSourceWindowsEventArray

type DataSourceWindowsEventArray []DataSourceWindowsEventInput

func (DataSourceWindowsEventArray) ElementType

func (DataSourceWindowsEventArray) ToDataSourceWindowsEventArrayOutput

func (i DataSourceWindowsEventArray) ToDataSourceWindowsEventArrayOutput() DataSourceWindowsEventArrayOutput

func (DataSourceWindowsEventArray) ToDataSourceWindowsEventArrayOutputWithContext

func (i DataSourceWindowsEventArray) ToDataSourceWindowsEventArrayOutputWithContext(ctx context.Context) DataSourceWindowsEventArrayOutput

type DataSourceWindowsEventArrayInput

type DataSourceWindowsEventArrayInput interface {
	pulumi.Input

	ToDataSourceWindowsEventArrayOutput() DataSourceWindowsEventArrayOutput
	ToDataSourceWindowsEventArrayOutputWithContext(context.Context) DataSourceWindowsEventArrayOutput
}

DataSourceWindowsEventArrayInput is an input type that accepts DataSourceWindowsEventArray and DataSourceWindowsEventArrayOutput values. You can construct a concrete instance of `DataSourceWindowsEventArrayInput` via:

DataSourceWindowsEventArray{ DataSourceWindowsEventArgs{...} }

type DataSourceWindowsEventArrayOutput

type DataSourceWindowsEventArrayOutput struct{ *pulumi.OutputState }

func (DataSourceWindowsEventArrayOutput) ElementType

func (DataSourceWindowsEventArrayOutput) Index

func (DataSourceWindowsEventArrayOutput) ToDataSourceWindowsEventArrayOutput

func (o DataSourceWindowsEventArrayOutput) ToDataSourceWindowsEventArrayOutput() DataSourceWindowsEventArrayOutput

func (DataSourceWindowsEventArrayOutput) ToDataSourceWindowsEventArrayOutputWithContext

func (o DataSourceWindowsEventArrayOutput) ToDataSourceWindowsEventArrayOutputWithContext(ctx context.Context) DataSourceWindowsEventArrayOutput

type DataSourceWindowsEventInput

type DataSourceWindowsEventInput interface {
	pulumi.Input

	ToDataSourceWindowsEventOutput() DataSourceWindowsEventOutput
	ToDataSourceWindowsEventOutputWithContext(ctx context.Context) DataSourceWindowsEventOutput
}

type DataSourceWindowsEventMap

type DataSourceWindowsEventMap map[string]DataSourceWindowsEventInput

func (DataSourceWindowsEventMap) ElementType

func (DataSourceWindowsEventMap) ElementType() reflect.Type

func (DataSourceWindowsEventMap) ToDataSourceWindowsEventMapOutput

func (i DataSourceWindowsEventMap) ToDataSourceWindowsEventMapOutput() DataSourceWindowsEventMapOutput

func (DataSourceWindowsEventMap) ToDataSourceWindowsEventMapOutputWithContext

func (i DataSourceWindowsEventMap) ToDataSourceWindowsEventMapOutputWithContext(ctx context.Context) DataSourceWindowsEventMapOutput

type DataSourceWindowsEventMapInput

type DataSourceWindowsEventMapInput interface {
	pulumi.Input

	ToDataSourceWindowsEventMapOutput() DataSourceWindowsEventMapOutput
	ToDataSourceWindowsEventMapOutputWithContext(context.Context) DataSourceWindowsEventMapOutput
}

DataSourceWindowsEventMapInput is an input type that accepts DataSourceWindowsEventMap and DataSourceWindowsEventMapOutput values. You can construct a concrete instance of `DataSourceWindowsEventMapInput` via:

DataSourceWindowsEventMap{ "key": DataSourceWindowsEventArgs{...} }

type DataSourceWindowsEventMapOutput

type DataSourceWindowsEventMapOutput struct{ *pulumi.OutputState }

func (DataSourceWindowsEventMapOutput) ElementType

func (DataSourceWindowsEventMapOutput) MapIndex

func (DataSourceWindowsEventMapOutput) ToDataSourceWindowsEventMapOutput

func (o DataSourceWindowsEventMapOutput) ToDataSourceWindowsEventMapOutput() DataSourceWindowsEventMapOutput

func (DataSourceWindowsEventMapOutput) ToDataSourceWindowsEventMapOutputWithContext

func (o DataSourceWindowsEventMapOutput) ToDataSourceWindowsEventMapOutputWithContext(ctx context.Context) DataSourceWindowsEventMapOutput

type DataSourceWindowsEventOutput

type DataSourceWindowsEventOutput struct{ *pulumi.OutputState }

func (DataSourceWindowsEventOutput) ElementType

func (DataSourceWindowsEventOutput) EventLogName added in v5.5.0

Specifies the name of the Windows Event Log to collect events from.

func (DataSourceWindowsEventOutput) EventTypes added in v5.5.0

Specifies an array of event types applied to the specified event log. Possible values include `Error`, `Warning` and `Information`.

func (DataSourceWindowsEventOutput) Name added in v5.5.0

The name which should be used for this Log Analytics Windows Event DataSource. Changing this forces a new Log Analytics Windows Event DataSource to be created.

func (DataSourceWindowsEventOutput) ResourceGroupName added in v5.5.0

func (o DataSourceWindowsEventOutput) ResourceGroupName() pulumi.StringOutput

The name of the Resource Group where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.

func (DataSourceWindowsEventOutput) ToDataSourceWindowsEventOutput

func (o DataSourceWindowsEventOutput) ToDataSourceWindowsEventOutput() DataSourceWindowsEventOutput

func (DataSourceWindowsEventOutput) ToDataSourceWindowsEventOutputWithContext

func (o DataSourceWindowsEventOutput) ToDataSourceWindowsEventOutputWithContext(ctx context.Context) DataSourceWindowsEventOutput

func (DataSourceWindowsEventOutput) WorkspaceName added in v5.5.0

The name of the Log Analytics Workspace where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.

type DataSourceWindowsEventState

type DataSourceWindowsEventState struct {
	// Specifies the name of the Windows Event Log to collect events from.
	EventLogName pulumi.StringPtrInput
	// Specifies an array of event types applied to the specified event log. Possible values include `Error`, `Warning` and `Information`.
	EventTypes pulumi.StringArrayInput
	// The name which should be used for this Log Analytics Windows Event DataSource. Changing this forces a new Log Analytics Windows Event DataSource to be created.
	Name pulumi.StringPtrInput
	// The name of the Resource Group where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// The name of the Log Analytics Workspace where the Log Analytics Windows Event DataSource should exist. Changing this forces a new Log Analytics Windows Event DataSource to be created.
	WorkspaceName pulumi.StringPtrInput
}

func (DataSourceWindowsEventState) ElementType

type DataSourceWindowsPerformanceCounter

type DataSourceWindowsPerformanceCounter struct {
	pulumi.CustomResourceState

	// The friendly name of the performance counter.
	CounterName pulumi.StringOutput `pulumi:"counterName"`
	// The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a `*` will apply to all instances.
	InstanceName pulumi.StringOutput `pulumi:"instanceName"`
	// The time of sample interval in seconds. Supports values between 10 and 2147483647.
	IntervalSeconds pulumi.IntOutput `pulumi:"intervalSeconds"`
	// 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.
	Name pulumi.StringOutput `pulumi:"name"`
	// The object name of the Log Analytics Windows Performance Counter DataSource.
	ObjectName pulumi.StringOutput `pulumi:"objectName"`
	// 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.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// 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.
	WorkspaceName pulumi.StringOutput `pulumi:"workspaceName"`
}

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

## Example Usage

```go 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
	})
}

```

## Import

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

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

func GetDataSourceWindowsPerformanceCounter

func GetDataSourceWindowsPerformanceCounter(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DataSourceWindowsPerformanceCounterState, opts ...pulumi.ResourceOption) (*DataSourceWindowsPerformanceCounter, error)

GetDataSourceWindowsPerformanceCounter gets an existing DataSourceWindowsPerformanceCounter resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDataSourceWindowsPerformanceCounter

func NewDataSourceWindowsPerformanceCounter(ctx *pulumi.Context,
	name string, args *DataSourceWindowsPerformanceCounterArgs, opts ...pulumi.ResourceOption) (*DataSourceWindowsPerformanceCounter, error)

NewDataSourceWindowsPerformanceCounter registers a new resource with the given unique name, arguments, and options.

func (*DataSourceWindowsPerformanceCounter) ElementType

func (*DataSourceWindowsPerformanceCounter) ToDataSourceWindowsPerformanceCounterOutput

func (i *DataSourceWindowsPerformanceCounter) ToDataSourceWindowsPerformanceCounterOutput() DataSourceWindowsPerformanceCounterOutput

func (*DataSourceWindowsPerformanceCounter) ToDataSourceWindowsPerformanceCounterOutputWithContext

func (i *DataSourceWindowsPerformanceCounter) ToDataSourceWindowsPerformanceCounterOutputWithContext(ctx context.Context) DataSourceWindowsPerformanceCounterOutput

type DataSourceWindowsPerformanceCounterArgs

type DataSourceWindowsPerformanceCounterArgs struct {
	// The friendly name of the performance counter.
	CounterName pulumi.StringInput
	// The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a `*` will apply to all instances.
	InstanceName pulumi.StringInput
	// The time of sample interval in seconds. Supports values between 10 and 2147483647.
	IntervalSeconds pulumi.IntInput
	// 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.
	Name pulumi.StringPtrInput
	// The object name of the Log Analytics Windows Performance Counter DataSource.
	ObjectName pulumi.StringInput
	// 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.
	ResourceGroupName pulumi.StringInput
	// 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.
	WorkspaceName pulumi.StringInput
}

The set of arguments for constructing a DataSourceWindowsPerformanceCounter resource.

func (DataSourceWindowsPerformanceCounterArgs) ElementType

type DataSourceWindowsPerformanceCounterArray

type DataSourceWindowsPerformanceCounterArray []DataSourceWindowsPerformanceCounterInput

func (DataSourceWindowsPerformanceCounterArray) ElementType

func (DataSourceWindowsPerformanceCounterArray) ToDataSourceWindowsPerformanceCounterArrayOutput

func (i DataSourceWindowsPerformanceCounterArray) ToDataSourceWindowsPerformanceCounterArrayOutput() DataSourceWindowsPerformanceCounterArrayOutput

func (DataSourceWindowsPerformanceCounterArray) ToDataSourceWindowsPerformanceCounterArrayOutputWithContext

func (i DataSourceWindowsPerformanceCounterArray) ToDataSourceWindowsPerformanceCounterArrayOutputWithContext(ctx context.Context) DataSourceWindowsPerformanceCounterArrayOutput

type DataSourceWindowsPerformanceCounterArrayInput

type DataSourceWindowsPerformanceCounterArrayInput interface {
	pulumi.Input

	ToDataSourceWindowsPerformanceCounterArrayOutput() DataSourceWindowsPerformanceCounterArrayOutput
	ToDataSourceWindowsPerformanceCounterArrayOutputWithContext(context.Context) DataSourceWindowsPerformanceCounterArrayOutput
}

DataSourceWindowsPerformanceCounterArrayInput is an input type that accepts DataSourceWindowsPerformanceCounterArray and DataSourceWindowsPerformanceCounterArrayOutput values. You can construct a concrete instance of `DataSourceWindowsPerformanceCounterArrayInput` via:

DataSourceWindowsPerformanceCounterArray{ DataSourceWindowsPerformanceCounterArgs{...} }

type DataSourceWindowsPerformanceCounterArrayOutput

type DataSourceWindowsPerformanceCounterArrayOutput struct{ *pulumi.OutputState }

func (DataSourceWindowsPerformanceCounterArrayOutput) ElementType

func (DataSourceWindowsPerformanceCounterArrayOutput) Index

func (DataSourceWindowsPerformanceCounterArrayOutput) ToDataSourceWindowsPerformanceCounterArrayOutput

func (o DataSourceWindowsPerformanceCounterArrayOutput) ToDataSourceWindowsPerformanceCounterArrayOutput() DataSourceWindowsPerformanceCounterArrayOutput

func (DataSourceWindowsPerformanceCounterArrayOutput) ToDataSourceWindowsPerformanceCounterArrayOutputWithContext

func (o DataSourceWindowsPerformanceCounterArrayOutput) ToDataSourceWindowsPerformanceCounterArrayOutputWithContext(ctx context.Context) DataSourceWindowsPerformanceCounterArrayOutput

type DataSourceWindowsPerformanceCounterInput

type DataSourceWindowsPerformanceCounterInput interface {
	pulumi.Input

	ToDataSourceWindowsPerformanceCounterOutput() DataSourceWindowsPerformanceCounterOutput
	ToDataSourceWindowsPerformanceCounterOutputWithContext(ctx context.Context) DataSourceWindowsPerformanceCounterOutput
}

type DataSourceWindowsPerformanceCounterMap

type DataSourceWindowsPerformanceCounterMap map[string]DataSourceWindowsPerformanceCounterInput

func (DataSourceWindowsPerformanceCounterMap) ElementType

func (DataSourceWindowsPerformanceCounterMap) ToDataSourceWindowsPerformanceCounterMapOutput

func (i DataSourceWindowsPerformanceCounterMap) ToDataSourceWindowsPerformanceCounterMapOutput() DataSourceWindowsPerformanceCounterMapOutput

func (DataSourceWindowsPerformanceCounterMap) ToDataSourceWindowsPerformanceCounterMapOutputWithContext

func (i DataSourceWindowsPerformanceCounterMap) ToDataSourceWindowsPerformanceCounterMapOutputWithContext(ctx context.Context) DataSourceWindowsPerformanceCounterMapOutput

type DataSourceWindowsPerformanceCounterMapInput

type DataSourceWindowsPerformanceCounterMapInput interface {
	pulumi.Input

	ToDataSourceWindowsPerformanceCounterMapOutput() DataSourceWindowsPerformanceCounterMapOutput
	ToDataSourceWindowsPerformanceCounterMapOutputWithContext(context.Context) DataSourceWindowsPerformanceCounterMapOutput
}

DataSourceWindowsPerformanceCounterMapInput is an input type that accepts DataSourceWindowsPerformanceCounterMap and DataSourceWindowsPerformanceCounterMapOutput values. You can construct a concrete instance of `DataSourceWindowsPerformanceCounterMapInput` via:

DataSourceWindowsPerformanceCounterMap{ "key": DataSourceWindowsPerformanceCounterArgs{...} }

type DataSourceWindowsPerformanceCounterMapOutput

type DataSourceWindowsPerformanceCounterMapOutput struct{ *pulumi.OutputState }

func (DataSourceWindowsPerformanceCounterMapOutput) ElementType

func (DataSourceWindowsPerformanceCounterMapOutput) MapIndex

func (DataSourceWindowsPerformanceCounterMapOutput) ToDataSourceWindowsPerformanceCounterMapOutput

func (o DataSourceWindowsPerformanceCounterMapOutput) ToDataSourceWindowsPerformanceCounterMapOutput() DataSourceWindowsPerformanceCounterMapOutput

func (DataSourceWindowsPerformanceCounterMapOutput) ToDataSourceWindowsPerformanceCounterMapOutputWithContext

func (o DataSourceWindowsPerformanceCounterMapOutput) ToDataSourceWindowsPerformanceCounterMapOutputWithContext(ctx context.Context) DataSourceWindowsPerformanceCounterMapOutput

type DataSourceWindowsPerformanceCounterOutput

type DataSourceWindowsPerformanceCounterOutput struct{ *pulumi.OutputState }

func (DataSourceWindowsPerformanceCounterOutput) CounterName added in v5.5.0

The friendly name of the performance counter.

func (DataSourceWindowsPerformanceCounterOutput) ElementType

func (DataSourceWindowsPerformanceCounterOutput) InstanceName added in v5.5.0

The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a `*` will apply to all instances.

func (DataSourceWindowsPerformanceCounterOutput) IntervalSeconds added in v5.5.0

The time of sample interval in seconds. Supports values between 10 and 2147483647.

func (DataSourceWindowsPerformanceCounterOutput) Name added in v5.5.0

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.

func (DataSourceWindowsPerformanceCounterOutput) ObjectName added in v5.5.0

The object name of the Log Analytics Windows Performance Counter DataSource.

func (DataSourceWindowsPerformanceCounterOutput) ResourceGroupName added in v5.5.0

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.

func (DataSourceWindowsPerformanceCounterOutput) ToDataSourceWindowsPerformanceCounterOutput

func (o DataSourceWindowsPerformanceCounterOutput) ToDataSourceWindowsPerformanceCounterOutput() DataSourceWindowsPerformanceCounterOutput

func (DataSourceWindowsPerformanceCounterOutput) ToDataSourceWindowsPerformanceCounterOutputWithContext

func (o DataSourceWindowsPerformanceCounterOutput) ToDataSourceWindowsPerformanceCounterOutputWithContext(ctx context.Context) DataSourceWindowsPerformanceCounterOutput

func (DataSourceWindowsPerformanceCounterOutput) WorkspaceName added in v5.5.0

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.

type DataSourceWindowsPerformanceCounterState

type DataSourceWindowsPerformanceCounterState struct {
	// The friendly name of the performance counter.
	CounterName pulumi.StringPtrInput
	// The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a `*` will apply to all instances.
	InstanceName pulumi.StringPtrInput
	// The time of sample interval in seconds. Supports values between 10 and 2147483647.
	IntervalSeconds pulumi.IntPtrInput
	// 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.
	Name pulumi.StringPtrInput
	// The object name of the Log Analytics Windows Performance Counter DataSource.
	ObjectName pulumi.StringPtrInput
	// 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.
	ResourceGroupName pulumi.StringPtrInput
	// 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.
	WorkspaceName pulumi.StringPtrInput
}

func (DataSourceWindowsPerformanceCounterState) ElementType

type LinkedService

type LinkedService struct {
	pulumi.CustomResourceState

	// The generated name of the Linked Service. The format for this attribute is always `<workspace name>/<linked service type>`(e.g. `workspace1/Automation` or `workspace1/Cluster`)
	Name pulumi.StringOutput `pulumi:"name"`
	// The ID of the readable Resource that will be linked to the workspace. This should be used for linking to an Automation Account resource.
	ReadAccessId pulumi.StringOutput `pulumi:"readAccessId"`
	// The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// The ID of the Log Analytics Workspace that will contain the Log Analytics Linked Service resource.
	WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"`
	// The ID of the writable Resource that will be linked to the workspace. This should be used for linking to a Log Analytics Cluster resource.
	//
	// > **NOTE:** You must define at least one of the above access resource id attributes (e.g. `readAccessId` or `writeAccessId`).
	WriteAccessId pulumi.StringPtrOutput `pulumi:"writeAccessId"`
}

Manages a Log Analytics Linked Service.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/automation"
"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("resourcegroup-01"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := automation.NewAccount(ctx, "example", &automation.AccountArgs{
			Name:              pulumi.String("automation-01"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			SkuName:           pulumi.String("Basic"),
			Tags: pulumi.StringMap{
				"environment": pulumi.String("development"),
			},
		})
		if err != nil {
			return err
		}
		exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{
			Name:              pulumi.String("workspace-01"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			Sku:               pulumi.String("PerGB2018"),
			RetentionInDays:   pulumi.Int(30),
		})
		if err != nil {
			return err
		}
		_, err = loganalytics.NewLinkedService(ctx, "example", &loganalytics.LinkedServiceArgs{
			ResourceGroupName: example.Name,
			WorkspaceId:       exampleAnalyticsWorkspace.ID(),
			ReadAccessId:      exampleAccount.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Log Analytics Workspaces can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:loganalytics/linkedService:LinkedService example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.OperationalInsights/workspaces/workspace1/linkedServices/Automation ```

func GetLinkedService

func GetLinkedService(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LinkedServiceState, opts ...pulumi.ResourceOption) (*LinkedService, error)

GetLinkedService gets an existing LinkedService resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewLinkedService

func NewLinkedService(ctx *pulumi.Context,
	name string, args *LinkedServiceArgs, opts ...pulumi.ResourceOption) (*LinkedService, error)

NewLinkedService registers a new resource with the given unique name, arguments, and options.

func (*LinkedService) ElementType

func (*LinkedService) ElementType() reflect.Type

func (*LinkedService) ToLinkedServiceOutput

func (i *LinkedService) ToLinkedServiceOutput() LinkedServiceOutput

func (*LinkedService) ToLinkedServiceOutputWithContext

func (i *LinkedService) ToLinkedServiceOutputWithContext(ctx context.Context) LinkedServiceOutput

type LinkedServiceArgs

type LinkedServiceArgs struct {
	// The ID of the readable Resource that will be linked to the workspace. This should be used for linking to an Automation Account resource.
	ReadAccessId pulumi.StringPtrInput
	// The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// The ID of the Log Analytics Workspace that will contain the Log Analytics Linked Service resource.
	WorkspaceId pulumi.StringInput
	// The ID of the writable Resource that will be linked to the workspace. This should be used for linking to a Log Analytics Cluster resource.
	//
	// > **NOTE:** You must define at least one of the above access resource id attributes (e.g. `readAccessId` or `writeAccessId`).
	WriteAccessId pulumi.StringPtrInput
}

The set of arguments for constructing a LinkedService resource.

func (LinkedServiceArgs) ElementType

func (LinkedServiceArgs) ElementType() reflect.Type

type LinkedServiceArray

type LinkedServiceArray []LinkedServiceInput

func (LinkedServiceArray) ElementType

func (LinkedServiceArray) ElementType() reflect.Type

func (LinkedServiceArray) ToLinkedServiceArrayOutput

func (i LinkedServiceArray) ToLinkedServiceArrayOutput() LinkedServiceArrayOutput

func (LinkedServiceArray) ToLinkedServiceArrayOutputWithContext

func (i LinkedServiceArray) ToLinkedServiceArrayOutputWithContext(ctx context.Context) LinkedServiceArrayOutput

type LinkedServiceArrayInput

type LinkedServiceArrayInput interface {
	pulumi.Input

	ToLinkedServiceArrayOutput() LinkedServiceArrayOutput
	ToLinkedServiceArrayOutputWithContext(context.Context) LinkedServiceArrayOutput
}

LinkedServiceArrayInput is an input type that accepts LinkedServiceArray and LinkedServiceArrayOutput values. You can construct a concrete instance of `LinkedServiceArrayInput` via:

LinkedServiceArray{ LinkedServiceArgs{...} }

type LinkedServiceArrayOutput

type LinkedServiceArrayOutput struct{ *pulumi.OutputState }

func (LinkedServiceArrayOutput) ElementType

func (LinkedServiceArrayOutput) ElementType() reflect.Type

func (LinkedServiceArrayOutput) Index

func (LinkedServiceArrayOutput) ToLinkedServiceArrayOutput

func (o LinkedServiceArrayOutput) ToLinkedServiceArrayOutput() LinkedServiceArrayOutput

func (LinkedServiceArrayOutput) ToLinkedServiceArrayOutputWithContext

func (o LinkedServiceArrayOutput) ToLinkedServiceArrayOutputWithContext(ctx context.Context) LinkedServiceArrayOutput

type LinkedServiceInput

type LinkedServiceInput interface {
	pulumi.Input

	ToLinkedServiceOutput() LinkedServiceOutput
	ToLinkedServiceOutputWithContext(ctx context.Context) LinkedServiceOutput
}

type LinkedServiceMap

type LinkedServiceMap map[string]LinkedServiceInput

func (LinkedServiceMap) ElementType

func (LinkedServiceMap) ElementType() reflect.Type

func (LinkedServiceMap) ToLinkedServiceMapOutput

func (i LinkedServiceMap) ToLinkedServiceMapOutput() LinkedServiceMapOutput

func (LinkedServiceMap) ToLinkedServiceMapOutputWithContext

func (i LinkedServiceMap) ToLinkedServiceMapOutputWithContext(ctx context.Context) LinkedServiceMapOutput

type LinkedServiceMapInput

type LinkedServiceMapInput interface {
	pulumi.Input

	ToLinkedServiceMapOutput() LinkedServiceMapOutput
	ToLinkedServiceMapOutputWithContext(context.Context) LinkedServiceMapOutput
}

LinkedServiceMapInput is an input type that accepts LinkedServiceMap and LinkedServiceMapOutput values. You can construct a concrete instance of `LinkedServiceMapInput` via:

LinkedServiceMap{ "key": LinkedServiceArgs{...} }

type LinkedServiceMapOutput

type LinkedServiceMapOutput struct{ *pulumi.OutputState }

func (LinkedServiceMapOutput) ElementType

func (LinkedServiceMapOutput) ElementType() reflect.Type

func (LinkedServiceMapOutput) MapIndex

func (LinkedServiceMapOutput) ToLinkedServiceMapOutput

func (o LinkedServiceMapOutput) ToLinkedServiceMapOutput() LinkedServiceMapOutput

func (LinkedServiceMapOutput) ToLinkedServiceMapOutputWithContext

func (o LinkedServiceMapOutput) ToLinkedServiceMapOutputWithContext(ctx context.Context) LinkedServiceMapOutput

type LinkedServiceOutput

type LinkedServiceOutput struct{ *pulumi.OutputState }

func (LinkedServiceOutput) ElementType

func (LinkedServiceOutput) ElementType() reflect.Type

func (LinkedServiceOutput) Name added in v5.5.0

The generated name of the Linked Service. The format for this attribute is always `<workspace name>/<linked service type>`(e.g. `workspace1/Automation` or `workspace1/Cluster`)

func (LinkedServiceOutput) ReadAccessId added in v5.5.0

func (o LinkedServiceOutput) ReadAccessId() pulumi.StringOutput

The ID of the readable Resource that will be linked to the workspace. This should be used for linking to an Automation Account resource.

func (LinkedServiceOutput) ResourceGroupName added in v5.5.0

func (o LinkedServiceOutput) ResourceGroupName() pulumi.StringOutput

The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created.

func (LinkedServiceOutput) ToLinkedServiceOutput

func (o LinkedServiceOutput) ToLinkedServiceOutput() LinkedServiceOutput

func (LinkedServiceOutput) ToLinkedServiceOutputWithContext

func (o LinkedServiceOutput) ToLinkedServiceOutputWithContext(ctx context.Context) LinkedServiceOutput

func (LinkedServiceOutput) WorkspaceId added in v5.5.0

func (o LinkedServiceOutput) WorkspaceId() pulumi.StringOutput

The ID of the Log Analytics Workspace that will contain the Log Analytics Linked Service resource.

func (LinkedServiceOutput) WriteAccessId added in v5.5.0

func (o LinkedServiceOutput) WriteAccessId() pulumi.StringPtrOutput

The ID of the writable Resource that will be linked to the workspace. This should be used for linking to a Log Analytics Cluster resource.

> **NOTE:** You must define at least one of the above access resource id attributes (e.g. `readAccessId` or `writeAccessId`).

type LinkedServiceState

type LinkedServiceState struct {
	// The generated name of the Linked Service. The format for this attribute is always `<workspace name>/<linked service type>`(e.g. `workspace1/Automation` or `workspace1/Cluster`)
	Name pulumi.StringPtrInput
	// The ID of the readable Resource that will be linked to the workspace. This should be used for linking to an Automation Account resource.
	ReadAccessId pulumi.StringPtrInput
	// The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// The ID of the Log Analytics Workspace that will contain the Log Analytics Linked Service resource.
	WorkspaceId pulumi.StringPtrInput
	// The ID of the writable Resource that will be linked to the workspace. This should be used for linking to a Log Analytics Cluster resource.
	//
	// > **NOTE:** You must define at least one of the above access resource id attributes (e.g. `readAccessId` or `writeAccessId`).
	WriteAccessId pulumi.StringPtrInput
}

func (LinkedServiceState) ElementType

func (LinkedServiceState) ElementType() reflect.Type

type LinkedStorageAccount

type LinkedStorageAccount struct {
	pulumi.CustomResourceState

	// The data source type which should be used for this Log Analytics Linked Storage Account. Possible values are `CustomLogs`, `AzureWatson`, `Query`, `Ingestion` and `Alerts`. Changing this forces a new Log Analytics Linked Storage Account to be created.
	//
	// > **Note:** The `dataSourceType` is case-insensitive in current 3.x version. And in 4.0 or later versions, Case-sensitivity will be required.
	DataSourceType pulumi.StringOutput `pulumi:"dataSourceType"`
	// The name of the Resource Group where the Log Analytics Linked Storage Account should exist. Changing this forces a new Log Analytics Linked Storage Account to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// The storage account resource ids to be linked.
	StorageAccountIds pulumi.StringArrayOutput `pulumi:"storageAccountIds"`
	// The resource ID of the Log Analytics Workspace. Changing this forces a new Log Analytics Linked Storage Account to be created.
	WorkspaceResourceId pulumi.StringOutput `pulumi:"workspaceResourceId"`
}

Manages a Log Analytics Linked Storage Account.

## Example Usage

```go 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-azure/sdk/v5/go/azure/storage"
"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
		}
		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
			Name:                   pulumi.String("examplesa"),
			ResourceGroupName:      example.Name,
			Location:               example.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("GRS"),
		})
		if err != nil {
			return err
		}
		exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{
			Name:              pulumi.String("exampleworkspace"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			Sku:               pulumi.String("PerGB2018"),
		})
		if err != nil {
			return err
		}
		_, err = loganalytics.NewLinkedStorageAccount(ctx, "example", &loganalytics.LinkedStorageAccountArgs{
			DataSourceType:      pulumi.String("CustomLogs"),
			ResourceGroupName:   example.Name,
			WorkspaceResourceId: exampleAnalyticsWorkspace.ID(),
			StorageAccountIds: pulumi.StringArray{
				exampleAccount.ID(),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Log Analytics Linked Storage Accounts can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:loganalytics/linkedStorageAccount:LinkedStorageAccount example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.OperationalInsights/workspaces/workspace1/linkedStorageAccounts/{dataSourceType} ```

func GetLinkedStorageAccount

func GetLinkedStorageAccount(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LinkedStorageAccountState, opts ...pulumi.ResourceOption) (*LinkedStorageAccount, error)

GetLinkedStorageAccount gets an existing LinkedStorageAccount resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewLinkedStorageAccount

func NewLinkedStorageAccount(ctx *pulumi.Context,
	name string, args *LinkedStorageAccountArgs, opts ...pulumi.ResourceOption) (*LinkedStorageAccount, error)

NewLinkedStorageAccount registers a new resource with the given unique name, arguments, and options.

func (*LinkedStorageAccount) ElementType

func (*LinkedStorageAccount) ElementType() reflect.Type

func (*LinkedStorageAccount) ToLinkedStorageAccountOutput

func (i *LinkedStorageAccount) ToLinkedStorageAccountOutput() LinkedStorageAccountOutput

func (*LinkedStorageAccount) ToLinkedStorageAccountOutputWithContext

func (i *LinkedStorageAccount) ToLinkedStorageAccountOutputWithContext(ctx context.Context) LinkedStorageAccountOutput

type LinkedStorageAccountArgs

type LinkedStorageAccountArgs struct {
	// The data source type which should be used for this Log Analytics Linked Storage Account. Possible values are `CustomLogs`, `AzureWatson`, `Query`, `Ingestion` and `Alerts`. Changing this forces a new Log Analytics Linked Storage Account to be created.
	//
	// > **Note:** The `dataSourceType` is case-insensitive in current 3.x version. And in 4.0 or later versions, Case-sensitivity will be required.
	DataSourceType pulumi.StringInput
	// The name of the Resource Group where the Log Analytics Linked Storage Account should exist. Changing this forces a new Log Analytics Linked Storage Account to be created.
	ResourceGroupName pulumi.StringInput
	// The storage account resource ids to be linked.
	StorageAccountIds pulumi.StringArrayInput
	// The resource ID of the Log Analytics Workspace. Changing this forces a new Log Analytics Linked Storage Account to be created.
	WorkspaceResourceId pulumi.StringInput
}

The set of arguments for constructing a LinkedStorageAccount resource.

func (LinkedStorageAccountArgs) ElementType

func (LinkedStorageAccountArgs) ElementType() reflect.Type

type LinkedStorageAccountArray

type LinkedStorageAccountArray []LinkedStorageAccountInput

func (LinkedStorageAccountArray) ElementType

func (LinkedStorageAccountArray) ElementType() reflect.Type

func (LinkedStorageAccountArray) ToLinkedStorageAccountArrayOutput

func (i LinkedStorageAccountArray) ToLinkedStorageAccountArrayOutput() LinkedStorageAccountArrayOutput

func (LinkedStorageAccountArray) ToLinkedStorageAccountArrayOutputWithContext

func (i LinkedStorageAccountArray) ToLinkedStorageAccountArrayOutputWithContext(ctx context.Context) LinkedStorageAccountArrayOutput

type LinkedStorageAccountArrayInput

type LinkedStorageAccountArrayInput interface {
	pulumi.Input

	ToLinkedStorageAccountArrayOutput() LinkedStorageAccountArrayOutput
	ToLinkedStorageAccountArrayOutputWithContext(context.Context) LinkedStorageAccountArrayOutput
}

LinkedStorageAccountArrayInput is an input type that accepts LinkedStorageAccountArray and LinkedStorageAccountArrayOutput values. You can construct a concrete instance of `LinkedStorageAccountArrayInput` via:

LinkedStorageAccountArray{ LinkedStorageAccountArgs{...} }

type LinkedStorageAccountArrayOutput

type LinkedStorageAccountArrayOutput struct{ *pulumi.OutputState }

func (LinkedStorageAccountArrayOutput) ElementType

func (LinkedStorageAccountArrayOutput) Index

func (LinkedStorageAccountArrayOutput) ToLinkedStorageAccountArrayOutput

func (o LinkedStorageAccountArrayOutput) ToLinkedStorageAccountArrayOutput() LinkedStorageAccountArrayOutput

func (LinkedStorageAccountArrayOutput) ToLinkedStorageAccountArrayOutputWithContext

func (o LinkedStorageAccountArrayOutput) ToLinkedStorageAccountArrayOutputWithContext(ctx context.Context) LinkedStorageAccountArrayOutput

type LinkedStorageAccountInput

type LinkedStorageAccountInput interface {
	pulumi.Input

	ToLinkedStorageAccountOutput() LinkedStorageAccountOutput
	ToLinkedStorageAccountOutputWithContext(ctx context.Context) LinkedStorageAccountOutput
}

type LinkedStorageAccountMap

type LinkedStorageAccountMap map[string]LinkedStorageAccountInput

func (LinkedStorageAccountMap) ElementType

func (LinkedStorageAccountMap) ElementType() reflect.Type

func (LinkedStorageAccountMap) ToLinkedStorageAccountMapOutput

func (i LinkedStorageAccountMap) ToLinkedStorageAccountMapOutput() LinkedStorageAccountMapOutput

func (LinkedStorageAccountMap) ToLinkedStorageAccountMapOutputWithContext

func (i LinkedStorageAccountMap) ToLinkedStorageAccountMapOutputWithContext(ctx context.Context) LinkedStorageAccountMapOutput

type LinkedStorageAccountMapInput

type LinkedStorageAccountMapInput interface {
	pulumi.Input

	ToLinkedStorageAccountMapOutput() LinkedStorageAccountMapOutput
	ToLinkedStorageAccountMapOutputWithContext(context.Context) LinkedStorageAccountMapOutput
}

LinkedStorageAccountMapInput is an input type that accepts LinkedStorageAccountMap and LinkedStorageAccountMapOutput values. You can construct a concrete instance of `LinkedStorageAccountMapInput` via:

LinkedStorageAccountMap{ "key": LinkedStorageAccountArgs{...} }

type LinkedStorageAccountMapOutput

type LinkedStorageAccountMapOutput struct{ *pulumi.OutputState }

func (LinkedStorageAccountMapOutput) ElementType

func (LinkedStorageAccountMapOutput) MapIndex

func (LinkedStorageAccountMapOutput) ToLinkedStorageAccountMapOutput

func (o LinkedStorageAccountMapOutput) ToLinkedStorageAccountMapOutput() LinkedStorageAccountMapOutput

func (LinkedStorageAccountMapOutput) ToLinkedStorageAccountMapOutputWithContext

func (o LinkedStorageAccountMapOutput) ToLinkedStorageAccountMapOutputWithContext(ctx context.Context) LinkedStorageAccountMapOutput

type LinkedStorageAccountOutput

type LinkedStorageAccountOutput struct{ *pulumi.OutputState }

func (LinkedStorageAccountOutput) DataSourceType added in v5.5.0

func (o LinkedStorageAccountOutput) DataSourceType() pulumi.StringOutput

The data source type which should be used for this Log Analytics Linked Storage Account. Possible values are `CustomLogs`, `AzureWatson`, `Query`, `Ingestion` and `Alerts`. Changing this forces a new Log Analytics Linked Storage Account to be created.

> **Note:** The `dataSourceType` is case-insensitive in current 3.x version. And in 4.0 or later versions, Case-sensitivity will be required.

func (LinkedStorageAccountOutput) ElementType

func (LinkedStorageAccountOutput) ElementType() reflect.Type

func (LinkedStorageAccountOutput) ResourceGroupName added in v5.5.0

func (o LinkedStorageAccountOutput) ResourceGroupName() pulumi.StringOutput

The name of the Resource Group where the Log Analytics Linked Storage Account should exist. Changing this forces a new Log Analytics Linked Storage Account to be created.

func (LinkedStorageAccountOutput) StorageAccountIds added in v5.5.0

func (o LinkedStorageAccountOutput) StorageAccountIds() pulumi.StringArrayOutput

The storage account resource ids to be linked.

func (LinkedStorageAccountOutput) ToLinkedStorageAccountOutput

func (o LinkedStorageAccountOutput) ToLinkedStorageAccountOutput() LinkedStorageAccountOutput

func (LinkedStorageAccountOutput) ToLinkedStorageAccountOutputWithContext

func (o LinkedStorageAccountOutput) ToLinkedStorageAccountOutputWithContext(ctx context.Context) LinkedStorageAccountOutput

func (LinkedStorageAccountOutput) WorkspaceResourceId added in v5.5.0

func (o LinkedStorageAccountOutput) WorkspaceResourceId() pulumi.StringOutput

The resource ID of the Log Analytics Workspace. Changing this forces a new Log Analytics Linked Storage Account to be created.

type LinkedStorageAccountState

type LinkedStorageAccountState struct {
	// The data source type which should be used for this Log Analytics Linked Storage Account. Possible values are `CustomLogs`, `AzureWatson`, `Query`, `Ingestion` and `Alerts`. Changing this forces a new Log Analytics Linked Storage Account to be created.
	//
	// > **Note:** The `dataSourceType` is case-insensitive in current 3.x version. And in 4.0 or later versions, Case-sensitivity will be required.
	DataSourceType pulumi.StringPtrInput
	// The name of the Resource Group where the Log Analytics Linked Storage Account should exist. Changing this forces a new Log Analytics Linked Storage Account to be created.
	ResourceGroupName pulumi.StringPtrInput
	// The storage account resource ids to be linked.
	StorageAccountIds pulumi.StringArrayInput
	// The resource ID of the Log Analytics Workspace. Changing this forces a new Log Analytics Linked Storage Account to be created.
	WorkspaceResourceId pulumi.StringPtrInput
}

func (LinkedStorageAccountState) ElementType

func (LinkedStorageAccountState) ElementType() reflect.Type

type QueryPack added in v5.15.0

type QueryPack struct {
	pulumi.CustomResourceState

	// The Azure Region where the Log Analytics Query Pack should exist. Changing this forces a new resource to be created.
	Location pulumi.StringOutput `pulumi:"location"`
	// The name which should be used for this Log Analytics Query Pack. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the Resource Group where the Log Analytics Query Pack should exist. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// A mapping of tags which should be assigned to the Log Analytics Query Pack.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
}

Manages a Log Analytics Query Pack.

## Example Usage

```go 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/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
		}
		_, err = loganalytics.NewQueryPack(ctx, "example", &loganalytics.QueryPackArgs{
			Name:              pulumi.String("example-laqp"),
			ResourceGroupName: example.Name,
			Location:          example.Location,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Log Analytics Query Packs can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:loganalytics/queryPack:QueryPack example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.OperationalInsights/queryPacks/queryPack1 ```

func GetQueryPack added in v5.15.0

func GetQueryPack(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *QueryPackState, opts ...pulumi.ResourceOption) (*QueryPack, error)

GetQueryPack gets an existing QueryPack resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewQueryPack added in v5.15.0

func NewQueryPack(ctx *pulumi.Context,
	name string, args *QueryPackArgs, opts ...pulumi.ResourceOption) (*QueryPack, error)

NewQueryPack registers a new resource with the given unique name, arguments, and options.

func (*QueryPack) ElementType added in v5.15.0

func (*QueryPack) ElementType() reflect.Type

func (*QueryPack) ToQueryPackOutput added in v5.15.0

func (i *QueryPack) ToQueryPackOutput() QueryPackOutput

func (*QueryPack) ToQueryPackOutputWithContext added in v5.15.0

func (i *QueryPack) ToQueryPackOutputWithContext(ctx context.Context) QueryPackOutput

type QueryPackArgs added in v5.15.0

type QueryPackArgs struct {
	// The Azure Region where the Log Analytics Query Pack should exist. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// The name which should be used for this Log Analytics Query Pack. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the Resource Group where the Log Analytics Query Pack should exist. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// A mapping of tags which should be assigned to the Log Analytics Query Pack.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a QueryPack resource.

func (QueryPackArgs) ElementType added in v5.15.0

func (QueryPackArgs) ElementType() reflect.Type

type QueryPackArray added in v5.15.0

type QueryPackArray []QueryPackInput

func (QueryPackArray) ElementType added in v5.15.0

func (QueryPackArray) ElementType() reflect.Type

func (QueryPackArray) ToQueryPackArrayOutput added in v5.15.0

func (i QueryPackArray) ToQueryPackArrayOutput() QueryPackArrayOutput

func (QueryPackArray) ToQueryPackArrayOutputWithContext added in v5.15.0

func (i QueryPackArray) ToQueryPackArrayOutputWithContext(ctx context.Context) QueryPackArrayOutput

type QueryPackArrayInput added in v5.15.0

type QueryPackArrayInput interface {
	pulumi.Input

	ToQueryPackArrayOutput() QueryPackArrayOutput
	ToQueryPackArrayOutputWithContext(context.Context) QueryPackArrayOutput
}

QueryPackArrayInput is an input type that accepts QueryPackArray and QueryPackArrayOutput values. You can construct a concrete instance of `QueryPackArrayInput` via:

QueryPackArray{ QueryPackArgs{...} }

type QueryPackArrayOutput added in v5.15.0

type QueryPackArrayOutput struct{ *pulumi.OutputState }

func (QueryPackArrayOutput) ElementType added in v5.15.0

func (QueryPackArrayOutput) ElementType() reflect.Type

func (QueryPackArrayOutput) Index added in v5.15.0

func (QueryPackArrayOutput) ToQueryPackArrayOutput added in v5.15.0

func (o QueryPackArrayOutput) ToQueryPackArrayOutput() QueryPackArrayOutput

func (QueryPackArrayOutput) ToQueryPackArrayOutputWithContext added in v5.15.0

func (o QueryPackArrayOutput) ToQueryPackArrayOutputWithContext(ctx context.Context) QueryPackArrayOutput

type QueryPackInput added in v5.15.0

type QueryPackInput interface {
	pulumi.Input

	ToQueryPackOutput() QueryPackOutput
	ToQueryPackOutputWithContext(ctx context.Context) QueryPackOutput
}

type QueryPackMap added in v5.15.0

type QueryPackMap map[string]QueryPackInput

func (QueryPackMap) ElementType added in v5.15.0

func (QueryPackMap) ElementType() reflect.Type

func (QueryPackMap) ToQueryPackMapOutput added in v5.15.0

func (i QueryPackMap) ToQueryPackMapOutput() QueryPackMapOutput

func (QueryPackMap) ToQueryPackMapOutputWithContext added in v5.15.0

func (i QueryPackMap) ToQueryPackMapOutputWithContext(ctx context.Context) QueryPackMapOutput

type QueryPackMapInput added in v5.15.0

type QueryPackMapInput interface {
	pulumi.Input

	ToQueryPackMapOutput() QueryPackMapOutput
	ToQueryPackMapOutputWithContext(context.Context) QueryPackMapOutput
}

QueryPackMapInput is an input type that accepts QueryPackMap and QueryPackMapOutput values. You can construct a concrete instance of `QueryPackMapInput` via:

QueryPackMap{ "key": QueryPackArgs{...} }

type QueryPackMapOutput added in v5.15.0

type QueryPackMapOutput struct{ *pulumi.OutputState }

func (QueryPackMapOutput) ElementType added in v5.15.0

func (QueryPackMapOutput) ElementType() reflect.Type

func (QueryPackMapOutput) MapIndex added in v5.15.0

func (QueryPackMapOutput) ToQueryPackMapOutput added in v5.15.0

func (o QueryPackMapOutput) ToQueryPackMapOutput() QueryPackMapOutput

func (QueryPackMapOutput) ToQueryPackMapOutputWithContext added in v5.15.0

func (o QueryPackMapOutput) ToQueryPackMapOutputWithContext(ctx context.Context) QueryPackMapOutput

type QueryPackOutput added in v5.15.0

type QueryPackOutput struct{ *pulumi.OutputState }

func (QueryPackOutput) ElementType added in v5.15.0

func (QueryPackOutput) ElementType() reflect.Type

func (QueryPackOutput) Location added in v5.15.0

func (o QueryPackOutput) Location() pulumi.StringOutput

The Azure Region where the Log Analytics Query Pack should exist. Changing this forces a new resource to be created.

func (QueryPackOutput) Name added in v5.15.0

The name which should be used for this Log Analytics Query Pack. Changing this forces a new resource to be created.

func (QueryPackOutput) ResourceGroupName added in v5.15.0

func (o QueryPackOutput) ResourceGroupName() pulumi.StringOutput

The name of the Resource Group where the Log Analytics Query Pack should exist. Changing this forces a new resource to be created.

func (QueryPackOutput) Tags added in v5.15.0

A mapping of tags which should be assigned to the Log Analytics Query Pack.

func (QueryPackOutput) ToQueryPackOutput added in v5.15.0

func (o QueryPackOutput) ToQueryPackOutput() QueryPackOutput

func (QueryPackOutput) ToQueryPackOutputWithContext added in v5.15.0

func (o QueryPackOutput) ToQueryPackOutputWithContext(ctx context.Context) QueryPackOutput

type QueryPackState added in v5.15.0

type QueryPackState struct {
	// The Azure Region where the Log Analytics Query Pack should exist. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// The name which should be used for this Log Analytics Query Pack. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the Resource Group where the Log Analytics Query Pack should exist. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// A mapping of tags which should be assigned to the Log Analytics Query Pack.
	Tags pulumi.StringMapInput
}

func (QueryPackState) ElementType added in v5.15.0

func (QueryPackState) ElementType() reflect.Type

type SavedSearch

type SavedSearch struct {
	pulumi.CustomResourceState

	// The category that the Saved Search will be listed under. Changing this forces a new resource to be created.
	Category pulumi.StringOutput `pulumi:"category"`
	// The name that Saved Search will be displayed as. Changing this forces a new resource to be created.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// The function alias if the query serves as a function. Changing this forces a new resource to be created.
	FunctionAlias pulumi.StringPtrOutput `pulumi:"functionAlias"`
	// The function parameters if the query serves as a function. Changing this forces a new resource to be created.
	FunctionParameters pulumi.StringArrayOutput `pulumi:"functionParameters"`
	// Specifies the ID of the Log Analytics Workspace that the Saved Search will be associated with. Changing this forces a new resource to be created.
	LogAnalyticsWorkspaceId pulumi.StringOutput `pulumi:"logAnalyticsWorkspaceId"`
	// Specifies the name of the Log Analytics Saved Search. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The query expression for the saved search. Changing this forces a new resource to be created.
	Query pulumi.StringOutput `pulumi:"query"`
	// A mapping of tags which should be assigned to the Logs Analytics Saved Search. Changing this forces a new resource to be created.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
}

Manages a Log Analytics (formally Operational Insights) Saved Search.

## Example Usage

```go 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("acctest-01"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			Sku:               pulumi.String("PerGB2018"),
			RetentionInDays:   pulumi.Int(30),
		})
		if err != nil {
			return err
		}
		_, err = loganalytics.NewSavedSearch(ctx, "example", &loganalytics.SavedSearchArgs{
			Name:                    pulumi.String("exampleSavedSearch"),
			LogAnalyticsWorkspaceId: exampleAnalyticsWorkspace.ID(),
			Category:                pulumi.String("exampleCategory"),
			DisplayName:             pulumi.String("exampleDisplayName"),
			Query:                   pulumi.String("exampleQuery"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Log Analytics Saved Searches can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:loganalytics/savedSearch:SavedSearch search1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.OperationalInsights/workspaces/workspace1/savedSearches/search1 ```

func GetSavedSearch

func GetSavedSearch(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SavedSearchState, opts ...pulumi.ResourceOption) (*SavedSearch, error)

GetSavedSearch gets an existing SavedSearch resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSavedSearch

func NewSavedSearch(ctx *pulumi.Context,
	name string, args *SavedSearchArgs, opts ...pulumi.ResourceOption) (*SavedSearch, error)

NewSavedSearch registers a new resource with the given unique name, arguments, and options.

func (*SavedSearch) ElementType

func (*SavedSearch) ElementType() reflect.Type

func (*SavedSearch) ToSavedSearchOutput

func (i *SavedSearch) ToSavedSearchOutput() SavedSearchOutput

func (*SavedSearch) ToSavedSearchOutputWithContext

func (i *SavedSearch) ToSavedSearchOutputWithContext(ctx context.Context) SavedSearchOutput

type SavedSearchArgs

type SavedSearchArgs struct {
	// The category that the Saved Search will be listed under. Changing this forces a new resource to be created.
	Category pulumi.StringInput
	// The name that Saved Search will be displayed as. Changing this forces a new resource to be created.
	DisplayName pulumi.StringInput
	// The function alias if the query serves as a function. Changing this forces a new resource to be created.
	FunctionAlias pulumi.StringPtrInput
	// The function parameters if the query serves as a function. Changing this forces a new resource to be created.
	FunctionParameters pulumi.StringArrayInput
	// Specifies the ID of the Log Analytics Workspace that the Saved Search will be associated with. Changing this forces a new resource to be created.
	LogAnalyticsWorkspaceId pulumi.StringInput
	// Specifies the name of the Log Analytics Saved Search. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The query expression for the saved search. Changing this forces a new resource to be created.
	Query pulumi.StringInput
	// A mapping of tags which should be assigned to the Logs Analytics Saved Search. Changing this forces a new resource to be created.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a SavedSearch resource.

func (SavedSearchArgs) ElementType

func (SavedSearchArgs) ElementType() reflect.Type

type SavedSearchArray

type SavedSearchArray []SavedSearchInput

func (SavedSearchArray) ElementType

func (SavedSearchArray) ElementType() reflect.Type

func (SavedSearchArray) ToSavedSearchArrayOutput

func (i SavedSearchArray) ToSavedSearchArrayOutput() SavedSearchArrayOutput

func (SavedSearchArray) ToSavedSearchArrayOutputWithContext

func (i SavedSearchArray) ToSavedSearchArrayOutputWithContext(ctx context.Context) SavedSearchArrayOutput

type SavedSearchArrayInput

type SavedSearchArrayInput interface {
	pulumi.Input

	ToSavedSearchArrayOutput() SavedSearchArrayOutput
	ToSavedSearchArrayOutputWithContext(context.Context) SavedSearchArrayOutput
}

SavedSearchArrayInput is an input type that accepts SavedSearchArray and SavedSearchArrayOutput values. You can construct a concrete instance of `SavedSearchArrayInput` via:

SavedSearchArray{ SavedSearchArgs{...} }

type SavedSearchArrayOutput

type SavedSearchArrayOutput struct{ *pulumi.OutputState }

func (SavedSearchArrayOutput) ElementType

func (SavedSearchArrayOutput) ElementType() reflect.Type

func (SavedSearchArrayOutput) Index

func (SavedSearchArrayOutput) ToSavedSearchArrayOutput

func (o SavedSearchArrayOutput) ToSavedSearchArrayOutput() SavedSearchArrayOutput

func (SavedSearchArrayOutput) ToSavedSearchArrayOutputWithContext

func (o SavedSearchArrayOutput) ToSavedSearchArrayOutputWithContext(ctx context.Context) SavedSearchArrayOutput

type SavedSearchInput

type SavedSearchInput interface {
	pulumi.Input

	ToSavedSearchOutput() SavedSearchOutput
	ToSavedSearchOutputWithContext(ctx context.Context) SavedSearchOutput
}

type SavedSearchMap

type SavedSearchMap map[string]SavedSearchInput

func (SavedSearchMap) ElementType

func (SavedSearchMap) ElementType() reflect.Type

func (SavedSearchMap) ToSavedSearchMapOutput

func (i SavedSearchMap) ToSavedSearchMapOutput() SavedSearchMapOutput

func (SavedSearchMap) ToSavedSearchMapOutputWithContext

func (i SavedSearchMap) ToSavedSearchMapOutputWithContext(ctx context.Context) SavedSearchMapOutput

type SavedSearchMapInput

type SavedSearchMapInput interface {
	pulumi.Input

	ToSavedSearchMapOutput() SavedSearchMapOutput
	ToSavedSearchMapOutputWithContext(context.Context) SavedSearchMapOutput
}

SavedSearchMapInput is an input type that accepts SavedSearchMap and SavedSearchMapOutput values. You can construct a concrete instance of `SavedSearchMapInput` via:

SavedSearchMap{ "key": SavedSearchArgs{...} }

type SavedSearchMapOutput

type SavedSearchMapOutput struct{ *pulumi.OutputState }

func (SavedSearchMapOutput) ElementType

func (SavedSearchMapOutput) ElementType() reflect.Type

func (SavedSearchMapOutput) MapIndex

func (SavedSearchMapOutput) ToSavedSearchMapOutput

func (o SavedSearchMapOutput) ToSavedSearchMapOutput() SavedSearchMapOutput

func (SavedSearchMapOutput) ToSavedSearchMapOutputWithContext

func (o SavedSearchMapOutput) ToSavedSearchMapOutputWithContext(ctx context.Context) SavedSearchMapOutput

type SavedSearchOutput

type SavedSearchOutput struct{ *pulumi.OutputState }

func (SavedSearchOutput) Category added in v5.5.0

func (o SavedSearchOutput) Category() pulumi.StringOutput

The category that the Saved Search will be listed under. Changing this forces a new resource to be created.

func (SavedSearchOutput) DisplayName added in v5.5.0

func (o SavedSearchOutput) DisplayName() pulumi.StringOutput

The name that Saved Search will be displayed as. Changing this forces a new resource to be created.

func (SavedSearchOutput) ElementType

func (SavedSearchOutput) ElementType() reflect.Type

func (SavedSearchOutput) FunctionAlias added in v5.5.0

func (o SavedSearchOutput) FunctionAlias() pulumi.StringPtrOutput

The function alias if the query serves as a function. Changing this forces a new resource to be created.

func (SavedSearchOutput) FunctionParameters added in v5.5.0

func (o SavedSearchOutput) FunctionParameters() pulumi.StringArrayOutput

The function parameters if the query serves as a function. Changing this forces a new resource to be created.

func (SavedSearchOutput) LogAnalyticsWorkspaceId added in v5.5.0

func (o SavedSearchOutput) LogAnalyticsWorkspaceId() pulumi.StringOutput

Specifies the ID of the Log Analytics Workspace that the Saved Search will be associated with. Changing this forces a new resource to be created.

func (SavedSearchOutput) Name added in v5.5.0

Specifies the name of the Log Analytics Saved Search. Changing this forces a new resource to be created.

func (SavedSearchOutput) Query added in v5.5.0

The query expression for the saved search. Changing this forces a new resource to be created.

func (SavedSearchOutput) Tags added in v5.5.0

A mapping of tags which should be assigned to the Logs Analytics Saved Search. Changing this forces a new resource to be created.

func (SavedSearchOutput) ToSavedSearchOutput

func (o SavedSearchOutput) ToSavedSearchOutput() SavedSearchOutput

func (SavedSearchOutput) ToSavedSearchOutputWithContext

func (o SavedSearchOutput) ToSavedSearchOutputWithContext(ctx context.Context) SavedSearchOutput

type SavedSearchState

type SavedSearchState struct {
	// The category that the Saved Search will be listed under. Changing this forces a new resource to be created.
	Category pulumi.StringPtrInput
	// The name that Saved Search will be displayed as. Changing this forces a new resource to be created.
	DisplayName pulumi.StringPtrInput
	// The function alias if the query serves as a function. Changing this forces a new resource to be created.
	FunctionAlias pulumi.StringPtrInput
	// The function parameters if the query serves as a function. Changing this forces a new resource to be created.
	FunctionParameters pulumi.StringArrayInput
	// Specifies the ID of the Log Analytics Workspace that the Saved Search will be associated with. Changing this forces a new resource to be created.
	LogAnalyticsWorkspaceId pulumi.StringPtrInput
	// Specifies the name of the Log Analytics Saved Search. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The query expression for the saved search. Changing this forces a new resource to be created.
	Query pulumi.StringPtrInput
	// A mapping of tags which should be assigned to the Logs Analytics Saved Search. Changing this forces a new resource to be created.
	Tags pulumi.StringMapInput
}

func (SavedSearchState) ElementType

func (SavedSearchState) ElementType() reflect.Type

type StorageInsights

type StorageInsights struct {
	pulumi.CustomResourceState

	// The names of the blob containers that the workspace should read.
	BlobContainerNames pulumi.StringArrayOutput `pulumi:"blobContainerNames"`
	// The name which should be used for this Log Analytics Storage Insights. Changing this forces a new Log Analytics Storage Insights to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the Resource Group where the Log Analytics Storage Insights should exist. Changing this forces a new Log Analytics Storage Insights to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// The ID of the Storage Account used by this Log Analytics Storage Insights.
	StorageAccountId pulumi.StringOutput `pulumi:"storageAccountId"`
	// The storage access key to be used to connect to the storage account.
	StorageAccountKey pulumi.StringOutput `pulumi:"storageAccountKey"`
	// The names of the Azure tables that the workspace should read.
	TableNames pulumi.StringArrayOutput `pulumi:"tableNames"`
	// The ID of the Log Analytics Workspace within which the Storage Insights should exist. Changing this forces a new Log Analytics Storage Insights to be created.
	WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"`
}

Manages a Log Analytics Storage Insights resource.

## Example Usage

```go 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-azure/sdk/v5/go/azure/storage"
"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("exampleworkspace"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			Sku:               pulumi.String("PerGB2018"),
			RetentionInDays:   pulumi.Int(30),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
			Name:                   pulumi.String("examplestoracc"),
			ResourceGroupName:      example.Name,
			Location:               example.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("LRS"),
		})
		if err != nil {
			return err
		}
		_, err = loganalytics.NewStorageInsights(ctx, "example", &loganalytics.StorageInsightsArgs{
			Name:              pulumi.String("example-storageinsightconfig"),
			ResourceGroupName: example.Name,
			WorkspaceId:       exampleAnalyticsWorkspace.ID(),
			StorageAccountId:  exampleAccount.ID(),
			StorageAccountKey: exampleAccount.PrimaryAccessKey,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Log Analytics Storage Insight Configs can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:loganalytics/storageInsights:StorageInsights example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.OperationalInsights/workspaces/workspace1/storageInsightConfigs/storageInsight1 ```

func GetStorageInsights

func GetStorageInsights(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StorageInsightsState, opts ...pulumi.ResourceOption) (*StorageInsights, error)

GetStorageInsights gets an existing StorageInsights resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewStorageInsights

func NewStorageInsights(ctx *pulumi.Context,
	name string, args *StorageInsightsArgs, opts ...pulumi.ResourceOption) (*StorageInsights, error)

NewStorageInsights registers a new resource with the given unique name, arguments, and options.

func (*StorageInsights) ElementType

func (*StorageInsights) ElementType() reflect.Type

func (*StorageInsights) ToStorageInsightsOutput

func (i *StorageInsights) ToStorageInsightsOutput() StorageInsightsOutput

func (*StorageInsights) ToStorageInsightsOutputWithContext

func (i *StorageInsights) ToStorageInsightsOutputWithContext(ctx context.Context) StorageInsightsOutput

type StorageInsightsArgs

type StorageInsightsArgs struct {
	// The names of the blob containers that the workspace should read.
	BlobContainerNames pulumi.StringArrayInput
	// The name which should be used for this Log Analytics Storage Insights. Changing this forces a new Log Analytics Storage Insights to be created.
	Name pulumi.StringPtrInput
	// The name of the Resource Group where the Log Analytics Storage Insights should exist. Changing this forces a new Log Analytics Storage Insights to be created.
	ResourceGroupName pulumi.StringInput
	// The ID of the Storage Account used by this Log Analytics Storage Insights.
	StorageAccountId pulumi.StringInput
	// The storage access key to be used to connect to the storage account.
	StorageAccountKey pulumi.StringInput
	// The names of the Azure tables that the workspace should read.
	TableNames pulumi.StringArrayInput
	// The ID of the Log Analytics Workspace within which the Storage Insights should exist. Changing this forces a new Log Analytics Storage Insights to be created.
	WorkspaceId pulumi.StringInput
}

The set of arguments for constructing a StorageInsights resource.

func (StorageInsightsArgs) ElementType

func (StorageInsightsArgs) ElementType() reflect.Type

type StorageInsightsArray

type StorageInsightsArray []StorageInsightsInput

func (StorageInsightsArray) ElementType

func (StorageInsightsArray) ElementType() reflect.Type

func (StorageInsightsArray) ToStorageInsightsArrayOutput

func (i StorageInsightsArray) ToStorageInsightsArrayOutput() StorageInsightsArrayOutput

func (StorageInsightsArray) ToStorageInsightsArrayOutputWithContext

func (i StorageInsightsArray) ToStorageInsightsArrayOutputWithContext(ctx context.Context) StorageInsightsArrayOutput

type StorageInsightsArrayInput

type StorageInsightsArrayInput interface {
	pulumi.Input

	ToStorageInsightsArrayOutput() StorageInsightsArrayOutput
	ToStorageInsightsArrayOutputWithContext(context.Context) StorageInsightsArrayOutput
}

StorageInsightsArrayInput is an input type that accepts StorageInsightsArray and StorageInsightsArrayOutput values. You can construct a concrete instance of `StorageInsightsArrayInput` via:

StorageInsightsArray{ StorageInsightsArgs{...} }

type StorageInsightsArrayOutput

type StorageInsightsArrayOutput struct{ *pulumi.OutputState }

func (StorageInsightsArrayOutput) ElementType

func (StorageInsightsArrayOutput) ElementType() reflect.Type

func (StorageInsightsArrayOutput) Index

func (StorageInsightsArrayOutput) ToStorageInsightsArrayOutput

func (o StorageInsightsArrayOutput) ToStorageInsightsArrayOutput() StorageInsightsArrayOutput

func (StorageInsightsArrayOutput) ToStorageInsightsArrayOutputWithContext

func (o StorageInsightsArrayOutput) ToStorageInsightsArrayOutputWithContext(ctx context.Context) StorageInsightsArrayOutput

type StorageInsightsInput

type StorageInsightsInput interface {
	pulumi.Input

	ToStorageInsightsOutput() StorageInsightsOutput
	ToStorageInsightsOutputWithContext(ctx context.Context) StorageInsightsOutput
}

type StorageInsightsMap

type StorageInsightsMap map[string]StorageInsightsInput

func (StorageInsightsMap) ElementType

func (StorageInsightsMap) ElementType() reflect.Type

func (StorageInsightsMap) ToStorageInsightsMapOutput

func (i StorageInsightsMap) ToStorageInsightsMapOutput() StorageInsightsMapOutput

func (StorageInsightsMap) ToStorageInsightsMapOutputWithContext

func (i StorageInsightsMap) ToStorageInsightsMapOutputWithContext(ctx context.Context) StorageInsightsMapOutput

type StorageInsightsMapInput

type StorageInsightsMapInput interface {
	pulumi.Input

	ToStorageInsightsMapOutput() StorageInsightsMapOutput
	ToStorageInsightsMapOutputWithContext(context.Context) StorageInsightsMapOutput
}

StorageInsightsMapInput is an input type that accepts StorageInsightsMap and StorageInsightsMapOutput values. You can construct a concrete instance of `StorageInsightsMapInput` via:

StorageInsightsMap{ "key": StorageInsightsArgs{...} }

type StorageInsightsMapOutput

type StorageInsightsMapOutput struct{ *pulumi.OutputState }

func (StorageInsightsMapOutput) ElementType

func (StorageInsightsMapOutput) ElementType() reflect.Type

func (StorageInsightsMapOutput) MapIndex

func (StorageInsightsMapOutput) ToStorageInsightsMapOutput

func (o StorageInsightsMapOutput) ToStorageInsightsMapOutput() StorageInsightsMapOutput

func (StorageInsightsMapOutput) ToStorageInsightsMapOutputWithContext

func (o StorageInsightsMapOutput) ToStorageInsightsMapOutputWithContext(ctx context.Context) StorageInsightsMapOutput

type StorageInsightsOutput

type StorageInsightsOutput struct{ *pulumi.OutputState }

func (StorageInsightsOutput) BlobContainerNames added in v5.5.0

func (o StorageInsightsOutput) BlobContainerNames() pulumi.StringArrayOutput

The names of the blob containers that the workspace should read.

func (StorageInsightsOutput) ElementType

func (StorageInsightsOutput) ElementType() reflect.Type

func (StorageInsightsOutput) Name added in v5.5.0

The name which should be used for this Log Analytics Storage Insights. Changing this forces a new Log Analytics Storage Insights to be created.

func (StorageInsightsOutput) ResourceGroupName added in v5.5.0

func (o StorageInsightsOutput) ResourceGroupName() pulumi.StringOutput

The name of the Resource Group where the Log Analytics Storage Insights should exist. Changing this forces a new Log Analytics Storage Insights to be created.

func (StorageInsightsOutput) StorageAccountId added in v5.5.0

func (o StorageInsightsOutput) StorageAccountId() pulumi.StringOutput

The ID of the Storage Account used by this Log Analytics Storage Insights.

func (StorageInsightsOutput) StorageAccountKey added in v5.5.0

func (o StorageInsightsOutput) StorageAccountKey() pulumi.StringOutput

The storage access key to be used to connect to the storage account.

func (StorageInsightsOutput) TableNames added in v5.5.0

The names of the Azure tables that the workspace should read.

func (StorageInsightsOutput) ToStorageInsightsOutput

func (o StorageInsightsOutput) ToStorageInsightsOutput() StorageInsightsOutput

func (StorageInsightsOutput) ToStorageInsightsOutputWithContext

func (o StorageInsightsOutput) ToStorageInsightsOutputWithContext(ctx context.Context) StorageInsightsOutput

func (StorageInsightsOutput) WorkspaceId added in v5.5.0

func (o StorageInsightsOutput) WorkspaceId() pulumi.StringOutput

The ID of the Log Analytics Workspace within which the Storage Insights should exist. Changing this forces a new Log Analytics Storage Insights to be created.

type StorageInsightsState

type StorageInsightsState struct {
	// The names of the blob containers that the workspace should read.
	BlobContainerNames pulumi.StringArrayInput
	// The name which should be used for this Log Analytics Storage Insights. Changing this forces a new Log Analytics Storage Insights to be created.
	Name pulumi.StringPtrInput
	// The name of the Resource Group where the Log Analytics Storage Insights should exist. Changing this forces a new Log Analytics Storage Insights to be created.
	ResourceGroupName pulumi.StringPtrInput
	// The ID of the Storage Account used by this Log Analytics Storage Insights.
	StorageAccountId pulumi.StringPtrInput
	// The storage access key to be used to connect to the storage account.
	StorageAccountKey pulumi.StringPtrInput
	// The names of the Azure tables that the workspace should read.
	TableNames pulumi.StringArrayInput
	// The ID of the Log Analytics Workspace within which the Storage Insights should exist. Changing this forces a new Log Analytics Storage Insights to be created.
	WorkspaceId pulumi.StringPtrInput
}

func (StorageInsightsState) ElementType

func (StorageInsightsState) ElementType() reflect.Type

type WorkspaceTable added in v5.61.0

type WorkspaceTable struct {
	pulumi.CustomResourceState

	// Specifies the name of a table in a Log Analytics Workspace.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specify the system how to handle and charge the logs ingested to the table. Possible values are `Analytics` and `Basic`. Defaults to `Analytics`.
	//
	// > **Note:** The `name` of tables currently supported by the `Basic` plan can be found [here](https://learn.microsoft.com/en-us/azure/azure-monitor/logs/basic-logs-configure?tabs=portal-1#supported-tables).
	Plan pulumi.StringPtrOutput `pulumi:"plan"`
	// The table's retention in days. Possible values are either 7 (Free Tier only) or range between 30 and 730.
	RetentionInDays pulumi.IntPtrOutput `pulumi:"retentionInDays"`
	// The table's total retention in days. Possible values range between 30 and 4383.
	//
	// > **Note:** `retentionInDays` and `totalRetentionInDays` will revert back to the value of operationalinsights.AnalyticsWorkspace retention_in_days when a loganalytics.WorkspaceTable is deleted.
	//
	// > **Note:** The `retentionInDays` cannot be specified when `plan` is `Basic` because the retention is fixed at eight days.
	TotalRetentionInDays pulumi.IntPtrOutput `pulumi:"totalRetentionInDays"`
	// The object ID of the Log Analytics Workspace that contains the table.
	WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"`
}

Manages a Table in a Log Analytics (formally Operational Insights) Workspace.

> **Note:** This resource does not create or destroy tables. This resource is used to update attributes (currently only retention_in_days) of the tables created when a Log Analytics Workspace is created. Deleting an loganalytics.WorkspaceTable resource will not delete the table. Instead, the table's retentionInDays field will be set to the value of operationalinsights.AnalyticsWorkspace retention_in_days

## Example Usage

```go 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"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			Sku:               pulumi.String("PerGB2018"),
			RetentionInDays:   pulumi.Int(30),
		})
		if err != nil {
			return err
		}
		_, err = loganalytics.NewWorkspaceTable(ctx, "example", &loganalytics.WorkspaceTableArgs{
			WorkspaceId:          exampleAnalyticsWorkspace.ID(),
			Name:                 pulumi.String("AppMetrics"),
			RetentionInDays:      pulumi.Int(60),
			TotalRetentionInDays: pulumi.Int(180),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetWorkspaceTable added in v5.61.0

func GetWorkspaceTable(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *WorkspaceTableState, opts ...pulumi.ResourceOption) (*WorkspaceTable, error)

GetWorkspaceTable gets an existing WorkspaceTable resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewWorkspaceTable added in v5.61.0

func NewWorkspaceTable(ctx *pulumi.Context,
	name string, args *WorkspaceTableArgs, opts ...pulumi.ResourceOption) (*WorkspaceTable, error)

NewWorkspaceTable registers a new resource with the given unique name, arguments, and options.

func (*WorkspaceTable) ElementType added in v5.61.0

func (*WorkspaceTable) ElementType() reflect.Type

func (*WorkspaceTable) ToWorkspaceTableOutput added in v5.61.0

func (i *WorkspaceTable) ToWorkspaceTableOutput() WorkspaceTableOutput

func (*WorkspaceTable) ToWorkspaceTableOutputWithContext added in v5.61.0

func (i *WorkspaceTable) ToWorkspaceTableOutputWithContext(ctx context.Context) WorkspaceTableOutput

type WorkspaceTableArgs added in v5.61.0

type WorkspaceTableArgs struct {
	// Specifies the name of a table in a Log Analytics Workspace.
	Name pulumi.StringPtrInput
	// Specify the system how to handle and charge the logs ingested to the table. Possible values are `Analytics` and `Basic`. Defaults to `Analytics`.
	//
	// > **Note:** The `name` of tables currently supported by the `Basic` plan can be found [here](https://learn.microsoft.com/en-us/azure/azure-monitor/logs/basic-logs-configure?tabs=portal-1#supported-tables).
	Plan pulumi.StringPtrInput
	// The table's retention in days. Possible values are either 7 (Free Tier only) or range between 30 and 730.
	RetentionInDays pulumi.IntPtrInput
	// The table's total retention in days. Possible values range between 30 and 4383.
	//
	// > **Note:** `retentionInDays` and `totalRetentionInDays` will revert back to the value of operationalinsights.AnalyticsWorkspace retention_in_days when a loganalytics.WorkspaceTable is deleted.
	//
	// > **Note:** The `retentionInDays` cannot be specified when `plan` is `Basic` because the retention is fixed at eight days.
	TotalRetentionInDays pulumi.IntPtrInput
	// The object ID of the Log Analytics Workspace that contains the table.
	WorkspaceId pulumi.StringInput
}

The set of arguments for constructing a WorkspaceTable resource.

func (WorkspaceTableArgs) ElementType added in v5.61.0

func (WorkspaceTableArgs) ElementType() reflect.Type

type WorkspaceTableArray added in v5.61.0

type WorkspaceTableArray []WorkspaceTableInput

func (WorkspaceTableArray) ElementType added in v5.61.0

func (WorkspaceTableArray) ElementType() reflect.Type

func (WorkspaceTableArray) ToWorkspaceTableArrayOutput added in v5.61.0

func (i WorkspaceTableArray) ToWorkspaceTableArrayOutput() WorkspaceTableArrayOutput

func (WorkspaceTableArray) ToWorkspaceTableArrayOutputWithContext added in v5.61.0

func (i WorkspaceTableArray) ToWorkspaceTableArrayOutputWithContext(ctx context.Context) WorkspaceTableArrayOutput

type WorkspaceTableArrayInput added in v5.61.0

type WorkspaceTableArrayInput interface {
	pulumi.Input

	ToWorkspaceTableArrayOutput() WorkspaceTableArrayOutput
	ToWorkspaceTableArrayOutputWithContext(context.Context) WorkspaceTableArrayOutput
}

WorkspaceTableArrayInput is an input type that accepts WorkspaceTableArray and WorkspaceTableArrayOutput values. You can construct a concrete instance of `WorkspaceTableArrayInput` via:

WorkspaceTableArray{ WorkspaceTableArgs{...} }

type WorkspaceTableArrayOutput added in v5.61.0

type WorkspaceTableArrayOutput struct{ *pulumi.OutputState }

func (WorkspaceTableArrayOutput) ElementType added in v5.61.0

func (WorkspaceTableArrayOutput) ElementType() reflect.Type

func (WorkspaceTableArrayOutput) Index added in v5.61.0

func (WorkspaceTableArrayOutput) ToWorkspaceTableArrayOutput added in v5.61.0

func (o WorkspaceTableArrayOutput) ToWorkspaceTableArrayOutput() WorkspaceTableArrayOutput

func (WorkspaceTableArrayOutput) ToWorkspaceTableArrayOutputWithContext added in v5.61.0

func (o WorkspaceTableArrayOutput) ToWorkspaceTableArrayOutputWithContext(ctx context.Context) WorkspaceTableArrayOutput

type WorkspaceTableInput added in v5.61.0

type WorkspaceTableInput interface {
	pulumi.Input

	ToWorkspaceTableOutput() WorkspaceTableOutput
	ToWorkspaceTableOutputWithContext(ctx context.Context) WorkspaceTableOutput
}

type WorkspaceTableMap added in v5.61.0

type WorkspaceTableMap map[string]WorkspaceTableInput

func (WorkspaceTableMap) ElementType added in v5.61.0

func (WorkspaceTableMap) ElementType() reflect.Type

func (WorkspaceTableMap) ToWorkspaceTableMapOutput added in v5.61.0

func (i WorkspaceTableMap) ToWorkspaceTableMapOutput() WorkspaceTableMapOutput

func (WorkspaceTableMap) ToWorkspaceTableMapOutputWithContext added in v5.61.0

func (i WorkspaceTableMap) ToWorkspaceTableMapOutputWithContext(ctx context.Context) WorkspaceTableMapOutput

type WorkspaceTableMapInput added in v5.61.0

type WorkspaceTableMapInput interface {
	pulumi.Input

	ToWorkspaceTableMapOutput() WorkspaceTableMapOutput
	ToWorkspaceTableMapOutputWithContext(context.Context) WorkspaceTableMapOutput
}

WorkspaceTableMapInput is an input type that accepts WorkspaceTableMap and WorkspaceTableMapOutput values. You can construct a concrete instance of `WorkspaceTableMapInput` via:

WorkspaceTableMap{ "key": WorkspaceTableArgs{...} }

type WorkspaceTableMapOutput added in v5.61.0

type WorkspaceTableMapOutput struct{ *pulumi.OutputState }

func (WorkspaceTableMapOutput) ElementType added in v5.61.0

func (WorkspaceTableMapOutput) ElementType() reflect.Type

func (WorkspaceTableMapOutput) MapIndex added in v5.61.0

func (WorkspaceTableMapOutput) ToWorkspaceTableMapOutput added in v5.61.0

func (o WorkspaceTableMapOutput) ToWorkspaceTableMapOutput() WorkspaceTableMapOutput

func (WorkspaceTableMapOutput) ToWorkspaceTableMapOutputWithContext added in v5.61.0

func (o WorkspaceTableMapOutput) ToWorkspaceTableMapOutputWithContext(ctx context.Context) WorkspaceTableMapOutput

type WorkspaceTableOutput added in v5.61.0

type WorkspaceTableOutput struct{ *pulumi.OutputState }

func (WorkspaceTableOutput) ElementType added in v5.61.0

func (WorkspaceTableOutput) ElementType() reflect.Type

func (WorkspaceTableOutput) Name added in v5.61.0

Specifies the name of a table in a Log Analytics Workspace.

func (WorkspaceTableOutput) Plan added in v5.61.0

Specify the system how to handle and charge the logs ingested to the table. Possible values are `Analytics` and `Basic`. Defaults to `Analytics`.

> **Note:** The `name` of tables currently supported by the `Basic` plan can be found [here](https://learn.microsoft.com/en-us/azure/azure-monitor/logs/basic-logs-configure?tabs=portal-1#supported-tables).

func (WorkspaceTableOutput) RetentionInDays added in v5.61.0

func (o WorkspaceTableOutput) RetentionInDays() pulumi.IntPtrOutput

The table's retention in days. Possible values are either 7 (Free Tier only) or range between 30 and 730.

func (WorkspaceTableOutput) ToWorkspaceTableOutput added in v5.61.0

func (o WorkspaceTableOutput) ToWorkspaceTableOutput() WorkspaceTableOutput

func (WorkspaceTableOutput) ToWorkspaceTableOutputWithContext added in v5.61.0

func (o WorkspaceTableOutput) ToWorkspaceTableOutputWithContext(ctx context.Context) WorkspaceTableOutput

func (WorkspaceTableOutput) TotalRetentionInDays added in v5.66.1

func (o WorkspaceTableOutput) TotalRetentionInDays() pulumi.IntPtrOutput

The table's total retention in days. Possible values range between 30 and 4383.

> **Note:** `retentionInDays` and `totalRetentionInDays` will revert back to the value of operationalinsights.AnalyticsWorkspace retention_in_days when a loganalytics.WorkspaceTable is deleted.

> **Note:** The `retentionInDays` cannot be specified when `plan` is `Basic` because the retention is fixed at eight days.

func (WorkspaceTableOutput) WorkspaceId added in v5.61.0

func (o WorkspaceTableOutput) WorkspaceId() pulumi.StringOutput

The object ID of the Log Analytics Workspace that contains the table.

type WorkspaceTableState added in v5.61.0

type WorkspaceTableState struct {
	// Specifies the name of a table in a Log Analytics Workspace.
	Name pulumi.StringPtrInput
	// Specify the system how to handle and charge the logs ingested to the table. Possible values are `Analytics` and `Basic`. Defaults to `Analytics`.
	//
	// > **Note:** The `name` of tables currently supported by the `Basic` plan can be found [here](https://learn.microsoft.com/en-us/azure/azure-monitor/logs/basic-logs-configure?tabs=portal-1#supported-tables).
	Plan pulumi.StringPtrInput
	// The table's retention in days. Possible values are either 7 (Free Tier only) or range between 30 and 730.
	RetentionInDays pulumi.IntPtrInput
	// The table's total retention in days. Possible values range between 30 and 4383.
	//
	// > **Note:** `retentionInDays` and `totalRetentionInDays` will revert back to the value of operationalinsights.AnalyticsWorkspace retention_in_days when a loganalytics.WorkspaceTable is deleted.
	//
	// > **Note:** The `retentionInDays` cannot be specified when `plan` is `Basic` because the retention is fixed at eight days.
	TotalRetentionInDays pulumi.IntPtrInput
	// The object ID of the Log Analytics Workspace that contains the table.
	WorkspaceId pulumi.StringPtrInput
}

func (WorkspaceTableState) ElementType added in v5.61.0

func (WorkspaceTableState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL