Skip to main content

workspace_managed_sql_server_vulnerability_assessments

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

Overview

Nameworkspace_managed_sql_server_vulnerability_assessments
TypeResource
Idazure.synapse.workspace_managed_sql_server_vulnerability_assessments

Fields

NameDatatypeDescription
recurring_scanstextfield from the properties object
resourceGroupNametextfield 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, subscriptionId, vulnerabilityAssessmentName, workspaceNameGet workspace managed sql server's vulnerability assessment.
listSELECTresourceGroupName, subscriptionId, workspaceNameLists the vulnerability assessment policies associated with a workspace managed sql server.
create_or_updateINSERTresourceGroupName, subscriptionId, vulnerabilityAssessmentName, workspaceNameCreate or Update workspace managed sql server's vulnerability assessment.
deleteDELETEresourceGroupName, subscriptionId, vulnerabilityAssessmentName, workspaceNameRemove workspace managed sql server's vulnerability assessment.

SELECT examples

Lists the vulnerability assessment policies associated with a workspace managed sql server.

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

INSERT example

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

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

DELETE example

Deletes the specified workspace_managed_sql_server_vulnerability_assessments resource.

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