solutions
Creates, updates, deletes, gets or lists a solutions resource.
Overview
| Name | solutions |
| Type | Resource |
| Id | azure.operations_management.solutions |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_resource_group
- list_by_subscription
| Name | Datatype | Description |
|---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
containedResources | array | The azure resources that will be contained within the solutions. They will be locked and gets deleted automatically when the solution is deleted. |
location | string | Resource location. |
plan | object | Plan for solution object supported by the OperationsManagement resource provider. |
provisioningState | string | The provisioning state for the solution. |
referencedResources | array | The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution. |
tags | object | Resource tags. |
type | string | Resource type. |
workspaceResourceId | string | The azure resourceId for the workspace where the solution will be deployed/enabled. Required. |
| Name | Datatype | Description |
|---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
containedResources | array | The azure resources that will be contained within the solutions. They will be locked and gets deleted automatically when the solution is deleted. |
location | string | Resource location. |
plan | object | Plan for solution object supported by the OperationsManagement resource provider. |
provisioningState | string | The provisioning state for the solution. |
referencedResources | array | The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution. |
tags | object | Resource tags. |
type | string | Resource type. |
workspaceResourceId | string | The azure resourceId for the workspace where the solution will be deployed/enabled. Required. |
| Name | Datatype | Description |
|---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
containedResources | array | The azure resources that will be contained within the solutions. They will be locked and gets deleted automatically when the solution is deleted. |
location | string | Resource location. |
plan | object | Plan for solution object supported by the OperationsManagement resource provider. |
provisioningState | string | The provisioning state for the solution. |
referencedResources | array | The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution. |
tags | object | Resource tags. |
type | string | Resource type. |
workspaceResourceId | string | The azure resourceId for the workspace where the solution will be deployed/enabled. Required. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, solution_name, subscription_id | Retrieve solution. Retrieves the user solution. | |
list_by_resource_group | select | resource_group_name, subscription_id | Retrieves the solution list for the subscription. Retrieves the solution list. It will retrieve both first party and third party solutions. | |
list_by_subscription | select | subscription_id | Retrieves the solution list for the subscription. Retrieves the solution list. It will retrieve both first party and third party solutions. | |
create_or_update | insert | resource_group_name, solution_name, subscription_id | Create/Update Solution. Creates or updates the Solution. | |
update | update | resource_group_name, solution_name, subscription_id | Patch a Solution. Patch a Solution. Only updating tags supported. | |
create_or_update | replace | resource_group_name, solution_name, subscription_id | Create/Update Solution. Creates or updates the Solution. | |
delete | delete | resource_group_name, solution_name, subscription_id | Deletes the solution. Deletes the solution in the subscription. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
resource_group_name | string | The name of the resource group to get. The name is case insensitive. Required. |
solution_name | string | User Solution Name. Required. |
subscription_id | string |
SELECT examples
- get
- list_by_resource_group
- list_by_subscription
Retrieve solution. Retrieves the user solution.
SELECT
id,
name,
containedResources,
location,
plan,
provisioningState,
referencedResources,
tags,
type,
workspaceResourceId
FROM azure.operations_management.solutions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND solution_name = '{{ solution_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Retrieves the solution list for the subscription. Retrieves the solution list. It will retrieve both first party and third party solutions.
SELECT
id,
name,
containedResources,
location,
plan,
provisioningState,
referencedResources,
tags,
type,
workspaceResourceId
FROM azure.operations_management.solutions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Retrieves the solution list for the subscription. Retrieves the solution list. It will retrieve both first party and third party solutions.
SELECT
id,
name,
containedResources,
location,
plan,
provisioningState,
referencedResources,
tags,
type,
workspaceResourceId
FROM azure.operations_management.solutions
WHERE subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create_or_update
- Manifest
Create/Update Solution. Creates or updates the Solution.
INSERT INTO azure.operations_management.solutions (
location,
tags,
plan,
properties,
resource_group_name,
solution_name,
subscription_id
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ plan }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ solution_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
plan,
properties,
tags,
type
;
# Description fields are for documentation purposes
- name: solutions
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the solutions resource.
- name: solution_name
value: "{{ solution_name }}"
description: Required parameter for the solutions resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the solutions resource.
- name: location
value: "{{ location }}"
description: |
Resource location.
- name: tags
value: "{{ tags }}"
description: |
Resource tags.
- name: plan
description: |
Plan for solution object supported by the OperationsManagement resource provider.
value:
name: "{{ name }}"
publisher: "{{ publisher }}"
promotionCode: "{{ promotionCode }}"
product: "{{ product }}"
- name: properties
description: |
Properties for solution object supported by the OperationsManagement resource provider.
value:
workspaceResourceId: "{{ workspaceResourceId }}"
provisioningState: "{{ provisioningState }}"
containedResources:
- "{{ containedResources }}"
referencedResources:
- "{{ referencedResources }}"
UPDATE examples
- update
Patch a Solution. Patch a Solution. Only updating tags supported.
UPDATE azure.operations_management.solutions
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND solution_name = '{{ solution_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
plan,
properties,
tags,
type;
REPLACE examples
- create_or_update
Create/Update Solution. Creates or updates the Solution.
REPLACE azure.operations_management.solutions
SET
location = '{{ location }}',
tags = '{{ tags }}',
plan = '{{ plan }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND solution_name = '{{ solution_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
plan,
properties,
tags,
type;
DELETE examples
- delete
Deletes the solution. Deletes the solution in the subscription.
DELETE FROM azure.operations_management.solutions
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND solution_name = '{{ solution_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;