1. Packages
  2. Azure Native
  3. API Docs
  4. operationsmanagement
  5. Solution
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

azure-native.operationsmanagement.Solution

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

    The container for solution. Azure REST API version: 2015-11-01-preview. Prior API version in Azure Native 1.x: 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 (
    	"github.com/pulumi/pulumi-azure-native-sdk/operationsmanagement/v2"
    	"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 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.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_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.SolutionPlan
    Plan for solution object supported by the OperationsManagement resource provider.
    Properties Pulumi.AzureNative.OperationsManagement.Inputs.SolutionProperties
    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 SolutionPlan
    Plan for solution object supported by the OperationsManagement resource provider.
    properties SolutionProperties
    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 SolutionPlan
    Plan for solution object supported by the OperationsManagement resource provider.
    properties SolutionProperties
    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, SolutionPlanArgs

    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, SolutionPlanResponseArgs

    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, SolutionPropertiesArgs

    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, SolutionPropertiesResponseArgs

    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/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationsManagement/solutions/{solutionName} 
    

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi