Skip to main content

compliances

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

Overview​

Namecompliances
TypeResource
Idazure.security.compliances

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.
assessmentResultarrayAn array of segment, which is the actually the compliance assessment.
assessmentTimestampUtcDatestring (date-time)The timestamp when the Compliance calculation was conducted.
resourceCountintegerThe resource count of the given subscription for which the Compliance calculation was conducted (needed for Management Group Compliance calculation).
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
getselectscope, compliance_nameDetails of a specific Compliance.
listselectscopeThe Compliance scores of the specific management group.

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_namestringname of the Compliance. Required.
scopestringThe fully qualified Azure Resource manager identifier of the resource. Required.

SELECT examples​

Details of a specific Compliance.

SELECT
id,
name,
assessmentResult,
assessmentTimestampUtcDate,
resourceCount,
systemData,
type
FROM azure.security.compliances
WHERE scope = '{{ scope }}' -- required
AND compliance_name = '{{ compliance_name }}' -- required
;