Skip to main content

custom_assessment_automations

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

Overview

Namecustom_assessment_automations
TypeResource
Idazure.security.custom_assessment_automations

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
descriptiontextfield from the properties object
assessment_keytextfield from the properties object
compressed_querytextfield from the properties object
customAssessmentAutomationNametextfield from the properties object
display_nametextfield from the properties object
remediation_descriptiontextfield from the properties object
resourceGroupNametextfield from the properties object
severitytextfield from the properties object
subscriptionIdtextfield from the properties object
supported_cloudtextfield from the properties object
system_datatextfield from the properties object
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTcustomAssessmentAutomationName, resourceGroupName, subscriptionIdGets a single custom assessment automation by name for the provided subscription and resource group.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList custom assessment automations by provided subscription and resource group
list_by_subscriptionSELECTsubscriptionIdList custom assessment automations by provided subscription
createINSERTcustomAssessmentAutomationName, resourceGroupName, subscriptionIdCreates or updates a custom assessment automation for the provided subscription. Please note that providing an existing custom assessment automation will replace the existing record.
deleteDELETEcustomAssessmentAutomationName, resourceGroupName, subscriptionIdDeletes a custom assessment automation by name for a provided subscription

SELECT examples

List custom assessment automations by provided subscription

SELECT
id,
name,
description,
assessment_key,
compressed_query,
customAssessmentAutomationName,
display_name,
remediation_description,
resourceGroupName,
severity,
subscriptionId,
supported_cloud,
system_data,
type
FROM azure.security.vw_custom_assessment_automations
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.security.custom_assessment_automations (
customAssessmentAutomationName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ customAssessmentAutomationName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified custom_assessment_automations resource.

/*+ delete */
DELETE FROM azure.security.custom_assessment_automations
WHERE customAssessmentAutomationName = '{{ customAssessmentAutomationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';