Skip to main content

solutions

Creates, updates, deletes, gets or lists a solutions resource.

Overview

Namesolutions
TypeResource
Idazure.operations_management.solutions

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
contained_resourcestextfield from the properties object
locationtextResource location
plantextPlan for solution object supported by the OperationsManagement resource provider.
provisioning_statetextfield from the properties object
referenced_resourcestextfield from the properties object
resourceGroupNametextfield from the properties object
solutionNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags
typetextResource type.
workspace_resource_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, solutionName, subscriptionIdRetrieves the user solution.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdRetrieves the solution list. It will retrieve both first party and third party solutions
list_by_subscriptionSELECTsubscriptionIdRetrieves the solution list. It will retrieve both first party and third party solutions
create_or_updateINSERTresourceGroupName, solutionName, subscriptionIdCreates or updates the Solution.
deleteDELETEresourceGroupName, solutionName, subscriptionIdDeletes the solution in the subscription.
updateUPDATEresourceGroupName, solutionName, subscriptionIdPatch a Solution. Only updating tags supported.

SELECT examples

Retrieves the solution list. It will retrieve both first party and third party solutions

SELECT
id,
name,
contained_resources,
location,
plan,
provisioning_state,
referenced_resources,
resourceGroupName,
solutionName,
subscriptionId,
tags,
type,
workspace_resource_id
FROM azure.operations_management.vw_solutions
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new solutions resource.

/*+ create */
INSERT INTO azure.operations_management.solutions (
resourceGroupName,
solutionName,
subscriptionId,
location,
tags,
plan,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ solutionName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ tags }}',
'{{ plan }}',
'{{ properties }}'
;

UPDATE example

Updates a solutions resource.

/*+ update */
UPDATE azure.operations_management.solutions
SET
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND solutionName = '{{ solutionName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified solutions resource.

/*+ delete */
DELETE FROM azure.operations_management.solutions
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND solutionName = '{{ solutionName }}'
AND subscriptionId = '{{ subscriptionId }}';