Skip to main content

resource_healths

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

Overview

Nameresource_healths
TypeResource
Idazure_stack.infrastructure_insights_admin.resource_healths

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
locationstringThe Azure Region where the resource lives
propertiesobjectHealth information related to a resource.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, location, serviceRegistrationId, resourceRegistrationId$filterReturns the requested health information about a resource.
listselectsubscriptionId, resourceGroupName, location, serviceRegistrationId$filterReturns a list of each resource's health under a service.

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
locationstringName of the region
resourceGroupNamestringThe name of the resource group.
resourceRegistrationIdstringResource registration ID.
serviceRegistrationIdstringService registration ID.
subscriptionIdstringSubscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
$filterstringOData filter parameter.

SELECT examples

Returns the requested health information about a resource.

SELECT
location,
properties,
tags
FROM azure_stack.infrastructure_insights_admin.resource_healths
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND location = '{{ location }}' -- required
AND serviceRegistrationId = '{{ serviceRegistrationId }}' -- required
AND resourceRegistrationId = '{{ resourceRegistrationId }}' -- required
AND $filter = '{{ $filter }}'
;