Azure Native

v1.88.1 published on Thursday, Dec 1, 2022 by Pulumi

Solution

The container for solution. API Version: 2015-11-01-preview.

Example Usage

SolutionCreate

using System.Collections.Generic;
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/go/azure/operationsmanagement"
	"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.SolutionPropertiesResponse{
				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 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(Map.ofEntries(
                Map.entry("name", "name1"),
                Map.entry("product", "product1"),
                Map.entry("promotionCode", "promocode1"),
                Map.entry("publisher", "publisher1")
            ))
            .properties(Map.ofEntries(
                Map.entry("containedResources",                 
                    "/subscriptions/sub2/resourceGroups/rg2/providers/provider1/resources/resource1",
                    "/subscriptions/sub2/resourceGroups/rg2/providers/provider2/resources/resource2"),
                Map.entry("referencedResources",                 
                    "/subscriptions/sub2/resourceGroups/rg2/providers/provider1/resources/resource2",
                    "/subscriptions/sub2/resourceGroups/rg2/providers/provider2/resources/resource3"),
                Map.entry("workspaceResourceId", "/subscriptions/sub2/resourceGroups/rg2/providers/Microsoft.OperationalInsights/workspaces/ws1")
            ))
            .resourceGroupName("rg1")
            .solutionName("solution1")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

solution = azure_native.operationsmanagement.Solution("solution",
    location="East US",
    plan=azure_native.operationsmanagement.SolutionPlanArgs(
        name="name1",
        product="product1",
        promotion_code="promocode1",
        publisher="publisher1",
    ),
    properties=azure_native.operationsmanagement.SolutionPropertiesResponseArgs(
        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_native from "@pulumi/azure-native";

const solution = new azure_native.operationsmanagement.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",
});
resources:
  solution:
    type: azure-native:operationsmanagement:Solution
    properties:
      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 Solution Resource

new Solution(name: string, args: SolutionArgs, opts?: CustomResourceOptions);
@overload
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)
@overload
def Solution(resource_name: str,
             args: SolutionArgs,
             opts: Optional[ResourceOptions] = None)
func NewSolution(ctx *Context, name string, args SolutionArgs, opts ...ResourceOption) (*Solution, error)
public Solution(string name, SolutionArgs args, CustomResourceOptions? opts = null)
public Solution(String name, SolutionArgs args)
public Solution(String name, SolutionArgs args, CustomResourceOptions options)
type: azure-native:operationsmanagement:Solution
properties: # The arguments to resource properties.
options: # 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.
resource_name str
The unique name of the resource.
args SolutionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control 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.
name String
The unique name of the resource.
args SolutionArgs
The arguments to resource properties.
options 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 Architecture and Concepts 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.

Location string

Resource location

Plan Pulumi.AzureNative.OperationsManagement.Inputs.SolutionPlanArgs

Plan for solution object supported by the OperationsManagement resource provider.

Properties Pulumi.AzureNative.OperationsManagement.Inputs.SolutionPropertiesArgs

Properties for solution object supported by the OperationsManagement resource provider.

SolutionName string

User Solution Name.

Tags Dictionary<string, string>

Resource tags

ResourceGroupName string

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

Location string

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.

SolutionName string

User Solution Name.

Tags map[string]string

Resource tags

resourceGroupName String

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

location String

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.

solutionName String

User Solution Name.

tags Map<String,String>

Resource tags

resourceGroupName string

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

location string

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.

solutionName string

User Solution Name.

tags {[key: string]: string}

Resource tags

resource_group_name str

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

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.

solution_name str

User Solution Name.

tags Mapping[str, str]

Resource tags

resourceGroupName String

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

location String

Resource location

plan Property Map

Plan for solution object supported by the OperationsManagement resource provider.

properties Property Map

Properties for solution object supported by the OperationsManagement resource provider.

solutionName String

User Solution Name.

tags Map<String>

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 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.

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name.

type String

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 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.

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.

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 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.

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.

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 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.

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.

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.

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 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.

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.

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.

Import

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

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

Package Details

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