SolutionArgs

data class SolutionArgs(val location: Output<String>? = null, val plan: Output<SolutionPlanArgs>? = null, val properties: Output<SolutionPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val solutionName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<SolutionArgs>

The container for solution. Uses Azure REST API version 2015-11-01-preview. In version 2.x of the Azure Native provider, it used API version 2015-11-01-preview.

Example Usage

SolutionCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var solution = new AzureNative.OperationsManagement.Solution("solution", new()
{
Location = "East US",
Plan = new AzureNative.OperationsManagement.Inputs.SolutionPlanArgs
{
Name = "name1",
Product = "product1",
PromotionCode = "promocode1",
Publisher = "publisher1",
},
Properties = new AzureNative.OperationsManagement.Inputs.SolutionPropertiesArgs
{
ContainedResources = new[]
{
"/subscriptions/sub2/resourceGroups/rg2/providers/provider1/resources/resource1",
"/subscriptions/sub2/resourceGroups/rg2/providers/provider2/resources/resource2",
},
ReferencedResources = new[]
{
"/subscriptions/sub2/resourceGroups/rg2/providers/provider1/resources/resource2",
"/subscriptions/sub2/resourceGroups/rg2/providers/provider2/resources/resource3",
},
WorkspaceResourceId = "/subscriptions/sub2/resourceGroups/rg2/providers/Microsoft.OperationalInsights/workspaces/ws1",
},
ResourceGroupName = "rg1",
SolutionName = "solution1",
});
});
package main
import (
operationsmanagement "github.com/pulumi/pulumi-azure-native-sdk/operationsmanagement/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := operationsmanagement.NewSolution(ctx, "solution", &operationsmanagement.SolutionArgs{
Location: pulumi.String("East US"),
Plan: &operationsmanagement.SolutionPlanArgs{
Name: pulumi.String("name1"),
Product: pulumi.String("product1"),
PromotionCode: pulumi.String("promocode1"),
Publisher: pulumi.String("publisher1"),
},
Properties: &operationsmanagement.SolutionPropertiesArgs{
ContainedResources: pulumi.StringArray{
pulumi.String("/subscriptions/sub2/resourceGroups/rg2/providers/provider1/resources/resource1"),
pulumi.String("/subscriptions/sub2/resourceGroups/rg2/providers/provider2/resources/resource2"),
},
ReferencedResources: pulumi.StringArray{
pulumi.String("/subscriptions/sub2/resourceGroups/rg2/providers/provider1/resources/resource2"),
pulumi.String("/subscriptions/sub2/resourceGroups/rg2/providers/provider2/resources/resource3"),
},
WorkspaceResourceId: pulumi.String("/subscriptions/sub2/resourceGroups/rg2/providers/Microsoft.OperationalInsights/workspaces/ws1"),
},
ResourceGroupName: pulumi.String("rg1"),
SolutionName: pulumi.String("solution1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.operationsmanagement.Solution;
import com.pulumi.azurenative.operationsmanagement.SolutionArgs;
import com.pulumi.azurenative.operationsmanagement.inputs.SolutionPlanArgs;
import com.pulumi.azurenative.operationsmanagement.inputs.SolutionPropertiesArgs;
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 solution = new Solution("solution", SolutionArgs.builder()
.location("East US")
.plan(SolutionPlanArgs.builder()
.name("name1")
.product("product1")
.promotionCode("promocode1")
.publisher("publisher1")
.build())
.properties(SolutionPropertiesArgs.builder()
.containedResources(
"/subscriptions/sub2/resourceGroups/rg2/providers/provider1/resources/resource1",
"/subscriptions/sub2/resourceGroups/rg2/providers/provider2/resources/resource2")
.referencedResources(
"/subscriptions/sub2/resourceGroups/rg2/providers/provider1/resources/resource2",
"/subscriptions/sub2/resourceGroups/rg2/providers/provider2/resources/resource3")
.workspaceResourceId("/subscriptions/sub2/resourceGroups/rg2/providers/Microsoft.OperationalInsights/workspaces/ws1")
.build())
.resourceGroupName("rg1")
.solutionName("solution1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:operationsmanagement:Solution solution1 /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationsManagement/solutions/{solutionName}

Constructors

Link copied to clipboard
constructor(location: Output<String>? = null, plan: Output<SolutionPlanArgs>? = null, properties: Output<SolutionPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, solutionName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val location: Output<String>? = null

Resource location

Link copied to clipboard
val plan: Output<SolutionPlanArgs>? = null

Plan for solution object supported by the OperationsManagement resource provider.

Link copied to clipboard
val properties: Output<SolutionPropertiesArgs>? = null

Properties for solution object supported by the OperationsManagement resource provider.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group to get. The name is case insensitive.

Link copied to clipboard
val solutionName: Output<String>? = null

User Solution Name.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags

Functions

Link copied to clipboard
open override fun toJava(): SolutionArgs