Skip to main content

vulnerability_assessments_settings

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

Overview

Namevulnerability_assessments_settings
TypeResource
Idazure.sql.vulnerability_assessments_settings

Fields

NameDatatypeDescription
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
getSELECTresourceGroupName, serverName, subscriptionId, vulnerabilityAssessmentNameGets SQL Vulnerability Assessment policy.
list_by_serverSELECTresourceGroupName, serverName, subscriptionIdLists SQL Vulnerability Assessment policies associated with a server.
create_or_updateINSERTresourceGroupName, serverName, subscriptionId, vulnerabilityAssessmentNameCreates or updates SQL Vulnerability Assessment policy.

SELECT examples

Lists SQL Vulnerability Assessment policies associated with a server.

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

INSERT example

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

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