Skip to main content

database_sql_vulnerability_assessments_settings

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

Overview

Namedatabase_sql_vulnerability_assessments_settings
TypeResource
Idazure.sql.database_sql_vulnerability_assessments_settings

Fields

NameDatatypeDescription
databaseNametextfield from the properties object
resourceGroupNametextfield from the properties object
serverNametextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
vulnerabilityAssessmentNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdatabaseName, resourceGroupName, serverName, subscriptionId, vulnerabilityAssessmentNameGets SQL Vulnerability Assessment policy for database.
list_by_databaseSELECTdatabaseName, resourceGroupName, serverName, subscriptionIdLists SQL Vulnerability Assessment policies associated with a database.

SELECT examples

Lists SQL Vulnerability Assessment policies associated with a database.

SELECT
databaseName,
resourceGroupName,
serverName,
state,
subscriptionId,
system_data,
vulnerabilityAssessmentName
FROM azure.sql.vw_database_sql_vulnerability_assessments_settings
WHERE databaseName = '{{ databaseName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';