AnalyticsWorkspaceArgs

data class AnalyticsWorkspaceArgs(val allowResourceOnlyPermissions: Output<Boolean>? = null, val cmkForQueryForced: Output<Boolean>? = null, val dailyQuotaGb: Output<Double>? = null, val dataCollectionRuleId: Output<String>? = null, val internetIngestionEnabled: Output<Boolean>? = null, val internetQueryEnabled: Output<Boolean>? = null, val localAuthenticationDisabled: Output<Boolean>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val reservationCapacityInGbPerDay: Output<Int>? = null, val resourceGroupName: Output<String>? = null, val retentionInDays: Output<Int>? = null, val sku: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<AnalyticsWorkspaceArgs>

Manages a Log Analytics (formally Operational Insights) Workspace.

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

Import

Log Analytics Workspaces can be imported using the resource id, e.g.

$ pulumi import azure:operationalinsights/analyticsWorkspace:AnalyticsWorkspace workspace1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.OperationalInsights/workspaces/workspace1

Constructors

Link copied to clipboard
fun AnalyticsWorkspaceArgs(allowResourceOnlyPermissions: Output<Boolean>? = null, cmkForQueryForced: Output<Boolean>? = null, dailyQuotaGb: Output<Double>? = null, dataCollectionRuleId: Output<String>? = null, internetIngestionEnabled: Output<Boolean>? = null, internetQueryEnabled: Output<Boolean>? = null, localAuthenticationDisabled: Output<Boolean>? = null, location: Output<String>? = null, name: Output<String>? = null, reservationCapacityInGbPerDay: Output<Int>? = null, resourceGroupName: Output<String>? = null, retentionInDays: Output<Int>? = null, sku: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Functions

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

Properties

Link copied to clipboard

Specifies if the log Analytics Workspace allow users accessing to data associated with resources they have permission to view, without permission to workspace. Defaults to true.

Link copied to clipboard
val cmkForQueryForced: Output<Boolean>? = null

Is Customer Managed Storage mandatory for query management?

Link copied to clipboard
val dailyQuotaGb: Output<Double>? = null

The workspace daily quota for ingestion in GB. Defaults to -1 (unlimited) if omitted.

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

The ID of the Data Collection Rule to use for this workspace.

Link copied to clipboard
val internetIngestionEnabled: Output<Boolean>? = null

Should the Log Analytics Workspace support ingestion over the Public Internet? Defaults to true.

Link copied to clipboard
val internetQueryEnabled: Output<Boolean>? = null

Should the Log Analytics Workspace support querying over the Public Internet? Defaults to true.

Link copied to clipboard

Specifies if the log Analytics workspace should enforce authentication using Azure AD. Defaults to false.

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

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

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

Specifies the name of the Log Analytics Workspace. Workspace name should include 4-63 letters, digits or '-'. The '-' shouldn't be the first or the last symbol. Changing this forces a new resource to be created.

Link copied to clipboard
val reservationCapacityInGbPerDay: Output<Int>? = null

The capacity reservation level in GB for this workspace. Possible values are 100, 200, 300, 400, 500, 1000, 2000 and 5000.

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

The name of the resource group in which the Log Analytics workspace is created. Changing this forces a new resource to be created.

Link copied to clipboard
val retentionInDays: Output<Int>? = null

The workspace data retention in days. Possible values are either 7 (Free Tier only) or range between 30 and 730.

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

Specifies the SKU of the Log Analytics Workspace. Possible values are Free, PerNode, Premium, Standard, Standalone, Unlimited, CapacityReservation, and PerGB2018 (new SKU as of 2018-04-03). Defaults to PerGB2018.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags to assign to the resource.