Skip to main content

get_recommendations

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

Overview

Nameget_recommendations
TypeResource
Idazure.security_insight.get_recommendations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
additionalPropertiesobjectCollection of additional properties for the recommendation.
creationTimeUtcstring (date-time)The time stamp (UTC) when the recommendation was created. Required.
descriptionstringDescription of the recommendation. Required.
etagstringEtag of the azure resource.
lastEvaluatedTimeUtcstring (date-time)The time stamp (UTC) when the recommendation was last evaluated. Required.
lastModifiedTimeUtcstring (date-time)The time stamp (UTC) when the recommendation was last modified. Required.
recommendationTypeIdstringId of the recommendation type. Required.
resourceIdstringId of the resource this recommendation refers to.
statestringState of the recommendation. Required. Known values are: "Active", "InProgress", "Dismissed", "CompletedByUser", and "CompletedBySystem". (Active, InProgress, Dismissed, CompletedByUser, CompletedBySystem)
suggestionsarrayList of suggestions to take for this recommendation. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
titlestringTitle of the recommendation. Required.
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
listselectresource_group_name, workspace_name, subscription_idGets a list of all recommendations.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_namestringThe name of the workspace. Required.

SELECT examples

Gets a list of all recommendations.

SELECT
id,
name,
additionalProperties,
creationTimeUtc,
description,
etag,
lastEvaluatedTimeUtc,
lastModifiedTimeUtc,
recommendationTypeId,
resourceId,
state,
suggestions,
systemData,
title,
type
FROM azure.security_insight.get_recommendations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;