Skip to main content

assessments_metadata

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

Overview

Nameassessments_metadata
TypeResource
Idazure.security.assessments_metadata

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
descriptiontextfield from the properties object
assessmentMetadataNametextfield from the properties object
assessment_typetextfield from the properties object
categoriestextfield from the properties object
display_nametextfield from the properties object
implementation_efforttextfield from the properties object
partner_datatextfield from the properties object
planned_deprecation_datetextfield from the properties object
policy_definition_idtextfield from the properties object
previewtextfield from the properties object
publish_datestextfield from the properties object
remediation_descriptiontextfield from the properties object
severitytextfield from the properties object
subscriptionIdtextfield from the properties object
tacticstextfield from the properties object
techniquestextfield from the properties object
threatstextfield from the properties object
typetextResource type
user_impacttextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTassessmentMetadataNameGet metadata information on an assessment type
get_in_subscriptionSELECTassessmentMetadataName, subscriptionIdGet metadata information on an assessment type in a specific subscription
listSELECTGet metadata information on all assessment types
list_by_subscriptionSELECTsubscriptionIdGet metadata information on all assessment types in a specific subscription
create_in_subscriptionINSERTassessmentMetadataName, subscriptionIdCreate metadata information on an assessment type in a specific subscription
delete_in_subscriptionDELETEassessmentMetadataName, subscriptionIdDelete metadata information on an assessment type in a specific subscription, will cause the deletion of all the assessments of that type in that subscription

SELECT examples

Get metadata information on all assessment types

SELECT
id,
name,
description,
assessmentMetadataName,
assessment_type,
categories,
display_name,
implementation_effort,
partner_data,
planned_deprecation_date,
policy_definition_id,
preview,
publish_dates,
remediation_description,
severity,
subscriptionId,
tactics,
techniques,
threats,
type,
user_impact
FROM azure.security.vw_assessments_metadata
;

INSERT example

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

/*+ create */
INSERT INTO azure.security.assessments_metadata (
assessmentMetadataName,
subscriptionId,
properties
)
SELECT
'{{ assessmentMetadataName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified assessments_metadata resource.

/*+ delete */
DELETE FROM azure.security.assessments_metadata
WHERE assessmentMetadataName = '{{ assessmentMetadataName }}'
AND subscriptionId = '{{ subscriptionId }}';