---
title: "Create/Update Solution."
method: PUT
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationsManagement/solutions/{solutionName}"
tags: ["Solution"]
---

# Create/Update Solution.

`PUT /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationsManagement/solutions/{solutionName}`

Creates or updates the Solution.

## Path parameters

- `subscriptionId` string, required
- `resourceGroupName` string, required
- `solutionName` string, required

## Query parameters

- `api-version` string, required

## Request body

- Solution — The container for solution.
  - `id` string — Resource ID.
  - `name` string — Resource name.
  - `type` string — Resource type.
  - `location` string — Resource location
  - `tags` object — Resource tags
  - `plan` SolutionPlan — Plan for solution object supported by the OperationsManagement resource provider.
    - `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.
    - `publisher` string — Publisher name. For gallery solution, it is Microsoft.
    - `promotionCode` string — promotionCode, Not really used now, can you left as empty
    - `product` string — name of the solution to enabled/add. For Microsoft published gallery solution it should be in the format of OMSGallery/<solutionType>. This is case sensitive
  - `properties` SolutionProperties — Solution properties supported by the OperationsManagement resource provider.
    - `workspaceResourceId` string, required — The azure resourceId for the workspace where the solution will be deployed/enabled.
    - `provisioningState` string — The provisioning state for the solution.
    - `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.

## Response `201`

Created response definition.

- Solution — The container for solution.
  - `id` string — Resource ID.
  - `name` string — Resource name.
  - `type` string — Resource type.
  - `location` string — Resource location
  - `tags` object — Resource tags
  - `plan` SolutionPlan — Plan for solution object supported by the OperationsManagement resource provider.
    - `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.
    - `publisher` string — Publisher name. For gallery solution, it is Microsoft.
    - `promotionCode` string — promotionCode, Not really used now, can you left as empty
    - `product` string — name of the solution to enabled/add. For Microsoft published gallery solution it should be in the format of OMSGallery/<solutionType>. This is case sensitive
  - `properties` SolutionProperties — Solution properties supported by the OperationsManagement resource provider.
    - `workspaceResourceId` string, required — The azure resourceId for the workspace where the solution will be deployed/enabled.
    - `provisioningState` string — The provisioning state for the solution.
    - `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.

## Other responses

- `default` — Error response definition.

## Changes

- **2018-06-15** (2015-11-01-preview) `0f33d618ec58` — 1 breaking, 1 info
  - removed the success response with the status `200`
  - added the success response with the status `201`

[Change history](https://skmtc.dev/azure/apis/azure-log-analytics-operations-management/changes/subscriptions/:subscriptionId/resourcegroups/:resourceGroupName/providers/Microsoft.OperationsManagement/solutions/:solutionName/put.md)

---

[API](https://skmtc.dev/azure/apis/azure-log-analytics-operations-management.md) · [All operations](https://skmtc.dev/azure/apis/azure-log-analytics-operations-management/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/azure-log-analytics-operations-management/revisions/3c5d7c96843e/schema)
