Skip to main content

vulnerability_assessment_baselines

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

Overview

Namevulnerability_assessment_baselines
TypeResource
Idazure.sql.vulnerability_assessment_baselines

Fields

NameDatatypeDescription
baselineNametextfield from the properties object
resourceGroupNametextfield from the properties object
resultstextfield from the properties object
serverNametextfield from the properties object
subscriptionIdtextfield from the properties object
systemDatabaseNametextfield from the properties object
system_datatextfield from the properties object
vulnerabilityAssessmentNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTbaselineName, resourceGroupName, serverName, subscriptionId, systemDatabaseName, vulnerabilityAssessmentNameGets a list of database's sql vulnerability assessment rule baselines.
list_by_sql_vulnerability_assessmentSELECTresourceGroupName, serverName, subscriptionId, systemDatabaseName, vulnerabilityAssessmentNameGets a list of database's sql vulnerability assessment rule baselines.
create_or_updateINSERTbaselineName, resourceGroupName, serverName, subscriptionId, systemDatabaseName, vulnerabilityAssessmentNameAdd a database's vulnerability assessment rule baseline list.

SELECT examples

Gets a list of database's sql vulnerability assessment rule baselines.

SELECT
baselineName,
resourceGroupName,
results,
serverName,
subscriptionId,
systemDatabaseName,
system_data,
vulnerabilityAssessmentName
FROM azure.sql.vw_vulnerability_assessment_baselines
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND systemDatabaseName = '{{ systemDatabaseName }}'
AND vulnerabilityAssessmentName = '{{ vulnerabilityAssessmentName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.sql.vulnerability_assessment_baselines (
baselineName,
resourceGroupName,
serverName,
subscriptionId,
systemDatabaseName,
vulnerabilityAssessmentName,
properties
)
SELECT
'{{ baselineName }}',
'{{ resourceGroupName }}',
'{{ serverName }}',
'{{ subscriptionId }}',
'{{ systemDatabaseName }}',
'{{ vulnerabilityAssessmentName }}',
'{{ properties }}'
;