Metadata

class Metadata : KotlinCustomResource

Manages a Sentinel Metadata.

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.operationalinsights.AnalyticsSolution;
import com.pulumi.azure.operationalinsights.AnalyticsSolutionArgs;
import com.pulumi.azure.operationalinsights.inputs.AnalyticsSolutionPlanArgs;
import com.pulumi.azure.sentinel.AlertRuleNrt;
import com.pulumi.azure.sentinel.AlertRuleNrtArgs;
import com.pulumi.azure.sentinel.Metadata;
import com.pulumi.azure.sentinel.MetadataArgs;
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")
.build());
var exampleAnalyticsSolution = new AnalyticsSolution("exampleAnalyticsSolution", AnalyticsSolutionArgs.builder()
.solutionName("SecurityInsights")
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.workspaceResourceId(exampleAnalyticsWorkspace.id())
.workspaceName(exampleAnalyticsWorkspace.name())
.plan(AnalyticsSolutionPlanArgs.builder()
.publisher("Microsoft")
.product("OMSGallery/SecurityInsights")
.build())
.build());
var exampleAlertRuleNrt = new AlertRuleNrt("exampleAlertRuleNrt", AlertRuleNrtArgs.builder()
.logAnalyticsWorkspaceId(exampleAnalyticsSolution.workspaceResourceId())
.displayName("example")
.severity("High")
.query("""
AzureActivity |
where OperationName == "Create or Update Virtual Machine" or OperationName =="Create Deployment" |
where ActivityStatus == "Succeeded" |
make-series dcount(ResourceId) default=0 on EventSubmissionTimestamp in range(ago(7d), now(), 1d) by Caller
""")
.build());
var exampleMetadata = new Metadata("exampleMetadata", MetadataArgs.builder()
.workspaceId(exampleAnalyticsSolution.workspaceResourceId())
.contentId(exampleAlertRuleNrt.name())
.kind("AnalyticsRule")
.parentId(exampleAlertRuleNrt.id())
.build());
}
}

Import

Sentinel Metadata can be imported using the resource id, e.g.

$ pulumi import azure:sentinel/metadata:Metadata example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroup1/providers/Microsoft.OperationalInsights/workspaces/workspace1/providers/Microsoft.SecurityInsights/metadata/metadata1

Properties

Link copied to clipboard
val author: Output<MetadataAuthor>?

An author blocks as defined below.

Link copied to clipboard

A category block as defined below.

Link copied to clipboard
val contentId: Output<String>

The ID of the content. Used to identify dependencies and content from solutions or community.

Link copied to clipboard

Schema version of the content. Can be used to distinguish between flow based on the schema version.

Link copied to clipboard
val customVersion: Output<String>?

The Custom version of the content.

Link copied to clipboard
val dependency: Output<String>?

A JSON formatted dependency block as defined below. Dependency for the content item, what other content items it requires to work.

Link copied to clipboard
val firstPublishDate: Output<String>?

The first publish date of solution content item.

Link copied to clipboard
val iconId: Output<String>?

The ID of the icon, this id can be fetched from the solution template.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val kind: Output<String>

The kind of content the metadata is for. Possible values are AnalyticsRule, AnalyticsRuleTemplate, AutomationRule, AzureFunction, DataConnector, DataType, HuntingQuery, InvestigationQuery, LogicAppsCustomConnector, Parser, Playbook, PlaybookTemplate, Solution, Watchlist, WatchlistTemplate, Workbook and WorkbookTemplate.

Link copied to clipboard
val lastPublishDate: Output<String>?

The last publish date of solution content item.

Link copied to clipboard
val name: Output<String>

The name which should be used for this Sentinel Metadata. Changing this forces a new Sentinel Metadata to be created.

Link copied to clipboard
val parentId: Output<String>

The ID of the parent resource ID of the content item, which the metadata belongs to.

Link copied to clipboard
val previewImages: Output<List<String>>?
Link copied to clipboard
Link copied to clipboard
val providers: Output<List<String>>?

Specifies a list of providers for the solution content item.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val source: Output<MetadataSource>

A source block as defined below.

Link copied to clipboard
val support: Output<MetadataSupport>?

A support block as defined below.

Link copied to clipboard

Specifies a list of tactics the resource covers.

Link copied to clipboard

Specifies a list of techniques the resource covers.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val version: Output<String>?

Version of the content.

Link copied to clipboard
val workspaceId: Output<String>

The ID of the Log Analytics Workspace. Changing this forces a new Sentinel Metadata to be created.