Skip to main content

health_reports

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

Overview

Namehealth_reports
TypeResource
Idazure.security.health_reports

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
propertiesobjectProperties of a health report
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
getselecthealthReportNameresourceIdGet health report of resource
listselectscopeGet a list of all health reports inside a scope. Valid scopes are: subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'

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
healthReportNamestringThe health report Key - Unique key for the health report type
scopestringThe scope at which the operation is performed.
resourceIdstringOptional filter for listing the assignments of a specific resource.

SELECT examples

Get health report of resource

SELECT
id,
name,
properties,
systemData,
type
FROM azure.security.health_reports
WHERE healthReportName = '{{ healthReportName }}' -- required
AND resourceId = '{{ resourceId }}'
;