Skip to main content

sql_pool_vulnerability_assessments

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

Overview

Namesql_pool_vulnerability_assessments
TypeResource
Idazure.synapse.sql_pool_vulnerability_assessments

Fields

NameDatatypeDescription
recurring_scanstextfield from the properties object
resourceGroupNametextfield from the properties object
sqlPoolNametextfield from the properties object
storage_account_access_keytextfield from the properties object
storage_container_pathtextfield from the properties object
storage_container_sas_keytextfield from the properties object
subscriptionIdtextfield from the properties object
vulnerabilityAssessmentNametextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, sqlPoolName, subscriptionId, vulnerabilityAssessmentName, workspaceNameGets the Sql pool's vulnerability assessment.
listSELECTresourceGroupName, sqlPoolName, subscriptionId, workspaceNameLists the vulnerability assessment policies associated with a SQL pool.
create_or_updateINSERTresourceGroupName, sqlPoolName, subscriptionId, vulnerabilityAssessmentName, workspaceNameCreates or updates the Sql pool vulnerability assessment.
deleteDELETEresourceGroupName, sqlPoolName, subscriptionId, vulnerabilityAssessmentName, workspaceNameRemoves the database's vulnerability assessment.

SELECT examples

Lists the vulnerability assessment policies associated with a SQL pool.

SELECT
recurring_scans,
resourceGroupName,
sqlPoolName,
storage_account_access_key,
storage_container_path,
storage_container_sas_key,
subscriptionId,
vulnerabilityAssessmentName,
workspaceName
FROM azure.synapse.vw_sql_pool_vulnerability_assessments
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND sqlPoolName = '{{ sqlPoolName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

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

DELETE example

Deletes the specified sql_pool_vulnerability_assessments resource.

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