AnalyticsSolution

Manages a Log Analytics (formally Operational Insights) Solution.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;
using Random = Pulumi.Random;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
        {
            Location = "westeurope",
        });
        var workspace = new Random.RandomId("workspace", new Random.RandomIdArgs
        {
            Keepers = 
            {
                { "group_name", exampleResourceGroup.Name },
            },
            ByteLength = 8,
        });
        var exampleAnalyticsWorkspace = new Azure.OperationalInsights.AnalyticsWorkspace("exampleAnalyticsWorkspace", new Azure.OperationalInsights.AnalyticsWorkspaceArgs
        {
            Location = exampleResourceGroup.Location,
            ResourceGroupName = exampleResourceGroup.Name,
            Sku = "PerGB2018",
        });
        var exampleAnalyticsSolution = new Azure.OperationalInsights.AnalyticsSolution("exampleAnalyticsSolution", new Azure.OperationalInsights.AnalyticsSolutionArgs
        {
            SolutionName = "ContainerInsights",
            Location = exampleResourceGroup.Location,
            ResourceGroupName = exampleResourceGroup.Name,
            WorkspaceResourceId = exampleAnalyticsWorkspace.Id,
            WorkspaceName = exampleAnalyticsWorkspace.Name,
            Plan = new Azure.OperationalInsights.Inputs.AnalyticsSolutionPlanArgs
            {
                Publisher = "Microsoft",
                Product = "OMSGallery/ContainerInsights",
            },
        });
    }

}

Coming soon!

import pulumi
import pulumi_azure as azure
import pulumi_random as random

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="westeurope")
workspace = random.RandomId("workspace",
    keepers={
        "group_name": example_resource_group.name,
    },
    byte_length=8)
example_analytics_workspace = azure.operationalinsights.AnalyticsWorkspace("exampleAnalyticsWorkspace",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name,
    sku="PerGB2018")
example_analytics_solution = azure.operationalinsights.AnalyticsSolution("exampleAnalyticsSolution",
    solution_name="ContainerInsights",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name,
    workspace_resource_id=example_analytics_workspace.id,
    workspace_name=example_analytics_workspace.name,
    plan={
        "publisher": "Microsoft",
        "product": "OMSGallery/ContainerInsights",
    })
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as random from "@pulumi/random";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "westeurope"});
const workspace = new random.RandomId("workspace", {
    keepers: {
        group_name: exampleResourceGroup.name,
    },
    byteLength: 8,
});
const exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("exampleAnalyticsWorkspace", {
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
    sku: "PerGB2018",
});
const exampleAnalyticsSolution = new azure.operationalinsights.AnalyticsSolution("exampleAnalyticsSolution", {
    solutionName: "ContainerInsights",
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
    workspaceResourceId: exampleAnalyticsWorkspace.id,
    workspaceName: exampleAnalyticsWorkspace.name,
    plan: {
        publisher: "Microsoft",
        product: "OMSGallery/ContainerInsights",
    },
});

Create a AnalyticsSolution Resource

def AnalyticsSolution(resource_name, opts=None, location=None, plan=None, resource_group_name=None, solution_name=None, workspace_name=None, workspace_resource_id=None, __props__=None);
name string
The unique name of the resource.
args AnalyticsSolutionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AnalyticsSolutionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AnalyticsSolutionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

AnalyticsSolution Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The AnalyticsSolution resource accepts the following input properties:

Plan AnalyticsSolutionPlanArgs

A plan block as documented below.

ResourceGroupName 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 it’s related workspace can only exist in the same resource group.

SolutionName string

Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created.

WorkspaceName 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 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 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 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 it’s related workspace can only exist in the same resource group.

SolutionName string

Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created.

WorkspaceName 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 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 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 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 it’s related workspace can only exist in the same resource group.

solutionName string

Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created.

workspaceName 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 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 string

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

plan Dict[AnalyticsSolutionPlan]

A plan block as documented below.

resource_group_name 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 it’s related workspace can only exist in the same resource group.

solution_name 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 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 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 str

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

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 str
The provider-assigned unique ID for this managed resource.

Look up an 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
static get(resource_name, id, opts=None, location=None, plan=None, resource_group_name=None, solution_name=None, workspace_name=None, workspace_resource_id=None, __props__=None);
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)
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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 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 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 it’s related workspace can only exist in the same resource group.

SolutionName string

Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created.

WorkspaceName 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 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 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 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 it’s related workspace can only exist in the same resource group.

SolutionName string

Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created.

WorkspaceName 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 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 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 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 it’s related workspace can only exist in the same resource group.

solutionName string

Specifies the name of the solution to be deployed. See here for options.Changing this forces a new resource to be created.

workspaceName 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 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 str

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

plan Dict[AnalyticsSolutionPlan]

A plan block as documented below.

resource_group_name 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 it’s related workspace can only exist in the same resource group.

solution_name 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 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 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.

Supporting Types

AnalyticsSolutionPlan

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Product string

The product name of the solution. For example OMSGallery/Containers. Changing this forces a new resource to be created.

Publisher string

The publisher of the solution. For example Microsoft. Changing this forces a new resource to be created.

Name string
PromotionCode string

A promotion code to be used with the solution.

Product string

The product name of the solution. For example OMSGallery/Containers. Changing this forces a new resource to be created.

Publisher string

The publisher of the solution. For example Microsoft. Changing this forces a new resource to be created.

Name string
PromotionCode string

A promotion code to be used with the solution.

product string

The product name of the solution. For example OMSGallery/Containers. Changing this forces a new resource to be created.

publisher string

The publisher of the solution. For example Microsoft. Changing this forces a new resource to be created.

name string
promotionCode string

A promotion code to be used with the solution.

product str

The product name of the solution. For example OMSGallery/Containers. Changing this forces a new resource to be created.

publisher str

The publisher of the solution. For example Microsoft. Changing this forces a new resource to be created.

name str
promotionCode str

A promotion code to be used with the solution.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.