Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

Solution

The container for solution.

Example Usage

SolutionCreate

using Pulumi;
using AzureNextGen = Pulumi.AzureNextGen;

class MyStack : Stack
{
    public MyStack()
    {
        var solution = new AzureNextGen.OperationsManagement.V20151101Preview.Solution("solution", new AzureNextGen.OperationsManagement.V20151101Preview.SolutionArgs
        {
            Location = "East US",
            Plan = new AzureNextGen.OperationsManagement.V20151101Preview.Inputs.SolutionPlanArgs
            {
                Name = "name1",
                Product = "product1",
                PromotionCode = "promocode1",
                Publisher = "publisher1",
            },
            Properties = new AzureNextGen.OperationsManagement.V20151101Preview.Inputs.SolutionPropertiesArgs
            {
                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",
            },
            ResourceGroupName = "rg1",
            SolutionName = "solution1",
        });
    }

}
package main

import (
    operationsmanagement "github.com/pulumi/pulumi-azure-nextgen/sdk/go/azure/operationsmanagement/v20151101preview"
    "github.com/pulumi/pulumi/sdk/v2/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
    })
}
import pulumi
import pulumi_azure_nextgen as azure_nextgen

solution = azure_nextgen.operationsmanagement.v20151101preview.Solution("solution",
    location="East US",
    plan=azure_nextgen.operationsmanagement.v20151101preview.SolutionPlanArgs(
        name="name1",
        product="product1",
        promotion_code="promocode1",
        publisher="publisher1",
    ),
    properties=azure_nextgen.operationsmanagement.v20151101preview.SolutionPropertiesArgs(
        contained_resources=[
            "/subscriptions/sub2/resourceGroups/rg2/providers/provider1/resources/resource1",
            "/subscriptions/sub2/resourceGroups/rg2/providers/provider2/resources/resource2",
        ],
        referenced_resources=[
            "/subscriptions/sub2/resourceGroups/rg2/providers/provider1/resources/resource2",
            "/subscriptions/sub2/resourceGroups/rg2/providers/provider2/resources/resource3",
        ],
        workspace_resource_id="/subscriptions/sub2/resourceGroups/rg2/providers/Microsoft.OperationalInsights/workspaces/ws1",
    ),
    resource_group_name="rg1",
    solution_name="solution1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_nextgen from "@pulumi/azure-nextgen";

const solution = new azure_nextgen.operationsmanagement.v20151101preview.Solution("solution", {
    location: "East US",
    plan: {
        name: "name1",
        product: "product1",
        promotionCode: "promocode1",
        publisher: "publisher1",
    },
    properties: {
        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",
    },
    resourceGroupName: "rg1",
    solutionName: "solution1",
});

Create a Solution Resource

new Solution(name: string, args: SolutionArgs, opts?: CustomResourceOptions);
def Solution(resource_name: str, opts: Optional[ResourceOptions] = None, location: Optional[str] = None, plan: Optional[SolutionPlanArgs] = None, properties: Optional[SolutionPropertiesArgs] = None, resource_group_name: Optional[str] = None, solution_name: Optional[str] = None, tags: Optional[Mapping[str, str]] = None)
func NewSolution(ctx *Context, name string, args SolutionArgs, opts ...ResourceOption) (*Solution, error)
public Solution(string name, SolutionArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args SolutionArgs
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 SolutionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args SolutionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Solution Resource Properties

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

Inputs

The Solution resource accepts the following input properties:

ResourceGroupName string
The name of the resource group to get. The name is case insensitive.
SolutionName string
User Solution Name.
Location string
Resource location
Plan Pulumi.AzureNextGen.OperationsManagement.Inputs.SolutionPlanArgs
Plan for solution object supported by the OperationsManagement resource provider.
Properties Pulumi.AzureNextGen.OperationsManagement.Inputs.SolutionPropertiesArgs
Properties for solution object supported by the OperationsManagement resource provider.
Tags Dictionary<string, string>
Resource tags
ResourceGroupName string
The name of the resource group to get. The name is case insensitive.
SolutionName string
User Solution Name.
Location string
Resource location
Plan SolutionPlan
Plan for solution object supported by the OperationsManagement resource provider.
Properties SolutionProperties
Properties for solution object supported by the OperationsManagement resource provider.
Tags map[string]string
Resource tags
resourceGroupName string
The name of the resource group to get. The name is case insensitive.
solutionName string
User Solution Name.
location string
Resource location
plan SolutionPlan
Plan for solution object supported by the OperationsManagement resource provider.
properties SolutionProperties
Properties for solution object supported by the OperationsManagement resource provider.
tags {[key: string]: string}
Resource tags
resource_group_name str
The name of the resource group to get. The name is case insensitive.
solution_name str
User Solution Name.
location str
Resource location
plan SolutionPlanArgs
Plan for solution object supported by the OperationsManagement resource provider.
properties SolutionPropertiesArgs
Properties for solution object supported by the OperationsManagement resource provider.
tags Mapping[str, str]
Resource tags

Outputs

All input properties are implicitly available as output properties. Additionally, the Solution resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name.
Type string
Resource type.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name.
Type string
Resource type.
id string
The provider-assigned unique ID for this managed resource.
name string
Resource name.
type string
Resource type.
id str
The provider-assigned unique ID for this managed resource.
name str
Resource name.
type str
Resource type.

Supporting Types

SolutionPlan

Name string
name of the solution to be created. For Microsoft published solution it should be in the format of solutionType(workspaceName). SolutionType part is case sensitive. For third party solution, it can be anything.
Product string
name of the solution to enabled/add. For Microsoft published gallery solution it should be in the format of OMSGallery/. This is case sensitive
PromotionCode string
promotionCode, Not really used now, can you left as empty
Publisher string
Publisher name. For gallery solution, it is Microsoft.
Name string
name of the solution to be created. For Microsoft published solution it should be in the format of solutionType(workspaceName). SolutionType part is case sensitive. For third party solution, it can be anything.
Product string
name of the solution to enabled/add. For Microsoft published gallery solution it should be in the format of OMSGallery/. This is case sensitive
PromotionCode string
promotionCode, Not really used now, can you left as empty
Publisher string
Publisher name. For gallery solution, it is Microsoft.
name string
name of the solution to be created. For Microsoft published solution it should be in the format of solutionType(workspaceName). SolutionType part is case sensitive. For third party solution, it can be anything.
product string
name of the solution to enabled/add. For Microsoft published gallery solution it should be in the format of OMSGallery/. This is case sensitive
promotionCode string
promotionCode, Not really used now, can you left as empty
publisher string
Publisher name. For gallery solution, it is Microsoft.
name str
name of the solution to be created. For Microsoft published solution it should be in the format of solutionType(workspaceName). SolutionType part is case sensitive. For third party solution, it can be anything.
product str
name of the solution to enabled/add. For Microsoft published gallery solution it should be in the format of OMSGallery/. This is case sensitive
promotion_code str
promotionCode, Not really used now, can you left as empty
publisher str
Publisher name. For gallery solution, it is Microsoft.

SolutionPlanResponse

Name string
name of the solution to be created. For Microsoft published solution it should be in the format of solutionType(workspaceName). SolutionType part is case sensitive. For third party solution, it can be anything.
Product string
name of the solution to enabled/add. For Microsoft published gallery solution it should be in the format of OMSGallery/. This is case sensitive
PromotionCode string
promotionCode, Not really used now, can you left as empty
Publisher string
Publisher name. For gallery solution, it is Microsoft.
Name string
name of the solution to be created. For Microsoft published solution it should be in the format of solutionType(workspaceName). SolutionType part is case sensitive. For third party solution, it can be anything.
Product string
name of the solution to enabled/add. For Microsoft published gallery solution it should be in the format of OMSGallery/. This is case sensitive
PromotionCode string
promotionCode, Not really used now, can you left as empty
Publisher string
Publisher name. For gallery solution, it is Microsoft.
name string
name of the solution to be created. For Microsoft published solution it should be in the format of solutionType(workspaceName). SolutionType part is case sensitive. For third party solution, it can be anything.
product string
name of the solution to enabled/add. For Microsoft published gallery solution it should be in the format of OMSGallery/. This is case sensitive
promotionCode string
promotionCode, Not really used now, can you left as empty
publisher string
Publisher name. For gallery solution, it is Microsoft.
name str
name of the solution to be created. For Microsoft published solution it should be in the format of solutionType(workspaceName). SolutionType part is case sensitive. For third party solution, it can be anything.
product str
name of the solution to enabled/add. For Microsoft published gallery solution it should be in the format of OMSGallery/. This is case sensitive
promotion_code str
promotionCode, Not really used now, can you left as empty
publisher str
Publisher name. For gallery solution, it is Microsoft.

SolutionProperties

WorkspaceResourceId string
The azure resourceId for the workspace where the solution will be deployed/enabled.
ContainedResources List<string>
The azure resources that will be contained within the solutions. They will be locked and gets deleted automatically when the solution is deleted.
ReferencedResources List<string>
The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.
WorkspaceResourceId string
The azure resourceId for the workspace where the solution will be deployed/enabled.
ContainedResources []string
The azure resources that will be contained within the solutions. They will be locked and gets deleted automatically when the solution is deleted.
ReferencedResources []string
The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.
workspaceResourceId string
The azure resourceId for the workspace where the solution will be deployed/enabled.
containedResources string[]
The azure resources that will be contained within the solutions. They will be locked and gets deleted automatically when the solution is deleted.
referencedResources string[]
The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.
workspace_resource_id str
The azure resourceId for the workspace where the solution will be deployed/enabled.
contained_resources Sequence[str]
The azure resources that will be contained within the solutions. They will be locked and gets deleted automatically when the solution is deleted.
referenced_resources Sequence[str]
The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.

SolutionPropertiesResponse

ProvisioningState string
The provisioning state for the solution.
WorkspaceResourceId string
The azure resourceId for the workspace where the solution will be deployed/enabled.
ContainedResources List<string>
The azure resources that will be contained within the solutions. They will be locked and gets deleted automatically when the solution is deleted.
ReferencedResources List<string>
The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.
ProvisioningState string
The provisioning state for the solution.
WorkspaceResourceId string
The azure resourceId for the workspace where the solution will be deployed/enabled.
ContainedResources []string
The azure resources that will be contained within the solutions. They will be locked and gets deleted automatically when the solution is deleted.
ReferencedResources []string
The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.
provisioningState string
The provisioning state for the solution.
workspaceResourceId string
The azure resourceId for the workspace where the solution will be deployed/enabled.
containedResources string[]
The azure resources that will be contained within the solutions. They will be locked and gets deleted automatically when the solution is deleted.
referencedResources string[]
The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.
provisioning_state str
The provisioning state for the solution.
workspace_resource_id str
The azure resourceId for the workspace where the solution will be deployed/enabled.
contained_resources Sequence[str]
The azure resources that will be contained within the solutions. They will be locked and gets deleted automatically when the solution is deleted.
referenced_resources Sequence[str]
The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.

Import

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

$ pulumi import azure-nextgen:operationsmanagement/v20151101preview:Solution solution1 subscriptions/subid/resourcegroups/rg1/providers/Microsoft.OperationsManagement/solutions/solution1 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-nextgen
License
Apache-2.0