Skip to main content

health_validations

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

Overview

Namehealth_validations
TypeResource
Idazure.database_watcher.health_validations

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}. # pylint: disable=line-too-long
namestringThe name of the resource.
endTimestring (date-time)The end time of health validation, in UTC. Required.
issuesarrayThe list of issues found by health validation. Required.
provisioningStatestringThe provisioning state of the health validation resource. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled)
startTimestring (date-time)The start time of health validation, in UTC. Required.
statusstringThe current health validation status. Required. Known values are: "NotStarted", "Running", "Succeeded", "Failed", "Canceled", and "TimedOut". (NotStarted, Running, Succeeded, Failed, Canceled, TimedOut)
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_group_name, watcher_name, health_validation_name, subscription_idGet a HealthValidation.
list_by_parentselectresource_group_name, watcher_name, subscription_idList HealthValidation resources by Watcher.
start_validationexecresource_group_name, watcher_name, health_validation_name, subscription_idStarts health validation for a watcher.

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_validation_namestringThe health validation resource name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
watcher_namestringThe database watcher name. Required.

SELECT examples

Get a HealthValidation.

SELECT
id,
name,
endTime,
issues,
provisioningState,
startTime,
status,
systemData,
type
FROM azure.database_watcher.health_validations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND watcher_name = '{{ watcher_name }}' -- required
AND health_validation_name = '{{ health_validation_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Starts health validation for a watcher.

EXEC azure.database_watcher.health_validations.start_validation 
@resource_group_name='{{ resource_group_name }}' --required,
@watcher_name='{{ watcher_name }}' --required,
@health_validation_name='{{ health_validation_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;