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
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
propertiesobjectCompliance result data
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
getselectcomplianceResultNameapi-version, resourceIdSecurity Compliance Result
listselectscopeapi-versionSecurity 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
complianceResultNamestringname of the desired assessment compliance result
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})'
api-versionstringAPI version for the operation
resourceIdstringOptional filter for listing the assignments of a specific resource.

SELECT examples

Security Compliance Result

SELECT
id,
name,
properties,
systemData,
type
FROM azure.security.compliance_results
WHERE complianceResultName = '{{ complianceResultName }}' -- required
AND api-version = '{{ api-version }}'
AND resourceId = '{{ resourceId }}'
;