1. Packages
  2. Azure Native v2
  3. API Docs
  4. operationalinsights
  5. StorageInsightConfig
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.operationalinsights.StorageInsightConfig

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

The top level storage insight resource container. Azure REST API version: 2020-08-01. Prior API version in Azure Native 1.x: 2020-08-01.

Other available API versions: 2023-09-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",
    });

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := operationalinsights.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
	})
}
Copy
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 com.pulumi.azurenative.operationalinsights.inputs.StorageAccountArgs;
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(StorageAccountArgs.builder()
                .id("/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/OIAutoRest6987/providers/microsoft.storage/storageaccounts/AzTestFakeSA9945")
                .key("1234")
                .build())
            .storageInsightName("AzTestSI1110")
            .tables(            
                "WADWindowsEventLogsTable",
                "LinuxSyslogVer2v0")
            .workspaceName("aztest5048")
            .build());

    }
}
Copy
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",
});
Copy
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={
        "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")
Copy
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
Copy

Create StorageInsightConfig Resource

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

Constructor syntax

new StorageInsightConfig(name: string, args: StorageInsightConfigArgs, opts?: CustomResourceOptions);
@overload
def StorageInsightConfig(resource_name: str,
                         args: StorageInsightConfigArgs,
                         opts: Optional[ResourceOptions] = None)

@overload
def StorageInsightConfig(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         resource_group_name: Optional[str] = None,
                         storage_account: Optional[StorageAccountArgs] = None,
                         workspace_name: Optional[str] = None,
                         containers: Optional[Sequence[str]] = None,
                         e_tag: Optional[str] = None,
                         storage_insight_name: Optional[str] = None,
                         tables: Optional[Sequence[str]] = None,
                         tags: Optional[Mapping[str, str]] = 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.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. StorageInsightConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. StorageInsightConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. StorageInsightConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. StorageInsightConfigArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

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

var storageInsightConfigResource = new AzureNative.Operationalinsights.StorageInsightConfig("storageInsightConfigResource", new()
{
    ResourceGroupName = "string",
    StorageAccount = 
    {
        { "id", "string" },
        { "key", "string" },
    },
    WorkspaceName = "string",
    Containers = new[]
    {
        "string",
    },
    ETag = "string",
    StorageInsightName = "string",
    Tables = new[]
    {
        "string",
    },
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := operationalinsights.NewStorageInsightConfig(ctx, "storageInsightConfigResource", &operationalinsights.StorageInsightConfigArgs{
	ResourceGroupName: "string",
	StorageAccount: map[string]interface{}{
		"id":  "string",
		"key": "string",
	},
	WorkspaceName: "string",
	Containers: []string{
		"string",
	},
	ETag:               "string",
	StorageInsightName: "string",
	Tables: []string{
		"string",
	},
	Tags: map[string]interface{}{
		"string": "string",
	},
})
Copy
var storageInsightConfigResource = new StorageInsightConfig("storageInsightConfigResource", StorageInsightConfigArgs.builder()
    .resourceGroupName("string")
    .storageAccount(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .workspaceName("string")
    .containers("string")
    .eTag("string")
    .storageInsightName("string")
    .tables("string")
    .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .build());
Copy
storage_insight_config_resource = azure_native.operationalinsights.StorageInsightConfig("storageInsightConfigResource",
    resource_group_name=string,
    storage_account={
        id: string,
        key: string,
    },
    workspace_name=string,
    containers=[string],
    e_tag=string,
    storage_insight_name=string,
    tables=[string],
    tags={
        string: string,
    })
Copy
const storageInsightConfigResource = new azure_native.operationalinsights.StorageInsightConfig("storageInsightConfigResource", {
    resourceGroupName: "string",
    storageAccount: {
        id: "string",
        key: "string",
    },
    workspaceName: "string",
    containers: ["string"],
    eTag: "string",
    storageInsightName: "string",
    tables: ["string"],
    tags: {
        string: "string",
    },
});
Copy
type: azure-native:operationalinsights:StorageInsightConfig
properties:
    containers:
        - string
    eTag: string
    resourceGroupName: string
    storageAccount:
        id: string
        key: string
    storageInsightName: string
    tables:
        - string
    tags:
        string: string
    workspaceName: string
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The StorageInsightConfig resource accepts the following input properties:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
StorageAccount This property is required. Pulumi.AzureNative.OperationalInsights.Inputs.StorageAccount
The storage account connection details
WorkspaceName
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
StorageAccount This property is required. StorageAccountArgs
The storage account connection details
WorkspaceName
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
storageAccount This property is required. StorageAccount
The storage account connection details
workspaceName
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
storageAccount This property is required. StorageAccount
The storage account connection details
workspaceName
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
storage_account This property is required. StorageAccountArgs
The storage account connection details
workspace_name
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
storageAccount This property is required. Property Map
The storage account connection details
workspaceName
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. 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
, StorageAccountArgs

Id This property is required. string
The Azure Resource Manager ID of the storage account resource.
Key This property is required. string
The storage account key.
Id This property is required. string
The Azure Resource Manager ID of the storage account resource.
Key This property is required. string
The storage account key.
id This property is required. String
The Azure Resource Manager ID of the storage account resource.
key This property is required. String
The storage account key.
id This property is required. string
The Azure Resource Manager ID of the storage account resource.
key This property is required. string
The storage account key.
id This property is required. str
The Azure Resource Manager ID of the storage account resource.
key This property is required. str
The storage account key.
id This property is required. String
The Azure Resource Manager ID of the storage account resource.
key This property is required. String
The storage account key.

StorageAccountResponse
, StorageAccountResponseArgs

Id This property is required. string
The Azure Resource Manager ID of the storage account resource.
Key This property is required. string
The storage account key.
Id This property is required. string
The Azure Resource Manager ID of the storage account resource.
Key This property is required. string
The storage account key.
id This property is required. String
The Azure Resource Manager ID of the storage account resource.
key This property is required. String
The storage account key.
id This property is required. string
The Azure Resource Manager ID of the storage account resource.
key This property is required. string
The storage account key.
id This property is required. str
The Azure Resource Manager ID of the storage account resource.
key This property is required. str
The storage account key.
id This property is required. String
The Azure Resource Manager ID of the storage account resource.
key This property is required. String
The storage account key.

StorageInsightStatusResponse
, StorageInsightStatusResponseArgs

State This property is required. string
The state of the storage insight connection to the workspace
Description string
Description of the state of the storage insight.
State This property is required. string
The state of the storage insight connection to the workspace
Description string
Description of the state of the storage insight.
state This property is required. String
The state of the storage insight connection to the workspace
description String
Description of the state of the storage insight.
state This property is required. string
The state of the storage insight connection to the workspace
description string
Description of the state of the storage insight.
state This property is required. str
The state of the storage insight connection to the workspace
description str
Description of the state of the storage insight.
state This property is required. 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/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName} 
Copy

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

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi