Skip to main content

availability_statuses

Creates, updates, deletes, gets or lists an availability_statuses resource.

Overview

Nameavailability_statuses
TypeResource
Idazure.resource_health.availability_statuses

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringAzure Resource Manager Identity for the availabilityStatuses resource.
namestring:vartype name: str
articleIdstringThe Article Id.
availabilityStatestringAvailability status of the resource. When it is null, this availabilityStatus object represents an availability impacting event. Known values are: "Available", "Unavailable", "Degraded", and "Unknown". (Available, Unavailable, Degraded, Unknown)
categorystringWhen a context field is set to Platform, this field will reflect if the event was planned or unplanned. If the context field does not have a value of Platform, then this field will be ignored.
contextstringWhen an event is created, it can either be triggered by a customer or the platform of the resource and this field will illustrate that. This field is connected to the category field in this object.
detailedStatusstringDetails of the availability status.
healthEventCategorystringIn case of an availability impacting event, it describes the category of a PlatformInitiated health impacting event. Examples are Planned, Unplanned etc.
healthEventCausestringIn case of an availability impacting event, it describes where the health impacting event was originated. Examples are PlatformInitiated, UserInitiated etc.
healthEventIdstringIt is a unique Id that identifies the event.
healthEventTypestringIn case of an availability impacting event, it describes when the health impacting event was originated. Examples are Lifecycle, Downtime, Fault Analysis etc.
locationstringAzure Resource Manager geo location of the resource.
occuredTimestring (date-time)Timestamp for when last change in health status occurred.
reasonChronicitystringChronicity of the availability transition. Known values are: "Transient" and "Persistent". (Transient, Persistent)
reasonTypestringWhen the resource's availabilityState is Unavailable, it describes where the health impacting event was originated. Examples are planned, unplanned, user initiated or an outage etc.
recentlyResolvedobjectAn annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned.
recommendedActionsarrayLists actions the user can take based on the current availabilityState of the resource.
reportedTimestring (date-time)Timestamp for when the health was last checked.
resolutionETAstring (date-time)When the resource's availabilityState is Unavailable and the reasonType is not User Initiated, it provides the date and time for when the issue is expected to be resolved.
rootCauseAttributionTimestring (date-time)When the resource's availabilityState is Unavailable, it provides the Timestamp for when the health impacting event was received.
serviceImpactingEventsarrayLists the service impacting events that may be affecting the health of the resource.
summarystringSummary description of the availability status.
titlestringTitle description of the availability status.
typestringMicrosoft.ResourceHealth/AvailabilityStatuses.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_resource_groupselectresource_group_name, subscription_id$filter, $expandLists the current availability status for all the resources in the resource group.
listselectresource_uri$filter, $expandLists all historical availability transitions and impacting events for a single resource.
list_by_subscription_idselectsubscription_id$filter, $expandLists the current availability status for all the resources in the subscription.
get_by_resourceexecresource_uri$filter, $expandGets current availability status for a single resource.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
resource_uristringThe fully qualified Azure Resource manager identifier of the resource. Required.
subscription_idstring
$expandstringSetting $expand=recommendedactions in url query expands the recommendedactions in the response. Default value is None.
$filterstringThe filter to apply on the operation. For more information please see https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN _. Default value is None.

SELECT examples

Lists the current availability status for all the resources in the resource group.

SELECT
id,
name,
articleId,
availabilityState,
category,
context,
detailedStatus,
healthEventCategory,
healthEventCause,
healthEventId,
healthEventType,
location,
occuredTime,
reasonChronicity,
reasonType,
recentlyResolved,
recommendedActions,
reportedTime,
resolutionETA,
rootCauseAttributionTime,
serviceImpactingEvents,
summary,
title,
type
FROM azure.resource_health.availability_statuses
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $filter = '{{ $filter }}'
AND $expand = '{{ $expand }}'
;

Lifecycle Methods

Gets current availability status for a single resource.

EXEC azure.resource_health.availability_statuses.get_by_resource 
@resource_uri='{{ resource_uri }}' --required,
@$filter='{{ $filter }}',
@$expand='{{ $expand }}'
;