Skip to main content

database_vulnerability_assessment_scans

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

Overview

Namedatabase_vulnerability_assessment_scans
TypeResource
Idazure.sql.database_vulnerability_assessment_scans

Fields

NameDatatypeDescription
databaseNametextfield from the properties object
end_timetextfield from the properties object
errorstextfield from the properties object
number_of_failed_security_checkstextfield from the properties object
resourceGroupNametextfield from the properties object
scanIdtextfield from the properties object
scan_idtextfield from the properties object
serverNametextfield from the properties object
start_timetextfield from the properties object
statetextfield from the properties object
storage_container_pathtextfield from the properties object
subscriptionIdtextfield from the properties object
trigger_typetextfield from the properties object
vulnerabilityAssessmentNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdatabaseName, resourceGroupName, scanId, serverName, subscriptionId, vulnerabilityAssessmentNameGets a vulnerability assessment scan record of a database.
list_by_databaseSELECTdatabaseName, resourceGroupName, serverName, subscriptionId, vulnerabilityAssessmentNameLists the vulnerability assessment scans of a database.
exportEXECdatabaseName, resourceGroupName, scanId, serverName, subscriptionId, vulnerabilityAssessmentNameConvert an existing scan result to a human readable format. If already exists nothing happens
initiate_scanEXECdatabaseName, resourceGroupName, scanId, serverName, subscriptionId, vulnerabilityAssessmentNameExecutes a Vulnerability Assessment database scan.

SELECT examples

Lists the vulnerability assessment scans of a database.

SELECT
databaseName,
end_time,
errors,
number_of_failed_security_checks,
resourceGroupName,
scanId,
scan_id,
serverName,
start_time,
state,
storage_container_path,
subscriptionId,
trigger_type,
vulnerabilityAssessmentName
FROM azure.sql.vw_database_vulnerability_assessment_scans
WHERE databaseName = '{{ databaseName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vulnerabilityAssessmentName = '{{ vulnerabilityAssessmentName }}';