Solution

class Solution : KotlinCustomResource

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}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

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

Resource location

Link copied to clipboard
val name: Output<String>

Resource name.

Link copied to clipboard

Plan for solution object supported by the OperationsManagement resource provider.

Link copied to clipboard

Properties for solution object supported by the OperationsManagement resource provider.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags

Link copied to clipboard
val type: Output<String>

Resource type.

Link copied to clipboard
val urn: Output<String>