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
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
affectedDefendersPlansarrayThe affected defenders plans by unhealthy report.
affectedDefendersSubPlansarrayThe affected defenders sub plans by unhealthy report.
environmentDetailsobjectThe environment details of the resource.
healthDataClassificationobjectThe classification of the health report.
issuesarrayA collection of the issues in the report.
reportAdditionalDataobjectAdditional data for the given health report, this field can include more details on the resource and the health scenario.
resourceDetailsobjectThe resource details of the health report.
statusobjectThe status of the 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
getselectresource_id, health_report_nameGet 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
health_report_namestringThe health report 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

Get health report of resource.

SELECT
id,
name,
affectedDefendersPlans,
affectedDefendersSubPlans,
environmentDetails,
healthDataClassification,
issues,
reportAdditionalData,
resourceDetails,
status,
systemData,
type
FROM azure.security.health_reports
WHERE resource_id = '{{ resource_id }}' -- required
AND health_report_name = '{{ health_report_name }}' -- required
;