LinkedStorageAccountArgs

data class LinkedStorageAccountArgs(val dataSourceType: Output<String>? = null, val resourceGroupName: Output<String>? = null, val storageAccountIds: Output<List<String>>? = null, val workspaceResourceId: Output<String>? = null) : ConvertibleToJava<LinkedStorageAccountArgs>

Manages a Log Analytics Linked Storage Account.

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.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspace;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspaceArgs;
import com.pulumi.azure.loganalytics.LinkedStorageAccount;
import com.pulumi.azure.loganalytics.LinkedStorageAccountArgs;
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 exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("GRS")
.build());
var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.sku("PerGB2018")
.build());
var exampleLinkedStorageAccount = new LinkedStorageAccount("exampleLinkedStorageAccount", LinkedStorageAccountArgs.builder()
.dataSourceType("CustomLogs")
.resourceGroupName(exampleResourceGroup.name())
.workspaceResourceId(exampleAnalyticsWorkspace.id())
.storageAccountIds(exampleAccount.id())
.build());
}
}

Import

Log Analytics Linked Storage Accounts can be imported using the resource id, e.g.

$ pulumi import azure:loganalytics/linkedStorageAccount:LinkedStorageAccount example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.OperationalInsights/workspaces/workspace1/linkedStorageAccounts/{dataSourceType}

Constructors

Link copied to clipboard
fun LinkedStorageAccountArgs(dataSourceType: Output<String>? = null, resourceGroupName: Output<String>? = null, storageAccountIds: Output<List<String>>? = null, workspaceResourceId: Output<String>? = null)

Functions

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

Properties

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

The data source type which should be used for this Log Analytics Linked Storage Account. Possible values are CustomLogs, AzureWatson, Query, Ingestion and Alerts. Changing this forces a new Log Analytics Linked Storage Account to be created.

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

The name of the Resource Group where the Log Analytics Linked Storage Account should exist. Changing this forces a new Log Analytics Linked Storage Account to be created.

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

The storage account resource ids to be linked.

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

The resource ID of the Log Analytics Workspace. Changing this forces a new Log Analytics Linked Storage Account to be created.