Skip to main content

domain_services

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

Overview

Namedomain_services
TypeResource
Idazure.aad_domain_services.domain_services

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
nametextThe name of the resource
config_diagnosticstextfield from the properties object
deployment_idtextfield from the properties object
domainServiceNametextfield from the properties object
domain_configuration_typetextfield from the properties object
domain_nametextfield from the properties object
domain_security_settingstextfield from the properties object
filtered_synctextfield from the properties object
ldaps_settingstextfield from the properties object
migration_propertiestextfield from the properties object
notification_settingstextfield from the properties object
provisioning_statetextfield from the properties object
replica_setstextfield from the properties object
resourceGroupNametextfield from the properties object
resource_forest_settingstextfield from the properties object
skutextfield from the properties object
subscriptionIdtextfield from the properties object
sync_application_idtextfield from the properties object
sync_ownertextfield from the properties object
sync_scopetextfield from the properties object
tenant_idtextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdomainServiceName, resourceGroupName, subscriptionIdThe Get Domain Service operation retrieves a json representation of the Domain Service.
listSELECTsubscriptionIdThe List Domain Services in Subscription operation lists all the domain services available under the given subscription (and across all resource groups within that subscription).
list_by_resource_groupSELECTresourceGroupName, subscriptionIdThe List Domain Services in Resource Group operation lists all the domain services available under the given resource group.
create_or_updateINSERTdomainServiceName, resourceGroupName, subscriptionIdThe Create Domain Service operation creates a new domain service with the specified parameters. If the specific service already exists, then any patchable properties will be updated and any immutable properties will remain unchanged.
deleteDELETEdomainServiceName, resourceGroupName, subscriptionIdThe Delete Domain Service operation deletes an existing Domain Service.
updateUPDATEdomainServiceName, resourceGroupName, subscriptionIdThe Update Domain Service operation can be used to update the existing deployment. The update call only supports the properties listed in the PATCH body.

SELECT examples

The List Domain Services in Subscription operation lists all the domain services available under the given subscription (and across all resource groups within that subscription).

SELECT
id,
name,
config_diagnostics,
deployment_id,
domainServiceName,
domain_configuration_type,
domain_name,
domain_security_settings,
filtered_sync,
ldaps_settings,
migration_properties,
notification_settings,
provisioning_state,
replica_sets,
resourceGroupName,
resource_forest_settings,
sku,
subscriptionId,
sync_application_id,
sync_owner,
sync_scope,
tenant_id,
type,
version
FROM azure.aad_domain_services.vw_domain_services
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new domain_services resource.

/*+ create */
INSERT INTO azure.aad_domain_services.domain_services (
domainServiceName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ domainServiceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a domain_services resource.

/*+ update */
UPDATE azure.aad_domain_services.domain_services
SET
properties = '{{ properties }}'
WHERE
domainServiceName = '{{ domainServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified domain_services resource.

/*+ delete */
DELETE FROM azure.aad_domain_services.domain_services
WHERE domainServiceName = '{{ domainServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';