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",
},
});
}
}
Inherited Members
Namespace: Pulumi.Azure.OperationalInsights
Assembly: Pulumi.Azure.dll
Syntax
public class AnalyticsSolution : CustomResource
Constructors
View SourceAnalyticsSolution(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 SourceLocation
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> |
Plan
A plan block as documented below.
Declaration
public Output<AnalyticsSolutionPlan> Plan { get; }
Property Value
| Type | Description |
|---|---|
| Output<AnalyticsSolutionPlan> |
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> |
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> |
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> |
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 SourceGet(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 |