Skip to main content

adds_services

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

Overview

Nameadds_services
TypeResource
Idazure.ad_hybrid_health_service.adds_services

Fields

The following fields are returned by SELECT queries:

The Active Directory Domain Controller service as specified by the serviceName property.

NameDatatypeDescription
idstringThe id of the service.
activeAlertsintegerThe count of alerts that are currently active for the service.
additionalInformationstringThe additional information related to the service.
createdDatestring (date-time)The date and time, in UTC, when the service was onboarded to Azure Active Directory Connect Health.
customNotificationEmailsarrayThe list of additional emails that are configured to receive notifications about the service.
disabledbooleanIndicates if the service is disabled or not.
displayNamestringThe display name of the service.
healthstringThe health of the service.
lastDisabledstring (date-time)The date and time, in UTC, when the service was last disabled.
lastUpdatedstring (date-time)The date or time , in UTC, when the service properties were last updated.
monitoringConfigurationsComputedobjectThe monitoring configuration of the service which determines what activities are monitored by Azure Active Directory Connect Health.
monitoringConfigurationsCustomizedobjectThe customized monitoring configuration of the service which determines what activities are monitored by Azure Active Directory Connect Health.
notificationEmailEnabledbooleanIndicates if email notification is enabled or not.
notificationEmailEnabledForGlobalAdminsbooleanIndicates if email notification is enabled for global administrators of the tenant.
notificationEmailsarrayThe list of emails to whom service notifications will be sent.
notificationEmailsEnabledForGlobalAdminsbooleanIndicates if email notification is enabled for global administrators of the tenant.
originalDisabledStatebooleanGets the original disable state.
resolvedAlertsintegerThe total count of alerts that has been resolved for the service.
serviceIdstringThe id of the service.
serviceNamestringThe name of the service.
signaturestringThe signature of the service.
simplePropertiesobjectList of service specific configuration properties.
tenantIdstringThe id of the tenant to which the service is registered to.
typestringThe service type for the services onboarded to Azure Active Directory Connect Health. Depending on whether the service is monitoring, ADFS, Sync or ADDS roles, the service type can either be AdFederationService or AadSyncService or AdDomainService.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectserviceNameGets the details of an Active Directory Domain Service for a tenant having Azure AD Premium license and is onboarded to Azure Active Directory Connect Health.
listselect$filter, serviceType, skipCount, takeCountGets the details of Active Directory Domain Service, for a tenant, that are onboarded to Azure Active Directory Connect Health.
updateupdateserviceNameUpdates an Active Directory Domain Service properties of an onboarded service.
deletedeleteserviceNameconfirmDeletes an Active Directory Domain Service which is onboarded to Azure Active Directory Connect Health.
addexecOnboards a service for a given tenant in Azure Active Directory Connect Health.

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
serviceNamestringThe name of the service which needs to be deleted.
$filterstringThe service property filter to apply.
confirmbooleanIndicates if the service will be permanently deleted or disabled. True indicates that the service will be permanently deleted and False indicates that the service will be marked disabled and then deleted after 30 days, if it is not re-registered.
serviceTypestringThe service type for the services onboarded to Azure Active Directory Connect Health. Depending on whether the service is monitoring, ADFS, Sync or ADDS roles, the service type can either be AdFederationService or AadSyncService or AdDomainService.
skipCountintegerThe skip count, which specifies the number of elements that can be bypassed from a sequence and then return the remaining elements.
takeCountintegerThe take count , which specifies the number of elements that can be returned from a sequence.

SELECT examples

Gets the details of an Active Directory Domain Service for a tenant having Azure AD Premium license and is onboarded to Azure Active Directory Connect Health.

SELECT
id,
activeAlerts,
additionalInformation,
createdDate,
customNotificationEmails,
disabled,
displayName,
health,
lastDisabled,
lastUpdated,
monitoringConfigurationsComputed,
monitoringConfigurationsCustomized,
notificationEmailEnabled,
notificationEmailEnabledForGlobalAdmins,
notificationEmails,
notificationEmailsEnabledForGlobalAdmins,
originalDisabledState,
resolvedAlerts,
serviceId,
serviceName,
signature,
simpleProperties,
tenantId,
type
FROM azure.ad_hybrid_health_service.adds_services
WHERE serviceName = '{{ serviceName }}' -- required
;

UPDATE examples

Updates an Active Directory Domain Service properties of an onboarded service.

UPDATE azure.ad_hybrid_health_service.adds_services
SET
data__id = '{{ id }}',
data__activeAlerts = {{ activeAlerts }},
data__additionalInformation = '{{ additionalInformation }}',
data__createdDate = '{{ createdDate }}',
data__customNotificationEmails = '{{ customNotificationEmails }}',
data__disabled = {{ disabled }},
data__displayName = '{{ displayName }}',
data__health = '{{ health }}',
data__lastDisabled = '{{ lastDisabled }}',
data__lastUpdated = '{{ lastUpdated }}',
data__monitoringConfigurationsComputed = '{{ monitoringConfigurationsComputed }}',
data__monitoringConfigurationsCustomized = '{{ monitoringConfigurationsCustomized }}',
data__notificationEmailEnabled = {{ notificationEmailEnabled }},
data__notificationEmailEnabledForGlobalAdmins = {{ notificationEmailEnabledForGlobalAdmins }},
data__notificationEmailsEnabledForGlobalAdmins = {{ notificationEmailsEnabledForGlobalAdmins }},
data__notificationEmails = '{{ notificationEmails }}',
data__originalDisabledState = {{ originalDisabledState }},
data__resolvedAlerts = {{ resolvedAlerts }},
data__serviceId = '{{ serviceId }}',
data__serviceName = '{{ serviceName }}',
data__signature = '{{ signature }}',
data__simpleProperties = '{{ simpleProperties }}',
data__tenantId = '{{ tenantId }}',
data__type = '{{ type }}'
WHERE
serviceName = '{{ serviceName }}' --required
RETURNING
id,
activeAlerts,
additionalInformation,
createdDate,
customNotificationEmails,
disabled,
displayName,
health,
lastDisabled,
lastUpdated,
monitoringConfigurationsComputed,
monitoringConfigurationsCustomized,
notificationEmailEnabled,
notificationEmailEnabledForGlobalAdmins,
notificationEmails,
notificationEmailsEnabledForGlobalAdmins,
originalDisabledState,
resolvedAlerts,
serviceId,
serviceName,
signature,
simpleProperties,
tenantId,
type;

DELETE examples

Deletes an Active Directory Domain Service which is onboarded to Azure Active Directory Connect Health.

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

Lifecycle Methods

Onboards a service for a given tenant in Azure Active Directory Connect Health.

EXEC azure.ad_hybrid_health_service.adds_services.add 
@@json=
'{
"id": "{{ id }}",
"activeAlerts": {{ activeAlerts }},
"additionalInformation": "{{ additionalInformation }}",
"createdDate": "{{ createdDate }}",
"customNotificationEmails": "{{ customNotificationEmails }}",
"disabled": {{ disabled }},
"displayName": "{{ displayName }}",
"health": "{{ health }}",
"lastDisabled": "{{ lastDisabled }}",
"lastUpdated": "{{ lastUpdated }}",
"monitoringConfigurationsComputed": "{{ monitoringConfigurationsComputed }}",
"monitoringConfigurationsCustomized": "{{ monitoringConfigurationsCustomized }}",
"notificationEmailEnabled": {{ notificationEmailEnabled }},
"notificationEmailEnabledForGlobalAdmins": {{ notificationEmailEnabledForGlobalAdmins }},
"notificationEmailsEnabledForGlobalAdmins": {{ notificationEmailsEnabledForGlobalAdmins }},
"notificationEmails": "{{ notificationEmails }}",
"originalDisabledState": {{ originalDisabledState }},
"resolvedAlerts": {{ resolvedAlerts }},
"serviceId": "{{ serviceId }}",
"serviceName": "{{ serviceName }}",
"signature": "{{ signature }}",
"simpleProperties": "{{ simpleProperties }}",
"tenantId": "{{ tenantId }}",
"type": "{{ type }}"
}'
;