Skip to main content

sql_pool_vulnerability_assessment_rule_baselines

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

Overview

Namesql_pool_vulnerability_assessment_rule_baselines
TypeResource
Idazure.synapse.sql_pool_vulnerability_assessment_rule_baselines

Fields

NameDatatypeDescription
baselineNametextfield from the properties object
baseline_resultstextfield from the properties object
resourceGroupNametextfield from the properties object
ruleIdtextfield from the properties object
sqlPoolNametextfield from the properties object
subscriptionIdtextfield from the properties object
vulnerabilityAssessmentNametextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTbaselineName, resourceGroupName, ruleId, sqlPoolName, subscriptionId, vulnerabilityAssessmentName, workspaceNameGets a SqlPool's vulnerability assessment rule baseline.
create_or_updateINSERTbaselineName, resourceGroupName, ruleId, sqlPoolName, subscriptionId, vulnerabilityAssessmentName, workspaceNameCreates or updates a Sql pool's vulnerability assessment rule baseline.
deleteDELETEbaselineName, resourceGroupName, ruleId, sqlPoolName, subscriptionId, vulnerabilityAssessmentName, workspaceNameRemoves the database's vulnerability assessment rule baseline.

SELECT examples

Gets a SqlPool's vulnerability assessment rule baseline.

SELECT
baselineName,
baseline_results,
resourceGroupName,
ruleId,
sqlPoolName,
subscriptionId,
vulnerabilityAssessmentName,
workspaceName
FROM azure.synapse.vw_sql_pool_vulnerability_assessment_rule_baselines
WHERE baselineName = '{{ baselineName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND ruleId = '{{ ruleId }}'
AND sqlPoolName = '{{ sqlPoolName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vulnerabilityAssessmentName = '{{ vulnerabilityAssessmentName }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.synapse.sql_pool_vulnerability_assessment_rule_baselines (
baselineName,
resourceGroupName,
ruleId,
sqlPoolName,
subscriptionId,
vulnerabilityAssessmentName,
workspaceName,
properties
)
SELECT
'{{ baselineName }}',
'{{ resourceGroupName }}',
'{{ ruleId }}',
'{{ sqlPoolName }}',
'{{ subscriptionId }}',
'{{ vulnerabilityAssessmentName }}',
'{{ workspaceName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified sql_pool_vulnerability_assessment_rule_baselines resource.

/*+ delete */
DELETE FROM azure.synapse.sql_pool_vulnerability_assessment_rule_baselines
WHERE baselineName = '{{ baselineName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND ruleId = '{{ ruleId }}'
AND sqlPoolName = '{{ sqlPoolName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vulnerabilityAssessmentName = '{{ vulnerabilityAssessmentName }}'
AND workspaceName = '{{ workspaceName }}';