Skip to main content

server_vulnerability_assessments

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

Overview

Nameserver_vulnerability_assessments
TypeResource
Idazure.security.server_vulnerability_assessments

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
resourceNamespacetextfield from the properties object
resourceTypetextfield from the properties object
serverVulnerabilityAssessmenttextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, resourceNamespace, resourceType, serverVulnerabilityAssessment, subscriptionIdGets a server vulnerability assessment onboarding statuses on a given resource.
list_by_extended_resourceSELECTresourceGroupName, resourceName, resourceNamespace, resourceType, subscriptionIdGets a list of server vulnerability assessment onboarding statuses on a given resource.
create_or_updateINSERTresourceGroupName, resourceName, resourceNamespace, resourceType, serverVulnerabilityAssessment, subscriptionIdCreating a server vulnerability assessment on a resource, which will onboard a resource for having a vulnerability assessment on it
deleteDELETEresourceGroupName, resourceName, resourceNamespace, resourceType, serverVulnerabilityAssessment, subscriptionIdRemoving server vulnerability assessment from a resource.

SELECT examples

Gets a list of server vulnerability assessment onboarding statuses on a given resource.

SELECT
id,
name,
provisioning_state,
resourceGroupName,
resourceName,
resourceNamespace,
resourceType,
serverVulnerabilityAssessment,
subscriptionId,
type
FROM azure.security.vw_server_vulnerability_assessments
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND resourceNamespace = '{{ resourceNamespace }}'
AND resourceType = '{{ resourceType }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.security.server_vulnerability_assessments (
resourceGroupName,
resourceName,
resourceNamespace,
resourceType,
serverVulnerabilityAssessment,
subscriptionId
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ resourceNamespace }}',
'{{ resourceType }}',
'{{ serverVulnerabilityAssessment }}',
'{{ subscriptionId }}'
;

DELETE example

Deletes the specified server_vulnerability_assessments resource.

/*+ delete */
DELETE FROM azure.security.server_vulnerability_assessments
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND resourceNamespace = '{{ resourceNamespace }}'
AND resourceType = '{{ resourceType }}'
AND serverVulnerabilityAssessment = '{{ serverVulnerabilityAssessment }}'
AND subscriptionId = '{{ subscriptionId }}';