Skip to main content

sub_assessments

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

Overview

Namesub_assessments
TypeResource
Idazure.security.sub_assessments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring (arm-id)Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
propertiesobjectDescribes properties of an sub-assessment.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectscope, assessmentName, subAssessmentNameapi-versionGet a security sub-assessment on your scanned resource
listselectscope, assessmentNameapi-versionGet security sub-assessments on all your scanned resources inside a scope
list_allselectscopeapi-versionGet security sub-assessments on all your scanned resources inside a subscription scope

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
assessmentNamestringThe Assessment Key - Unique key for the assessment type
scopestringThe scope of the standard assignment. Valid scopes are: management group (format: 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'
subAssessmentNamestringThe Sub-Assessment Key - Unique key for the sub-assessment type
api-versionstringAPI version for the operation

SELECT examples

Get a security sub-assessment on your scanned resource

SELECT
id,
name,
properties,
systemData,
type
FROM azure.security.sub_assessments
WHERE scope = '{{ scope }}' -- required
AND assessmentName = '{{ assessmentName }}' -- required
AND subAssessmentName = '{{ subAssessmentName }}' -- required
AND api-version = '{{ api-version }}'
;