1. Packages
  2. Azure Native
  3. API Docs
  4. operationalinsights
  5. StorageInsightConfig
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi

azure-native.operationalinsights.StorageInsightConfig

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.37.0 published on Monday, Apr 15, 2024 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.

    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 (
    	"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
    	})
    }
    
    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());
    
        }
    }
    
    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

    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 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.

    Example

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

    var storageInsightConfigResource = new AzureNative.OperationalInsights.StorageInsightConfig("storageInsightConfigResource", new()
    {
        ResourceGroupName = "string",
        StorageAccount = new AzureNative.OperationalInsights.Inputs.StorageAccountArgs
        {
            Id = "string",
            Key = "string",
        },
        WorkspaceName = "string",
        Containers = new[]
        {
            "string",
        },
        ETag = "string",
        StorageInsightName = "string",
        Tables = new[]
        {
            "string",
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := operationalinsights.NewStorageInsightConfig(ctx, "storageInsightConfigResource", &operationalinsights.StorageInsightConfigArgs{
    ResourceGroupName: pulumi.String("string"),
    StorageAccount: &operationalinsights.StorageAccountArgs{
    Id: pulumi.String("string"),
    Key: pulumi.String("string"),
    },
    WorkspaceName: pulumi.String("string"),
    Containers: pulumi.StringArray{
    pulumi.String("string"),
    },
    ETag: pulumi.String("string"),
    StorageInsightName: pulumi.String("string"),
    Tables: pulumi.StringArray{
    pulumi.String("string"),
    },
    Tags: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    })
    
    var storageInsightConfigResource = new StorageInsightConfig("storageInsightConfigResource", StorageInsightConfigArgs.builder()        
        .resourceGroupName("string")
        .storageAccount(StorageAccountArgs.builder()
            .id("string")
            .key("string")
            .build())
        .workspaceName("string")
        .containers("string")
        .eTag("string")
        .storageInsightName("string")
        .tables("string")
        .tags(Map.of("string", "string"))
        .build());
    
    storage_insight_config_resource = azure_native.operationalinsights.StorageInsightConfig("storageInsightConfigResource",
        resource_group_name="string",
        storage_account=azure_native.operationalinsights.StorageAccountArgs(
            id="string",
            key="string",
        ),
        workspace_name="string",
        containers=["string"],
        e_tag="string",
        storage_insight_name="string",
        tables=["string"],
        tags={
            "string": "string",
        })
    
    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",
        },
    });
    
    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
    

    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.StorageAccount
    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 StorageAccount
    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 StorageAccount
    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, StorageAccountArgs

    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, StorageAccountResponseArgs

    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, StorageInsightStatusResponseArgs

    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/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.37.0 published on Monday, Apr 15, 2024 by Pulumi