azure-native.operationsmanagement.Solution
Explore with Pulumi AI
The container for solution. 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"
"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 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.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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Solution(name: string, args: SolutionArgs, opts?: CustomResourceOptions);
@overload
def Solution(resource_name: str,
args: SolutionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Solution(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
location: Optional[str] = None,
plan: Optional[SolutionPlanArgs] = None,
properties: Optional[SolutionPropertiesArgs] = 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)
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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var azure_nativeSolutionResource = new AzureNative.Operationsmanagement.Solution("azure-nativeSolutionResource", new()
{
ResourceGroupName = "string",
Location = "string",
Plan =
{
{ "name", "string" },
{ "product", "string" },
{ "promotionCode", "string" },
{ "publisher", "string" },
},
Properties =
{
{ "workspaceResourceId", "string" },
{ "containedResources", new[]
{
"string",
} },
{ "referencedResources", new[]
{
"string",
} },
},
SolutionName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := operationsmanagement.NewSolution(ctx, "azure-nativeSolutionResource", &operationsmanagement.SolutionArgs{
ResourceGroupName: "string",
Location: "string",
Plan: map[string]interface{}{
"name": "string",
"product": "string",
"promotionCode": "string",
"publisher": "string",
},
Properties: map[string]interface{}{
"workspaceResourceId": "string",
"containedResources": []string{
"string",
},
"referencedResources": []string{
"string",
},
},
SolutionName: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var azure_nativeSolutionResource = new Solution("azure-nativeSolutionResource", SolutionArgs.builder()
.resourceGroupName("string")
.location("string")
.plan(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.solutionName("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
azure_native_solution_resource = azure_native.operationsmanagement.Solution("azure-nativeSolutionResource",
resource_group_name=string,
location=string,
plan={
name: string,
product: string,
promotionCode: string,
publisher: string,
},
properties={
workspaceResourceId: string,
containedResources: [string],
referencedResources: [string],
},
solution_name=string,
tags={
string: string,
})
const azure_nativeSolutionResource = new azure_native.operationsmanagement.Solution("azure-nativeSolutionResource", {
resourceGroupName: "string",
location: "string",
plan: {
name: "string",
product: "string",
promotionCode: "string",
publisher: "string",
},
properties: {
workspaceResourceId: "string",
containedResources: ["string"],
referencedResources: ["string"],
},
solutionName: "string",
tags: {
string: "string",
},
});
type: azure-native:operationsmanagement:Solution
properties:
location: string
plan:
name: string
product: string
promotionCode: string
publisher: string
properties:
containedResources:
- string
referencedResources:
- string
workspaceResourceId: string
resourceGroupName: string
solutionName: string
tags:
string: string
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:
- Resource
Group stringName - The name of the resource group to get. The name is case insensitive.
- Location string
- Resource location
- Plan
Pulumi.
Azure Native. Operations Management. Inputs. Solution Plan - Plan for solution object supported by the OperationsManagement resource provider.
- Properties
Pulumi.
Azure Native. Operations Management. Inputs. Solution Properties - Properties for solution object supported by the OperationsManagement resource provider.
- Solution
Name string - User Solution Name.
- Dictionary<string, string>
- Resource tags
- Resource
Group stringName - The name of the resource group to get. The name is case insensitive.
- Location string
- Resource location
- Plan
Solution
Plan Args - Plan for solution object supported by the OperationsManagement resource provider.
- Properties
Solution
Properties Args - Properties for solution object supported by the OperationsManagement resource provider.
- Solution
Name string - User Solution Name.
- map[string]string
- Resource tags
- resource
Group StringName - The name of the resource group to get. The name is case insensitive.
- location String
- Resource location
- plan
Solution
Plan - Plan for solution object supported by the OperationsManagement resource provider.
- properties
Solution
Properties - Properties for solution object supported by the OperationsManagement resource provider.
- solution
Name String - User Solution Name.
- Map<String,String>
- Resource tags
- resource
Group stringName - The name of the resource group to get. The name is case insensitive.
- location string
- Resource location
- plan
Solution
Plan - Plan for solution object supported by the OperationsManagement resource provider.
- properties
Solution
Properties - Properties for solution object supported by the OperationsManagement resource provider.
- solution
Name string - User Solution Name.
- {[key: string]: string}
- Resource tags
- resource_
group_ strname - The name of the resource group to get. The name is case insensitive.
- location str
- Resource location
- plan
Solution
Plan Args - Plan for solution object supported by the OperationsManagement resource provider.
- properties
Solution
Properties Args - Properties for solution object supported by the OperationsManagement resource provider.
- solution_
name str - User Solution Name.
- Mapping[str, str]
- Resource tags
- resource
Group StringName - 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.
- solution
Name String - User Solution Name.
- Map<String>
- Resource tags
Outputs
All input properties are implicitly available as output properties. Additionally, the Solution resource produces the following output properties:
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
- Promotion
Code 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
- Promotion
Code 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
- promotion
Code 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
- promotion
Code 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
- promotion
Code 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
- Promotion
Code 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
- Promotion
Code 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
- promotion
Code 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
- promotion
Code 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
- promotion
Code String - promotionCode, Not really used now, can you left as empty
- publisher String
- Publisher name. For gallery solution, it is Microsoft.
SolutionProperties, SolutionPropertiesArgs
- Workspace
Resource stringId - The azure resourceId for the workspace where the solution will be deployed/enabled.
- Contained
Resources 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.
- Referenced
Resources List<string> - The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.
- Workspace
Resource stringId - The azure resourceId for the workspace where the solution will be deployed/enabled.
- Contained
Resources []string - 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 []string - The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.
- workspace
Resource StringId - The azure resourceId for the workspace where the solution will be deployed/enabled.
- contained
Resources 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.
- referenced
Resources List<String> - The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.
- workspace
Resource stringId - The azure resourceId for the workspace where the solution will be deployed/enabled.
- contained
Resources string[] - 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 string[] - The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.
- workspace_
resource_ strid - 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.
- workspace
Resource StringId - The azure resourceId for the workspace where the solution will be deployed/enabled.
- contained
Resources 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.
- referenced
Resources 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
- Provisioning
State string - The provisioning state for the solution.
- Workspace
Resource stringId - The azure resourceId for the workspace where the solution will be deployed/enabled.
- Contained
Resources 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.
- Referenced
Resources List<string> - The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.
- Provisioning
State string - The provisioning state for the solution.
- Workspace
Resource stringId - The azure resourceId for the workspace where the solution will be deployed/enabled.
- Contained
Resources []string - 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 []string - The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.
- provisioning
State String - The provisioning state for the solution.
- workspace
Resource StringId - The azure resourceId for the workspace where the solution will be deployed/enabled.
- contained
Resources 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.
- referenced
Resources List<String> - The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.
- provisioning
State string - The provisioning state for the solution.
- workspace
Resource stringId - The azure resourceId for the workspace where the solution will be deployed/enabled.
- contained
Resources string[] - 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 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_ strid - 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.
- provisioning
State String - The provisioning state for the solution.
- workspace
Resource StringId - The azure resourceId for the workspace where the solution will be deployed/enabled.
- contained
Resources 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.
- referenced
Resources 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0