Skip to main content

managed_database_vulnerability_assessment_scans

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

Overview

Namemanaged_database_vulnerability_assessment_scans
TypeResource
Idazure.sql.managed_database_vulnerability_assessment_scans

Fields

NameDatatypeDescription
databaseNametextfield from the properties object
end_timetextfield from the properties object
errorstextfield from the properties object
managedInstanceNametextfield 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
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, managedInstanceName, resourceGroupName, scanId, subscriptionId, vulnerabilityAssessmentNameGets a vulnerability assessment scan record of a database.
list_by_databaseSELECTdatabaseName, managedInstanceName, resourceGroupName, subscriptionId, vulnerabilityAssessmentNameLists the vulnerability assessment scans of a database.
exportEXECdatabaseName, managedInstanceName, resourceGroupName, scanId, subscriptionId, vulnerabilityAssessmentNameConvert an existing scan result to a human readable format. If already exists nothing happens
initiate_scanEXECdatabaseName, managedInstanceName, resourceGroupName, scanId, subscriptionId, vulnerabilityAssessmentNameExecutes a Vulnerability Assessment database scan.

SELECT examples

Lists the vulnerability assessment scans of a database.

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