Skip to main content

managed_database_vulnerability_assessment_rule_baselines

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

Overview

Namemanaged_database_vulnerability_assessment_rule_baselines
TypeResource
Idazure.sql.managed_database_vulnerability_assessment_rule_baselines

Fields

NameDatatypeDescription
baselineNametextfield from the properties object
baseline_resultstextfield from the properties object
databaseNametextfield from the properties object
managedInstanceNametextfield from the properties object
resourceGroupNametextfield from the properties object
ruleIdtextfield from the properties object
subscriptionIdtextfield from the properties object
vulnerabilityAssessmentNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTbaselineName, databaseName, managedInstanceName, resourceGroupName, ruleId, subscriptionId, vulnerabilityAssessmentNameGets a database's vulnerability assessment rule baseline.
create_or_updateINSERTbaselineName, databaseName, managedInstanceName, resourceGroupName, ruleId, subscriptionId, vulnerabilityAssessmentNameCreates or updates a database's vulnerability assessment rule baseline.
deleteDELETEbaselineName, databaseName, managedInstanceName, resourceGroupName, ruleId, subscriptionId, vulnerabilityAssessmentNameRemoves the database's vulnerability assessment rule baseline.

SELECT examples

Gets a database's vulnerability assessment rule baseline.

SELECT
baselineName,
baseline_results,
databaseName,
managedInstanceName,
resourceGroupName,
ruleId,
subscriptionId,
vulnerabilityAssessmentName
FROM azure.sql.vw_managed_database_vulnerability_assessment_rule_baselines
WHERE baselineName = '{{ baselineName }}'
AND databaseName = '{{ databaseName }}'
AND managedInstanceName = '{{ managedInstanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND ruleId = '{{ ruleId }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vulnerabilityAssessmentName = '{{ vulnerabilityAssessmentName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.sql.managed_database_vulnerability_assessment_rule_baselines (
baselineName,
databaseName,
managedInstanceName,
resourceGroupName,
ruleId,
subscriptionId,
vulnerabilityAssessmentName,
properties
)
SELECT
'{{ baselineName }}',
'{{ databaseName }}',
'{{ managedInstanceName }}',
'{{ resourceGroupName }}',
'{{ ruleId }}',
'{{ subscriptionId }}',
'{{ vulnerabilityAssessmentName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified managed_database_vulnerability_assessment_rule_baselines resource.

/*+ delete */
DELETE FROM azure.sql.managed_database_vulnerability_assessment_rule_baselines
WHERE baselineName = '{{ baselineName }}'
AND databaseName = '{{ databaseName }}'
AND managedInstanceName = '{{ managedInstanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND ruleId = '{{ ruleId }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vulnerabilityAssessmentName = '{{ vulnerabilityAssessmentName }}';