Skip to main content

solution

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

Overview

Namesolution
TypeResource
Idazure_extras.self_help.solution

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
namestringThe name of the resource.
contentstringThe HTML content that needs to be rendered and shown to customer.
parametersobjectClient input parameters to run Solution.
provisioningStatestringStatus of solution provisioning. Known values are: "Succeeded", "PartialComplete", "Failed", "Running", and "Canceled".
replacementMapsobjectSolution replacement maps.
sectionsarrayList of section object.
solutionIdstringSolution Id to identify single solution.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
titlestringThe title.
triggerCriteriaarraySolution request trigger criteria.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectscope, solution_resource_nameGet the solution using the applicable solutionResourceName while creating the solution.
createinsertscope, solution_resource_nameCreates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. Azure solutions comprise a comprehensive library of self-help resources that have been thoughtfully curated by Azure engineers to aid customers in resolving typical troubleshooting issues. These solutions encompass: (1.) Dynamic and context-aware diagnostics, guided troubleshooting wizards, and data visualizations. (2.) Rich instructional video tutorials and illustrative diagrams and images. (3.) Thoughtfully assembled textual troubleshooting instructions. All these components are seamlessly converged into unified solutions tailored to address a specific support problem area.
updateupdatescope, solution_resource_nameUpdate the requiredInputs or additional information needed to execute the solution.
warm_upexecscope, solution_resource_nameWarm up the solution resource by preloading asynchronous diagnostics results into cache.

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.

NameDatatypeDescription
scopestringscope = resourceUri of affected resource. For example: /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read. Required.
solution_resource_namestringSolution resource Name. Required.

SELECT examples

Get the solution using the applicable solutionResourceName while creating the solution.

SELECT
id,
name,
content,
parameters,
provisioningState,
replacementMaps,
sections,
solutionId,
systemData,
title,
triggerCriteria,
type
FROM azure_extras.self_help.solution
WHERE scope = '{{ scope }}' -- required
AND solution_resource_name = '{{ solution_resource_name }}' -- required
;

INSERT examples

Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and requiredInputs’ from discovery solutions. Azure solutions comprise a comprehensive library of self-help resources that have been thoughtfully curated by Azure engineers to aid customers in resolving typical troubleshooting issues. These solutions encompass: (1.) Dynamic and context-aware diagnostics, guided troubleshooting wizards, and data visualizations. (2.) Rich instructional video tutorials and illustrative diagrams and images. (3.) Thoughtfully assembled textual troubleshooting instructions. All these components are seamlessly converged into unified solutions tailored to address a specific support problem area.

INSERT INTO azure_extras.self_help.solution (
properties,
scope,
solution_resource_name
)
SELECT
'{{ properties }}',
'{{ scope }}',
'{{ solution_resource_name }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Update the requiredInputs or additional information needed to execute the solution.

UPDATE azure_extras.self_help.solution
SET
properties = '{{ properties }}'
WHERE
scope = '{{ scope }}' --required
AND solution_resource_name = '{{ solution_resource_name }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

Lifecycle Methods

Warm up the solution resource by preloading asynchronous diagnostics results into cache.

EXEC azure_extras.self_help.solution.warm_up 
@scope='{{ scope }}' --required,
@solution_resource_name='{{ solution_resource_name }}' --required
@@json=
'{
"parameters": "{{ parameters }}"
}'
;