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
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.
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" },
},
});
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",
},
})
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());
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,
})
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
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:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Storage
Account Pulumi.Azure Native. Operational Insights. Inputs. Storage Account - The storage account connection details
- Workspace
Name 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.
- Storage
Insight stringName - Name of the storageInsightsConfigs resource
- Tables List<string>
- The names of the Azure tables that the workspace should read
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Storage
Account StorageAccount Args - The storage account connection details
- Workspace
Name 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.
- Storage
Insight stringName - Name of the storageInsightsConfigs resource
- Tables []string
- The names of the Azure tables that the workspace should read
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- storage
Account StorageAccount - The storage account connection details
- workspace
Name String - The name of the workspace.
- containers List<String>
- The names of the blob containers that the workspace should read
- e
Tag String - The ETag of the storage insight.
- storage
Insight StringName - Name of the storageInsightsConfigs resource
- tables List<String>
- The names of the Azure tables that the workspace should read
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- storage
Account StorageAccount - The storage account connection details
- workspace
Name string - The name of the workspace.
- containers string[]
- The names of the blob containers that the workspace should read
- e
Tag string - The ETag of the storage insight.
- storage
Insight stringName - Name of the storageInsightsConfigs resource
- tables string[]
- The names of the Azure tables that the workspace should read
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- storage_
account StorageAccount Args - 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_ strname - Name of the storageInsightsConfigs resource
- tables Sequence[str]
- The names of the Azure tables that the workspace should read
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- storage
Account Property Map - The storage account connection details
- workspace
Name String - The name of the workspace.
- containers List<String>
- The names of the blob containers that the workspace should read
- e
Tag String - The ETag of the storage insight.
- storage
Insight StringName - Name of the storageInsightsConfigs resource
- tables List<String>
- The names of the Azure tables that the workspace should read
- 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.
Azure Native. Operational Insights. Outputs. Storage Insight Status Response - 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
Storage
Insight Status Response - 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
Storage
Insight Status Response - 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
Storage
Insight Status Response - 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
Storage
Insight Status Response - 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
StorageAccountResponse, StorageAccountResponseArgs
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/00000000-0000-0000-0000-000000000005/resourcegroups/oiautorest6987/providers/microsoft.operationalinsights/workspaces/aztest5048/storageinsightconfigs/AzTestSI1110
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0