Skip to main content

custom_recommendations

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

Overview

Namecustom_recommendations
TypeResource
Idazure.security.custom_recommendations

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
descriptiontextfield from the properties object
assessment_keytextfield from the properties object
cloud_providerstextfield from the properties object
customRecommendationNametextfield from the properties object
display_nametextfield from the properties object
querytextfield from the properties object
remediation_descriptiontextfield from the properties object
scopetextfield from the properties object
security_issuetextfield from the properties object
severitytextfield from the properties object
system_datatextfield from the properties object
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTcustomRecommendationName, scopeGet a specific custom recommendation for the requested scope by customRecommendationName
listSELECTscopeGet a list of all relevant custom recommendations over a scope
create_or_updateINSERTcustomRecommendationName, scopeCreates or updates a custom recommendation over a given scope
deleteDELETEcustomRecommendationName, scopeDelete a custom recommendation over a given scope

SELECT examples

Get a list of all relevant custom recommendations over a scope

SELECT
id,
name,
description,
assessment_key,
cloud_providers,
customRecommendationName,
display_name,
query,
remediation_description,
scope,
security_issue,
severity,
system_data,
type
FROM azure.security.vw_custom_recommendations
WHERE scope = '{{ scope }}';

INSERT example

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

/*+ create */
INSERT INTO azure.security.custom_recommendations (
customRecommendationName,
scope,
properties
)
SELECT
'{{ customRecommendationName }}',
'{{ scope }}',
'{{ properties }}'
;

DELETE example

Deletes the specified custom_recommendations resource.

/*+ delete */
DELETE FROM azure.security.custom_recommendations
WHERE customRecommendationName = '{{ customRecommendationName }}'
AND scope = '{{ scope }}';