1. Packages
  2. Azure Classic
  3. API Docs
  4. operationalinsights
  5. AnalyticsSolution

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.operationalinsights.AnalyticsSolution

Explore with Pulumi AI

Manages a Log Analytics (formally Operational Insights) Solution.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as random from "@pulumi/random";

const example = new azure.core.ResourceGroup("example", {
    name: "k8s-log-analytics-test",
    location: "West Europe",
});
const workspace = new random.RandomId("workspace", {
    keepers: {
        group_name: example.name,
    },
    byteLength: 8,
});
const exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("example", {
    name: pulumi.interpolate`k8s-workspace-${workspace.hex}`,
    location: example.location,
    resourceGroupName: example.name,
    sku: "PerGB2018",
});
const exampleAnalyticsSolution = new azure.operationalinsights.AnalyticsSolution("example", {
    solutionName: "ContainerInsights",
    location: example.location,
    resourceGroupName: example.name,
    workspaceResourceId: exampleAnalyticsWorkspace.id,
    workspaceName: exampleAnalyticsWorkspace.name,
    plan: {
        publisher: "Microsoft",
        product: "OMSGallery/ContainerInsights",
    },
});
Copy
import pulumi
import pulumi_azure as azure
import pulumi_random as random

example = azure.core.ResourceGroup("example",
    name="k8s-log-analytics-test",
    location="West Europe")
workspace = random.RandomId("workspace",
    keepers={
        "group_name": example.name,
    },
    byte_length=8)
example_analytics_workspace = azure.operationalinsights.AnalyticsWorkspace("example",
    name=workspace.hex.apply(lambda hex: f"k8s-workspace-{hex}"),
    location=example.location,
    resource_group_name=example.name,
    sku="PerGB2018")
example_analytics_solution = azure.operationalinsights.AnalyticsSolution("example",
    solution_name="ContainerInsights",
    location=example.location,
    resource_group_name=example.name,
    workspace_resource_id=example_analytics_workspace.id,
    workspace_name=example_analytics_workspace.name,
    plan={
        "publisher": "Microsoft",
        "product": "OMSGallery/ContainerInsights",
    })
Copy
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/operationalinsights"
	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("k8s-log-analytics-test"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		workspace, err := random.NewRandomId(ctx, "workspace", &random.RandomIdArgs{
			Keepers: pulumi.StringMap{
				"group_name": example.Name,
			},
			ByteLength: pulumi.Int(8),
		})
		if err != nil {
			return err
		}
		exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{
			Name: workspace.Hex.ApplyT(func(hex string) (string, error) {
				return fmt.Sprintf("k8s-workspace-%v", hex), nil
			}).(pulumi.StringOutput),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			Sku:               pulumi.String("PerGB2018"),
		})
		if err != nil {
			return err
		}
		_, err = operationalinsights.NewAnalyticsSolution(ctx, "example", &operationalinsights.AnalyticsSolutionArgs{
			SolutionName:        pulumi.String("ContainerInsights"),
			Location:            example.Location,
			ResourceGroupName:   example.Name,
			WorkspaceResourceId: exampleAnalyticsWorkspace.ID(),
			WorkspaceName:       exampleAnalyticsWorkspace.Name,
			Plan: &operationalinsights.AnalyticsSolutionPlanArgs{
				Publisher: pulumi.String("Microsoft"),
				Product:   pulumi.String("OMSGallery/ContainerInsights"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
using Random = Pulumi.Random;

return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "k8s-log-analytics-test",
        Location = "West Europe",
    });

    var workspace = new Random.RandomId("workspace", new()
    {
        Keepers = 
        {
            { "group_name", example.Name },
        },
        ByteLength = 8,
    });

    var exampleAnalyticsWorkspace = new Azure.OperationalInsights.AnalyticsWorkspace("example", new()
    {
        Name = workspace.Hex.Apply(hex => $"k8s-workspace-{hex}"),
        Location = example.Location,
        ResourceGroupName = example.Name,
        Sku = "PerGB2018",
    });

    var exampleAnalyticsSolution = new Azure.OperationalInsights.AnalyticsSolution("example", new()
    {
        SolutionName = "ContainerInsights",
        Location = example.Location,
        ResourceGroupName = example.Name,
        WorkspaceResourceId = exampleAnalyticsWorkspace.Id,
        WorkspaceName = exampleAnalyticsWorkspace.Name,
        Plan = new Azure.OperationalInsights.Inputs.AnalyticsSolutionPlanArgs
        {
            Publisher = "Microsoft",
            Product = "OMSGallery/ContainerInsights",
        },
    });

});
Copy
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.random.RandomId;
import com.pulumi.random.RandomIdArgs;
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 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("k8s-log-analytics-test")
            .location("West Europe")
            .build());

        var workspace = new RandomId("workspace", RandomIdArgs.builder()
            .keepers(Map.of("group_name", example.name()))
            .byteLength(8)
            .build());

        var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()
            .name(workspace.hex().applyValue(hex -> String.format("k8s-workspace-%s", hex)))
            .location(example.location())
            .resourceGroupName(example.name())
            .sku("PerGB2018")
            .build());

        var exampleAnalyticsSolution = new AnalyticsSolution("exampleAnalyticsSolution", AnalyticsSolutionArgs.builder()
            .solutionName("ContainerInsights")
            .location(example.location())
            .resourceGroupName(example.name())
            .workspaceResourceId(exampleAnalyticsWorkspace.id())
            .workspaceName(exampleAnalyticsWorkspace.name())
            .plan(AnalyticsSolutionPlanArgs.builder()
                .publisher("Microsoft")
                .product("OMSGallery/ContainerInsights")
                .build())
            .build());

    }
}
Copy
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: k8s-log-analytics-test
      location: West Europe
  workspace:
    type: random:RandomId
    properties:
      keepers:
        group_name: ${example.name}
      byteLength: 8
  exampleAnalyticsWorkspace:
    type: azure:operationalinsights:AnalyticsWorkspace
    name: example
    properties:
      name: k8s-workspace-${workspace.hex}
      location: ${example.location}
      resourceGroupName: ${example.name}
      sku: PerGB2018
  exampleAnalyticsSolution:
    type: azure:operationalinsights:AnalyticsSolution
    name: example
    properties:
      solutionName: ContainerInsights
      location: ${example.location}
      resourceGroupName: ${example.name}
      workspaceResourceId: ${exampleAnalyticsWorkspace.id}
      workspaceName: ${exampleAnalyticsWorkspace.name}
      plan:
        publisher: Microsoft
        product: OMSGallery/ContainerInsights
Copy

Create AnalyticsSolution Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AnalyticsSolution(name: string, args: AnalyticsSolutionArgs, opts?: CustomResourceOptions);
@overload
def AnalyticsSolution(resource_name: str,
                      args: AnalyticsSolutionArgs,
                      opts: Optional[ResourceOptions] = None)

@overload
def AnalyticsSolution(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      plan: Optional[AnalyticsSolutionPlanArgs] = None,
                      resource_group_name: Optional[str] = None,
                      solution_name: Optional[str] = None,
                      workspace_name: Optional[str] = None,
                      workspace_resource_id: Optional[str] = None,
                      location: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None)
func NewAnalyticsSolution(ctx *Context, name string, args AnalyticsSolutionArgs, opts ...ResourceOption) (*AnalyticsSolution, error)
public AnalyticsSolution(string name, AnalyticsSolutionArgs args, CustomResourceOptions? opts = null)
public AnalyticsSolution(String name, AnalyticsSolutionArgs args)
public AnalyticsSolution(String name, AnalyticsSolutionArgs args, CustomResourceOptions options)
type: azure:operationalinsights:AnalyticsSolution
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AnalyticsSolutionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AnalyticsSolutionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AnalyticsSolutionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AnalyticsSolutionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AnalyticsSolutionArgs
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 analyticsSolutionResource = new Azure.OperationalInsights.AnalyticsSolution("analyticsSolutionResource", new()
{
    Plan = new Azure.OperationalInsights.Inputs.AnalyticsSolutionPlanArgs
    {
        Product = "string",
        Publisher = "string",
        Name = "string",
        PromotionCode = "string",
    },
    ResourceGroupName = "string",
    SolutionName = "string",
    WorkspaceName = "string",
    WorkspaceResourceId = "string",
    Location = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := operationalinsights.NewAnalyticsSolution(ctx, "analyticsSolutionResource", &operationalinsights.AnalyticsSolutionArgs{
	Plan: &operationalinsights.AnalyticsSolutionPlanArgs{
		Product:       pulumi.String("string"),
		Publisher:     pulumi.String("string"),
		Name:          pulumi.String("string"),
		PromotionCode: pulumi.String("string"),
	},
	ResourceGroupName:   pulumi.String("string"),
	SolutionName:        pulumi.String("string"),
	WorkspaceName:       pulumi.String("string"),
	WorkspaceResourceId: pulumi.String("string"),
	Location:            pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var analyticsSolutionResource = new AnalyticsSolution("analyticsSolutionResource", AnalyticsSolutionArgs.builder()
    .plan(AnalyticsSolutionPlanArgs.builder()
        .product("string")
        .publisher("string")
        .name("string")
        .promotionCode("string")
        .build())
    .resourceGroupName("string")
    .solutionName("string")
    .workspaceName("string")
    .workspaceResourceId("string")
    .location("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
analytics_solution_resource = azure.operationalinsights.AnalyticsSolution("analyticsSolutionResource",
    plan={
        "product": "string",
        "publisher": "string",
        "name": "string",
        "promotion_code": "string",
    },
    resource_group_name="string",
    solution_name="string",
    workspace_name="string",
    workspace_resource_id="string",
    location="string",
    tags={
        "string": "string",
    })
Copy
const analyticsSolutionResource = new azure.operationalinsights.AnalyticsSolution("analyticsSolutionResource", {
    plan: {
        product: "string",
        publisher: "string",
        name: "string",
        promotionCode: "string",
    },
    resourceGroupName: "string",
    solutionName: "string",
    workspaceName: "string",
    workspaceResourceId: "string",
    location: "string",
    tags: {
        string: "string",
    },
});
Copy
type: azure:operationalinsights:AnalyticsSolution
properties:
    location: string
    plan:
        name: string
        product: string
        promotionCode: string
        publisher: string
    resourceGroupName: string
    solutionName: string
    tags:
        string: string
    workspaceName: string
    workspaceResourceId: string
Copy

AnalyticsSolution 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 AnalyticsSolution resource accepts the following input properties:

Plan This property is required. AnalyticsSolutionPlan
A plan block as documented below.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group in which the Log Analytics solution is created. Changing this forces a new resource to be created. Note: The solution and its related workspace can only exist in the same resource group.
SolutionName
This property is required.
Changes to this property will trigger replacement.
string
Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created.
WorkspaceName
This property is required.
Changes to this property will trigger replacement.
string
The full name of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
WorkspaceResourceId
This property is required.
Changes to this property will trigger replacement.
string
The full resource ID of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
Location Changes to this property will trigger replacement. string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Tags Dictionary<string, string>
A mapping of tags to assign to the resource.
Plan This property is required. AnalyticsSolutionPlanArgs
A plan block as documented below.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group in which the Log Analytics solution is created. Changing this forces a new resource to be created. Note: The solution and its related workspace can only exist in the same resource group.
SolutionName
This property is required.
Changes to this property will trigger replacement.
string
Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created.
WorkspaceName
This property is required.
Changes to this property will trigger replacement.
string
The full name of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
WorkspaceResourceId
This property is required.
Changes to this property will trigger replacement.
string
The full resource ID of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
Location Changes to this property will trigger replacement. string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Tags map[string]string
A mapping of tags to assign to the resource.
plan This property is required. AnalyticsSolutionPlan
A plan block as documented below.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group in which the Log Analytics solution is created. Changing this forces a new resource to be created. Note: The solution and its related workspace can only exist in the same resource group.
solutionName
This property is required.
Changes to this property will trigger replacement.
String
Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created.
workspaceName
This property is required.
Changes to this property will trigger replacement.
String
The full name of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
workspaceResourceId
This property is required.
Changes to this property will trigger replacement.
String
The full resource ID of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
location Changes to this property will trigger replacement. String
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
tags Map<String,String>
A mapping of tags to assign to the resource.
plan This property is required. AnalyticsSolutionPlan
A plan block as documented below.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group in which the Log Analytics solution is created. Changing this forces a new resource to be created. Note: The solution and its related workspace can only exist in the same resource group.
solutionName
This property is required.
Changes to this property will trigger replacement.
string
Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created.
workspaceName
This property is required.
Changes to this property will trigger replacement.
string
The full name of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
workspaceResourceId
This property is required.
Changes to this property will trigger replacement.
string
The full resource ID of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
location Changes to this property will trigger replacement. string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
tags {[key: string]: string}
A mapping of tags to assign to the resource.
plan This property is required. AnalyticsSolutionPlanArgs
A plan block as documented below.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group in which the Log Analytics solution is created. Changing this forces a new resource to be created. Note: The solution and its related workspace can only exist in the same resource group.
solution_name
This property is required.
Changes to this property will trigger replacement.
str
Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created.
workspace_name
This property is required.
Changes to this property will trigger replacement.
str
The full name of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
workspace_resource_id
This property is required.
Changes to this property will trigger replacement.
str
The full resource ID of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
location Changes to this property will trigger replacement. str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
tags Mapping[str, str]
A mapping of tags to assign to the resource.
plan This property is required. Property Map
A plan block as documented below.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group in which the Log Analytics solution is created. Changing this forces a new resource to be created. Note: The solution and its related workspace can only exist in the same resource group.
solutionName
This property is required.
Changes to this property will trigger replacement.
String
Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created.
workspaceName
This property is required.
Changes to this property will trigger replacement.
String
The full name of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
workspaceResourceId
This property is required.
Changes to this property will trigger replacement.
String
The full resource ID of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
location Changes to this property will trigger replacement. String
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
tags Map<String>
A mapping of tags to assign to the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the AnalyticsSolution resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing AnalyticsSolution Resource

Get an existing AnalyticsSolution resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AnalyticsSolutionState, opts?: CustomResourceOptions): AnalyticsSolution
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        location: Optional[str] = None,
        plan: Optional[AnalyticsSolutionPlanArgs] = None,
        resource_group_name: Optional[str] = None,
        solution_name: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        workspace_name: Optional[str] = None,
        workspace_resource_id: Optional[str] = None) -> AnalyticsSolution
func GetAnalyticsSolution(ctx *Context, name string, id IDInput, state *AnalyticsSolutionState, opts ...ResourceOption) (*AnalyticsSolution, error)
public static AnalyticsSolution Get(string name, Input<string> id, AnalyticsSolutionState? state, CustomResourceOptions? opts = null)
public static AnalyticsSolution get(String name, Output<String> id, AnalyticsSolutionState state, CustomResourceOptions options)
resources:  _:    type: azure:operationalinsights:AnalyticsSolution    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Location Changes to this property will trigger replacement. string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Plan AnalyticsSolutionPlan
A plan block as documented below.
ResourceGroupName Changes to this property will trigger replacement. string
The name of the resource group in which the Log Analytics solution is created. Changing this forces a new resource to be created. Note: The solution and its related workspace can only exist in the same resource group.
SolutionName Changes to this property will trigger replacement. string
Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created.
Tags Dictionary<string, string>
A mapping of tags to assign to the resource.
WorkspaceName Changes to this property will trigger replacement. string
The full name of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
WorkspaceResourceId Changes to this property will trigger replacement. string
The full resource ID of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
Location Changes to this property will trigger replacement. string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Plan AnalyticsSolutionPlanArgs
A plan block as documented below.
ResourceGroupName Changes to this property will trigger replacement. string
The name of the resource group in which the Log Analytics solution is created. Changing this forces a new resource to be created. Note: The solution and its related workspace can only exist in the same resource group.
SolutionName Changes to this property will trigger replacement. string
Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created.
Tags map[string]string
A mapping of tags to assign to the resource.
WorkspaceName Changes to this property will trigger replacement. string
The full name of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
WorkspaceResourceId Changes to this property will trigger replacement. string
The full resource ID of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
location Changes to this property will trigger replacement. String
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
plan AnalyticsSolutionPlan
A plan block as documented below.
resourceGroupName Changes to this property will trigger replacement. String
The name of the resource group in which the Log Analytics solution is created. Changing this forces a new resource to be created. Note: The solution and its related workspace can only exist in the same resource group.
solutionName Changes to this property will trigger replacement. String
Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created.
tags Map<String,String>
A mapping of tags to assign to the resource.
workspaceName Changes to this property will trigger replacement. String
The full name of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
workspaceResourceId Changes to this property will trigger replacement. String
The full resource ID of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
location Changes to this property will trigger replacement. string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
plan AnalyticsSolutionPlan
A plan block as documented below.
resourceGroupName Changes to this property will trigger replacement. string
The name of the resource group in which the Log Analytics solution is created. Changing this forces a new resource to be created. Note: The solution and its related workspace can only exist in the same resource group.
solutionName Changes to this property will trigger replacement. string
Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created.
tags {[key: string]: string}
A mapping of tags to assign to the resource.
workspaceName Changes to this property will trigger replacement. string
The full name of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
workspaceResourceId Changes to this property will trigger replacement. string
The full resource ID of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
location Changes to this property will trigger replacement. str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
plan AnalyticsSolutionPlanArgs
A plan block as documented below.
resource_group_name Changes to this property will trigger replacement. str
The name of the resource group in which the Log Analytics solution is created. Changing this forces a new resource to be created. Note: The solution and its related workspace can only exist in the same resource group.
solution_name Changes to this property will trigger replacement. str
Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created.
tags Mapping[str, str]
A mapping of tags to assign to the resource.
workspace_name Changes to this property will trigger replacement. str
The full name of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
workspace_resource_id Changes to this property will trigger replacement. str
The full resource ID of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
location Changes to this property will trigger replacement. String
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
plan Property Map
A plan block as documented below.
resourceGroupName Changes to this property will trigger replacement. String
The name of the resource group in which the Log Analytics solution is created. Changing this forces a new resource to be created. Note: The solution and its related workspace can only exist in the same resource group.
solutionName Changes to this property will trigger replacement. String
Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created.
tags Map<String>
A mapping of tags to assign to the resource.
workspaceName Changes to this property will trigger replacement. String
The full name of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.
workspaceResourceId Changes to this property will trigger replacement. String
The full resource ID of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.

Supporting Types

AnalyticsSolutionPlan
, AnalyticsSolutionPlanArgs

Product
This property is required.
Changes to this property will trigger replacement.
string
The product name of the solution. For example OMSGallery/Containers. Changing this forces a new resource to be created.
Publisher
This property is required.
Changes to this property will trigger replacement.
string
The publisher of the solution. For example Microsoft. Changing this forces a new resource to be created.
Name string
PromotionCode Changes to this property will trigger replacement. string
A promotion code to be used with the solution. Changing this forces a new resource to be created.
Product
This property is required.
Changes to this property will trigger replacement.
string
The product name of the solution. For example OMSGallery/Containers. Changing this forces a new resource to be created.
Publisher
This property is required.
Changes to this property will trigger replacement.
string
The publisher of the solution. For example Microsoft. Changing this forces a new resource to be created.
Name string
PromotionCode Changes to this property will trigger replacement. string
A promotion code to be used with the solution. Changing this forces a new resource to be created.
product
This property is required.
Changes to this property will trigger replacement.
String
The product name of the solution. For example OMSGallery/Containers. Changing this forces a new resource to be created.
publisher
This property is required.
Changes to this property will trigger replacement.
String
The publisher of the solution. For example Microsoft. Changing this forces a new resource to be created.
name String
promotionCode Changes to this property will trigger replacement. String
A promotion code to be used with the solution. Changing this forces a new resource to be created.
product
This property is required.
Changes to this property will trigger replacement.
string
The product name of the solution. For example OMSGallery/Containers. Changing this forces a new resource to be created.
publisher
This property is required.
Changes to this property will trigger replacement.
string
The publisher of the solution. For example Microsoft. Changing this forces a new resource to be created.
name string
promotionCode Changes to this property will trigger replacement. string
A promotion code to be used with the solution. Changing this forces a new resource to be created.
product
This property is required.
Changes to this property will trigger replacement.
str
The product name of the solution. For example OMSGallery/Containers. Changing this forces a new resource to be created.
publisher
This property is required.
Changes to this property will trigger replacement.
str
The publisher of the solution. For example Microsoft. Changing this forces a new resource to be created.
name str
promotion_code Changes to this property will trigger replacement. str
A promotion code to be used with the solution. Changing this forces a new resource to be created.
product
This property is required.
Changes to this property will trigger replacement.
String
The product name of the solution. For example OMSGallery/Containers. Changing this forces a new resource to be created.
publisher
This property is required.
Changes to this property will trigger replacement.
String
The publisher of the solution. For example Microsoft. Changing this forces a new resource to be created.
name String
promotionCode Changes to this property will trigger replacement. String
A promotion code to be used with the solution. Changing this forces a new resource to be created.

Import

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

$ pulumi import azure:operationalinsights/analyticsSolution:AnalyticsSolution solution1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.OperationsManagement/solutions/solution1
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.