azure-native.operationalinsights.StorageInsightConfig

Explore with Pulumi AI

The top level storage insight resource container. API Version: 2020-08-01.

Example Usage

StorageInsightsCreate

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

return await Deployment.RunAsync(() => 
{
    var storageInsightConfig = new AzureNative.OperationalInsights.StorageInsightConfig("storageInsightConfig", new()
    {
        Containers = new[]
        {
            "wad-iis-logfiles",
        },
        ResourceGroupName = "OIAutoRest5123",
        StorageAccount = new AzureNative.OperationalInsights.Inputs.StorageAccountArgs
        {
            Id = "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/OIAutoRest6987/providers/microsoft.storage/storageaccounts/AzTestFakeSA9945",
            Key = "1234",
        },
        StorageInsightName = "AzTestSI1110",
        Tables = new[]
        {
            "WADWindowsEventLogsTable",
            "LinuxSyslogVer2v0",
        },
        WorkspaceName = "aztest5048",
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := operationalinsights.NewStorageInsightConfig(ctx, "storageInsightConfig", &operationalinsights.StorageInsightConfigArgs{
			Containers: pulumi.StringArray{
				pulumi.String("wad-iis-logfiles"),
			},
			ResourceGroupName: pulumi.String("OIAutoRest5123"),
			StorageAccount: &operationalinsights.StorageAccountArgs{
				Id:  pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/OIAutoRest6987/providers/microsoft.storage/storageaccounts/AzTestFakeSA9945"),
				Key: pulumi.String("1234"),
			},
			StorageInsightName: pulumi.String("AzTestSI1110"),
			Tables: pulumi.StringArray{
				pulumi.String("WADWindowsEventLogsTable"),
				pulumi.String("LinuxSyslogVer2v0"),
			},
			WorkspaceName: pulumi.String("aztest5048"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.operationalinsights.StorageInsightConfig;
import com.pulumi.azurenative.operationalinsights.StorageInsightConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var storageInsightConfig = new StorageInsightConfig("storageInsightConfig", StorageInsightConfigArgs.builder()        
            .containers("wad-iis-logfiles")
            .resourceGroupName("OIAutoRest5123")
            .storageAccount(Map.ofEntries(
                Map.entry("id", "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/OIAutoRest6987/providers/microsoft.storage/storageaccounts/AzTestFakeSA9945"),
                Map.entry("key", "1234")
            ))
            .storageInsightName("AzTestSI1110")
            .tables(            
                "WADWindowsEventLogsTable",
                "LinuxSyslogVer2v0")
            .workspaceName("aztest5048")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

storage_insight_config = azure_native.operationalinsights.StorageInsightConfig("storageInsightConfig",
    containers=["wad-iis-logfiles"],
    resource_group_name="OIAutoRest5123",
    storage_account=azure_native.operationalinsights.StorageAccountArgs(
        id="/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/OIAutoRest6987/providers/microsoft.storage/storageaccounts/AzTestFakeSA9945",
        key="1234",
    ),
    storage_insight_name="AzTestSI1110",
    tables=[
        "WADWindowsEventLogsTable",
        "LinuxSyslogVer2v0",
    ],
    workspace_name="aztest5048")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const storageInsightConfig = new azure_native.operationalinsights.StorageInsightConfig("storageInsightConfig", {
    containers: ["wad-iis-logfiles"],
    resourceGroupName: "OIAutoRest5123",
    storageAccount: {
        id: "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/OIAutoRest6987/providers/microsoft.storage/storageaccounts/AzTestFakeSA9945",
        key: "1234",
    },
    storageInsightName: "AzTestSI1110",
    tables: [
        "WADWindowsEventLogsTable",
        "LinuxSyslogVer2v0",
    ],
    workspaceName: "aztest5048",
});
resources:
  storageInsightConfig:
    type: azure-native:operationalinsights:StorageInsightConfig
    properties:
      containers:
        - wad-iis-logfiles
      resourceGroupName: OIAutoRest5123
      storageAccount:
        id: /subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/OIAutoRest6987/providers/microsoft.storage/storageaccounts/AzTestFakeSA9945
        key: '1234'
      storageInsightName: AzTestSI1110
      tables:
        - WADWindowsEventLogsTable
        - LinuxSyslogVer2v0
      workspaceName: aztest5048

Create StorageInsightConfig Resource

new StorageInsightConfig(name: string, args: StorageInsightConfigArgs, opts?: CustomResourceOptions);
@overload
def StorageInsightConfig(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         containers: Optional[Sequence[str]] = None,
                         e_tag: Optional[str] = None,
                         resource_group_name: Optional[str] = None,
                         storage_account: Optional[StorageAccountArgs] = None,
                         storage_insight_name: Optional[str] = None,
                         tables: Optional[Sequence[str]] = None,
                         tags: Optional[Mapping[str, str]] = None,
                         workspace_name: Optional[str] = None)
@overload
def StorageInsightConfig(resource_name: str,
                         args: StorageInsightConfigArgs,
                         opts: Optional[ResourceOptions] = None)
func NewStorageInsightConfig(ctx *Context, name string, args StorageInsightConfigArgs, opts ...ResourceOption) (*StorageInsightConfig, error)
public StorageInsightConfig(string name, StorageInsightConfigArgs args, CustomResourceOptions? opts = null)
public StorageInsightConfig(String name, StorageInsightConfigArgs args)
public StorageInsightConfig(String name, StorageInsightConfigArgs args, CustomResourceOptions options)
type: azure-native:operationalinsights:StorageInsightConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

StorageInsightConfig Resource Properties

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

Inputs

The StorageInsightConfig resource accepts the following input properties:

ResourceGroupName string

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

StorageAccount Pulumi.AzureNative.OperationalInsights.Inputs.StorageAccountArgs

The storage account connection details

WorkspaceName string

The name of the workspace.

Containers List<string>

The names of the blob containers that the workspace should read

ETag string

The ETag of the storage insight.

StorageInsightName string

Name of the storageInsightsConfigs resource

Tables List<string>

The names of the Azure tables that the workspace should read

Tags Dictionary<string, string>

Resource tags.

ResourceGroupName string

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

StorageAccount StorageAccountArgs

The storage account connection details

WorkspaceName string

The name of the workspace.

Containers []string

The names of the blob containers that the workspace should read

ETag string

The ETag of the storage insight.

StorageInsightName string

Name of the storageInsightsConfigs resource

Tables []string

The names of the Azure tables that the workspace should read

Tags map[string]string

Resource tags.

resourceGroupName String

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

storageAccount StorageAccountArgs

The storage account connection details

workspaceName String

The name of the workspace.

containers List<String>

The names of the blob containers that the workspace should read

eTag String

The ETag of the storage insight.

storageInsightName String

Name of the storageInsightsConfigs resource

tables List<String>

The names of the Azure tables that the workspace should read

tags Map<String,String>

Resource tags.

resourceGroupName string

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

storageAccount StorageAccountArgs

The storage account connection details

workspaceName string

The name of the workspace.

containers string[]

The names of the blob containers that the workspace should read

eTag string

The ETag of the storage insight.

storageInsightName string

Name of the storageInsightsConfigs resource

tables string[]

The names of the Azure tables that the workspace should read

tags {[key: string]: string}

Resource tags.

resource_group_name str

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

storage_account StorageAccountArgs

The storage account connection details

workspace_name str

The name of the workspace.

containers Sequence[str]

The names of the blob containers that the workspace should read

e_tag str

The ETag of the storage insight.

storage_insight_name str

Name of the storageInsightsConfigs resource

tables Sequence[str]

The names of the Azure tables that the workspace should read

tags Mapping[str, str]

Resource tags.

resourceGroupName String

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

storageAccount Property Map

The storage account connection details

workspaceName String

The name of the workspace.

containers List<String>

The names of the blob containers that the workspace should read

eTag String

The ETag of the storage insight.

storageInsightName String

Name of the storageInsightsConfigs resource

tables List<String>

The names of the Azure tables that the workspace should read

tags Map<String>

Resource tags.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

Status Pulumi.AzureNative.OperationalInsights.Outputs.StorageInsightStatusResponse

The status of the storage insight

Type string

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

Status StorageInsightStatusResponse

The status of the storage insight

Type string

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

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

status StorageInsightStatusResponse

The status of the storage insight

type String

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

id string

The provider-assigned unique ID for this managed resource.

name string

The name of the resource

status StorageInsightStatusResponse

The status of the storage insight

type string

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

id str

The provider-assigned unique ID for this managed resource.

name str

The name of the resource

status StorageInsightStatusResponse

The status of the storage insight

type str

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

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

status Property Map

The status of the storage insight

type String

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

Supporting Types

StorageAccount

Id string

The Azure Resource Manager ID of the storage account resource.

Key string

The storage account key.

Id string

The Azure Resource Manager ID of the storage account resource.

Key string

The storage account key.

id String

The Azure Resource Manager ID of the storage account resource.

key String

The storage account key.

id string

The Azure Resource Manager ID of the storage account resource.

key string

The storage account key.

id str

The Azure Resource Manager ID of the storage account resource.

key str

The storage account key.

id String

The Azure Resource Manager ID of the storage account resource.

key String

The storage account key.

StorageAccountResponse

Id string

The Azure Resource Manager ID of the storage account resource.

Key string

The storage account key.

Id string

The Azure Resource Manager ID of the storage account resource.

Key string

The storage account key.

id String

The Azure Resource Manager ID of the storage account resource.

key String

The storage account key.

id string

The Azure Resource Manager ID of the storage account resource.

key string

The storage account key.

id str

The Azure Resource Manager ID of the storage account resource.

key str

The storage account key.

id String

The Azure Resource Manager ID of the storage account resource.

key String

The storage account key.

StorageInsightStatusResponse

State string

The state of the storage insight connection to the workspace

Description string

Description of the state of the storage insight.

State string

The state of the storage insight connection to the workspace

Description string

Description of the state of the storage insight.

state String

The state of the storage insight connection to the workspace

description String

Description of the state of the storage insight.

state string

The state of the storage insight connection to the workspace

description string

Description of the state of the storage insight.

state str

The state of the storage insight connection to the workspace

description str

Description of the state of the storage insight.

state String

The state of the storage insight connection to the workspace

description String

Description of the state of the storage insight.

Import

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

$ pulumi import azure-native:operationalinsights:StorageInsightConfig AzTestSI1110 /subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/oiautorest6987/providers/microsoft.operationalinsights/workspaces/aztest5048/storageinsightconfigs/AzTestSI1110 

Package Details

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