Skip to main content

compliance_results

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

Overview

Namecompliance_results
TypeResource
Idazure.security.compliance_results

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
resourceStatusstringThe status of the resource regarding a single assessment. Known values are: "Healthy", "NotApplicable", "OffByPolicy", and "NotHealthy". (Healthy, NotApplicable, OffByPolicy, NotHealthy)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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
getselectresource_id, compliance_result_nameSecurity Compliance Result.
listselectscopeSecurity compliance results in the subscription.

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
compliance_result_namestringThe compliance result key. Required.
resource_idstringThe fully qualified Azure Resource manager identifier of the resource. Required.
scopestringThe fully qualified Azure Resource manager identifier of the resource. Required.

SELECT examples

Security Compliance Result.

SELECT
id,
name,
resourceStatus,
systemData,
type
FROM azure.security.compliance_results
WHERE resource_id = '{{ resource_id }}' -- required
AND compliance_result_name = '{{ compliance_result_name }}' -- required
;