Skip to main content

secure_scores

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

Overview

Namesecure_scores
TypeResource
Idazure.security.secure_scores

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
propertiesobjectSecure score item
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
getselectsubscriptionId, secureScoreNameapi-versionGet secure score for a specific Microsoft Defender for Cloud initiative within your current scope. For the ASC Default initiative, use 'ascScore'.
listselectsubscriptionIdapi-versionList secure scores for all your Microsoft Defender for Cloud initiatives within your current 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
secureScoreNamestringThe initiative name. For the ASC Default initiative, use 'ascScore' as in the sample request below.
subscriptionIdstringAzure subscription ID
api-versionstringAPI version for the operation

SELECT examples

Get secure score for a specific Microsoft Defender for Cloud initiative within your current scope. For the ASC Default initiative, use 'ascScore'.

SELECT
id,
name,
properties,
systemData,
type
FROM azure.security.secure_scores
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND secureScoreName = '{{ secureScoreName }}' -- required
AND api-version = '{{ api-version }}'
;