Skip to main content

resource_health_metadata

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

Overview

Nameresource_health_metadata
TypeResource
Idazure.web.resource_health_metadata

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.
categorystringThe category that the resource matches in the RHC Policy File.
kindstringKind of resource.
signalAvailabilitybooleanIs there a health signal for the resource.
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
list_by_site_slotselectresource_group_name, name, slot, subscription_idGets the category of ResourceHealthMetadata to use for the given site as a collection. Description for Gets the category of ResourceHealthMetadata to use for the given site as a collection.
list_by_siteselectresource_group_name, name, subscription_idGets the category of ResourceHealthMetadata to use for the given site as a collection. Description for Gets the category of ResourceHealthMetadata to use for the given site as a collection.
list_by_resource_groupselectresource_group_name, subscription_idList all ResourceHealthMetadata for all sites in the resource group in the subscription. Description for List all ResourceHealthMetadata for all sites in the resource group in the subscription.
listselectsubscription_idList all ResourceHealthMetadata for all sites in the subscription. Description for List all ResourceHealthMetadata for all sites in the subscription.
get_by_siteexecresource_group_name, name, subscription_idGets the category of ResourceHealthMetadata to use for the given site. Description for Gets the category of ResourceHealthMetadata to use for the given site.
get_by_site_slotexecresource_group_name, name, slot, subscription_idGets the category of ResourceHealthMetadata to use for the given site. Description for Gets the category of ResourceHealthMetadata to use for the given site.

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
namestringName of web app. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
slotstringName of web app slot. If not specified then will default to production slot. Required.
subscription_idstring

SELECT examples

Gets the category of ResourceHealthMetadata to use for the given site as a collection. Description for Gets the category of ResourceHealthMetadata to use for the given site as a collection.

SELECT
id,
name,
category,
kind,
signalAvailability,
systemData,
type
FROM azure.web.resource_health_metadata
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND name = '{{ name }}' -- required
AND slot = '{{ slot }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Gets the category of ResourceHealthMetadata to use for the given site. Description for Gets the category of ResourceHealthMetadata to use for the given site.

EXEC azure.web.resource_health_metadata.get_by_site 
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;