Skip to main content

service_members

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

Overview

Nameservice_members
TypeResource
Idazure.ad_hybrid_health_service.service_members

Fields

The following fields are returned by SELECT queries:

The specific service member.

NameDatatypeDescription
activeAlertsintegerThe total number of alerts that are currently active for the server.
additionalInformationstringThe additional information, if any, for the server.
createdDatestring (date-time)The date time , in UTC, when the server was onboarded to Azure Active Directory Connect Health.
dimensionsobjectThe server specific configuration related dimensions.
disabledbooleanIndicates if the server is disabled or not.
disabledReasonintegerThe reason for disabling the server.
installedQfesobjectThe list of installed QFEs for the server.
lastDisabledstring (date-time)The date and time , in UTC, when the server was last disabled.
lastRebootstring (date-time)The date and time, in UTC, when the server was last rebooted.
lastServerReportedMonitoringLevelChangestring (date-time)The date and time, in UTC, when the server's data monitoring configuration was last changed.
lastUpdatedstring (date-time)The date and time, in UTC, when the server properties were last updated.
machineIdstringThe id of the machine.
machineNamestringThe name of the server.
monitoringConfigurationsComputedobjectThe monitoring configuration of the server which determines what activities are monitored by Azure Active Directory Connect Health.
monitoringConfigurationsCustomizedobjectThe customized monitoring configuration of the server which determines what activities are monitored by Azure Active Directory Connect Health.
osNamestringThe name of the operating system installed in the machine.
osVersionstringThe version of the operating system installed in the machine.
propertiesobjectServer specific properties.
recommendedQfesobjectThe list of recommended hotfixes for the server.
resolvedAlertsintegerThe total count of alerts that are resolved for this server.
rolestringThe service role that is being monitored in the server.
serverReportedMonitoringLevelstringThe monitoring level reported by the server.
serviceIdstringThe service id to whom this server belongs.
serviceMemberIdstringThe id of the server.
statusstringThe health status of the server.
tenantIdstringThe tenant id to whom this server belongs.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectserviceName, serviceMemberIdGets the details of a server, for a given service, that are onboarded to Azure Active Directory Connect Health Service.
listselectserviceName$filter, dimensionType, dimensionSignatureGets the details of the servers, for a given service, that are onboarded to Azure Active Directory Connect Health Service.
deletedeleteserviceName, serviceMemberIdconfirmDeletes a server that has been onboarded to Azure Active Directory Connect Health Service.
addexecserviceNameOnboards a server, for a given service, to Azure Active Directory Connect Health Service.
delete_dataexecserviceName, serviceMemberIdDeletes the data uploaded by the server to Azure Active Directory Connect Health 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
serviceMemberIdstring (uuid)The server Id.
serviceNamestringThe name of the service.
$filterstringThe server property filter to apply.
confirmbooleanIndicates if the server will be permanently deleted or disabled. True indicates that the server will be permanently deleted and False indicates that the server will be marked disabled and then deleted after 30 days, if it is not re-registered.
dimensionSignaturestringThe value of the dimension.
dimensionTypestringThe server specific dimension.

SELECT examples

Gets the details of a server, for a given service, that are onboarded to Azure Active Directory Connect Health Service.

SELECT
activeAlerts,
additionalInformation,
createdDate,
dimensions,
disabled,
disabledReason,
installedQfes,
lastDisabled,
lastReboot,
lastServerReportedMonitoringLevelChange,
lastUpdated,
machineId,
machineName,
monitoringConfigurationsComputed,
monitoringConfigurationsCustomized,
osName,
osVersion,
properties,
recommendedQfes,
resolvedAlerts,
role,
serverReportedMonitoringLevel,
serviceId,
serviceMemberId,
status,
tenantId
FROM azure.ad_hybrid_health_service.service_members
WHERE serviceName = '{{ serviceName }}' -- required
AND serviceMemberId = '{{ serviceMemberId }}' -- required
;

DELETE examples

Deletes a server that has been onboarded to Azure Active Directory Connect Health Service.

DELETE FROM azure.ad_hybrid_health_service.service_members
WHERE serviceName = '{{ serviceName }}' --required
AND serviceMemberId = '{{ serviceMemberId }}' --required
AND confirm = '{{ confirm }}'
;

Lifecycle Methods

Onboards a server, for a given service, to Azure Active Directory Connect Health Service.

EXEC azure.ad_hybrid_health_service.service_members.add 
@serviceName='{{ serviceName }}' --required
@@json=
'{
"serviceMemberId": "{{ serviceMemberId }}",
"serviceId": "{{ serviceId }}",
"tenantId": "{{ tenantId }}",
"activeAlerts": {{ activeAlerts }},
"additionalInformation": "{{ additionalInformation }}",
"createdDate": "{{ createdDate }}",
"dimensions": "{{ dimensions }}",
"disabled": {{ disabled }},
"disabledReason": {{ disabledReason }},
"installedQfes": "{{ installedQfes }}",
"lastDisabled": "{{ lastDisabled }}",
"lastReboot": "{{ lastReboot }}",
"lastServerReportedMonitoringLevelChange": "{{ lastServerReportedMonitoringLevelChange }}",
"lastUpdated": "{{ lastUpdated }}",
"machineId": "{{ machineId }}",
"machineName": "{{ machineName }}",
"monitoringConfigurationsComputed": "{{ monitoringConfigurationsComputed }}",
"monitoringConfigurationsCustomized": "{{ monitoringConfigurationsCustomized }}",
"osName": "{{ osName }}",
"osVersion": "{{ osVersion }}",
"properties": "{{ properties }}",
"recommendedQfes": "{{ recommendedQfes }}",
"resolvedAlerts": {{ resolvedAlerts }},
"role": "{{ role }}",
"serverReportedMonitoringLevel": "{{ serverReportedMonitoringLevel }}",
"status": "{{ status }}"
}'
;