Show / Hide Table of Contents

Class 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",
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
AnalyticsSolution
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.OperationalInsights
Assembly: Pulumi.Azure.dll
Syntax
public class AnalyticsSolution : CustomResource

Constructors

View Source

AnalyticsSolution(String, AnalyticsSolutionArgs, CustomResourceOptions)

Create a AnalyticsSolution resource with the given unique name, arguments, and options.

Declaration
public AnalyticsSolution(string name, AnalyticsSolutionArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

AnalyticsSolutionArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Location

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

Declaration
public Output<string> Location { get; }
Property Value
Type Description
Output<System.String>
View Source

Plan

A plan block as documented below.

Declaration
public Output<AnalyticsSolutionPlan> Plan { get; }
Property Value
Type Description
Output<AnalyticsSolutionPlan>
View Source

ResourceGroupName

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.

Declaration
public Output<string> ResourceGroupName { get; }
Property Value
Type Description
Output<System.String>
View Source

SolutionName

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

Declaration
public Output<string> SolutionName { get; }
Property Value
Type Description
Output<System.String>
View Source

WorkspaceName

The full name of the Log Analytics workspace with which the solution will be linked. Changing this forces a new resource to be created.

Declaration
public Output<string> WorkspaceName { get; }
Property Value
Type Description
Output<System.String>
View Source

WorkspaceResourceId

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.

Declaration
public Output<string> WorkspaceResourceId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, AnalyticsSolutionState, CustomResourceOptions)

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

Declaration
public static AnalyticsSolution Get(string name, Input<string> id, AnalyticsSolutionState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

AnalyticsSolutionState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
AnalyticsSolution
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.