Skip to main content

assessments_metadata

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

Overview

Nameassessments_metadata
TypeResource
Idazure.security.assessments_metadata

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.
assessmentTypestringBuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition. Required. Known values are: "Unknown", "BuiltIn", "Custom", "CustomPolicy", "CustomerManaged", "BuiltInPolicy", "VerifiedPartner", "ManualBuiltInPolicy", "ManualBuiltIn", "ManualCustomPolicy", and "DynamicBuiltIn". (Unknown, BuiltIn, Custom, CustomPolicy, CustomerManaged, BuiltInPolicy, VerifiedPartner, ManualBuiltInPolicy, ManualBuiltIn, ManualCustomPolicy, DynamicBuiltIn)
categoriesarray:vartype categories: list[str or ~azure.mgmt.security.models.Categories]
descriptionstringHuman readable description of the assessment.
displayNamestringUser friendly display name of the assessment. Required.
implementationEffortstringThe implementation effort required to remediate this assessment. Known values are: "Low", "Moderate", and "High". (Low, Moderate, High)
partnerDataobjectDescribes the partner that created the assessment.
plannedDeprecationDatestring:vartype planned_deprecation_date: str
policyDefinitionIdstringAzure resource ID of the policy definition that turns this assessment calculation on.
previewbooleanTrue if this assessment is in preview release status.
publishDatesobject:vartype publish_dates: ~azure.mgmt.security.models.SecurityAssessmentMetadataPropertiesResponsePublishDates
remediationDescriptionstringHuman readable description of what you should do to mitigate this security issue.
severitystringThe severity level of the assessment. Required. Known values are: "Low", "Medium", "High", and "Critical". (Low, Medium, High, Critical)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tacticsarray:vartype tactics: list[str or ~azure.mgmt.security.models.Tactics]
techniquesarray:vartype techniques: list[str or ~azure.mgmt.security.models.Techniques]
threatsarray:vartype threats: list[str or ~azure.mgmt.security.models.Threats]
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
userImpactstringThe user impact of the assessment. Known values are: "Low", "Moderate", and "High". (Low, Moderate, High)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_in_subscriptionselectassessment_metadata_name, subscription_idGet metadata information on an assessment type in a specific subscription.
getselectassessment_metadata_nameGet metadata information on an assessment type.
list_by_subscriptionselectsubscription_idGet metadata information on all assessment types in a specific subscription.
listselectGet metadata information on all assessment types.
create_in_subscriptioninsertassessment_metadata_name, subscription_idCreate metadata information on an assessment type in a specific subscription.
delete_in_subscriptiondeleteassessment_metadata_name, subscription_idDelete metadata information on an assessment type in a specific subscription, will cause the deletion of all the assessments of that type in that subscription.

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
assessment_metadata_namestringThe Assessment Key - Unique key for the assessment type. Required.
subscription_idstring

SELECT examples

Get metadata information on an assessment type in a specific subscription.

SELECT
id,
name,
assessmentType,
categories,
description,
displayName,
implementationEffort,
partnerData,
plannedDeprecationDate,
policyDefinitionId,
preview,
publishDates,
remediationDescription,
severity,
systemData,
tactics,
techniques,
threats,
type,
userImpact
FROM azure.security.assessments_metadata
WHERE assessment_metadata_name = '{{ assessment_metadata_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create metadata information on an assessment type in a specific subscription.

INSERT INTO azure.security.assessments_metadata (
properties,
assessment_metadata_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ assessment_metadata_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

DELETE examples

Delete metadata information on an assessment type in a specific subscription, will cause the deletion of all the assessments of that type in that subscription.

DELETE FROM azure.security.assessments_metadata
WHERE assessment_metadata_name = '{{ assessment_metadata_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;