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:
- Resource
Group stringName - The name of the resource group to get. The name is case insensitive.
- Solution
Name string - User Solution Name.
- Location string
- Resource location
- Plan
Pulumi.
Azure Next Gen. Operations Management. Inputs. Solution Plan Args - Plan for solution object supported by the OperationsManagement resource provider.
- Properties
Pulumi.
Azure Next Gen. Operations Management. Inputs. Solution Properties Args - Properties for solution object supported by the OperationsManagement resource provider.
- Dictionary<string, string>
- Resource tags
- Resource
Group stringName - The name of the resource group to get. The name is case insensitive.
- Solution
Name string - User Solution Name.
- 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.
- map[string]string
- Resource tags
- resource
Group stringName - The name of the resource group to get. The name is case insensitive.
- solution
Name string - User Solution Name.
- 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.
- {[key: string]: string}
- Resource tags
- resource_
group_ strname - The name of the resource group to get. The name is case insensitive.
- solution_
name str - User Solution Name.
- 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.
- Mapping[str, str]
- Resource tags
Outputs
All input properties are implicitly available as output properties. Additionally, the Solution resource produces the following output properties:
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 - 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.
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 - 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.
SolutionProperties
- 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 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.
SolutionPropertiesResponse
- 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 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.
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