StorageInsightsArgs

data class StorageInsightsArgs(val blobContainerNames: Output<List<String>>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val storageAccountId: Output<String>? = null, val storageAccountKey: Output<String>? = null, val tableNames: Output<List<String>>? = null, val workspaceId: Output<String>? = null) : ConvertibleToJava<StorageInsightsArgs>

Manages a Log Analytics Storage Insights resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspace;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspaceArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.loganalytics.StorageInsights;
import com.pulumi.azure.loganalytics.StorageInsightsArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.sku("PerGB2018")
.retentionInDays(30)
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("LRS")
.build());
var exampleStorageInsights = new StorageInsights("exampleStorageInsights", StorageInsightsArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.workspaceId(exampleAnalyticsWorkspace.id())
.storageAccountId(exampleAccount.id())
.storageAccountKey(exampleAccount.primaryAccessKey())
.build());
}
}

Import

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

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

Constructors

Link copied to clipboard
fun StorageInsightsArgs(blobContainerNames: Output<List<String>>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, storageAccountId: Output<String>? = null, storageAccountKey: Output<String>? = null, tableNames: Output<List<String>>? = null, workspaceId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): StorageInsightsArgs

Properties

Link copied to clipboard
val blobContainerNames: Output<List<String>>? = null

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

Link copied to clipboard
val name: Output<String>? = null

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

Link copied to clipboard
val resourceGroupName: Output<String>? = null

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.

Link copied to clipboard
val storageAccountId: Output<String>? = null

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

Link copied to clipboard
val storageAccountKey: Output<String>? = null

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

Link copied to clipboard
val tableNames: Output<List<String>>? = null

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

Link copied to clipboard
val workspaceId: Output<String>? = null

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.