Skip to main content

ou_containers

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

Overview

Nameou_containers
TypeResource
Idazure.aad_domain_services.ou_containers

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
nametextThe name of the resource
accountstextfield from the properties object
container_idtextfield from the properties object
deployment_idtextfield from the properties object
distinguished_nametextfield from the properties object
domainServiceNametextfield from the properties object
domain_nametextfield from the properties object
ouContainerNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
service_statustextfield from the properties object
subscriptionIdtextfield from the properties object
tenant_idtextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTdomainServiceName, ouContainerName, resourceGroupName, subscriptionIdGet OuContainer in DomainService instance.
listSELECTdomainServiceName, resourceGroupName, subscriptionIdThe List of OuContainers in DomainService instance.
createINSERTdomainServiceName, ouContainerName, resourceGroupName, subscriptionIdThe Create OuContainer operation creates a new OuContainer under the specified Domain Service instance.
deleteDELETEdomainServiceName, ouContainerName, resourceGroupName, subscriptionIdThe Delete OuContainer operation deletes specified OuContainer.
updateUPDATEdomainServiceName, ouContainerName, resourceGroupName, subscriptionIdThe Update OuContainer operation can be used to update the existing OuContainers.

SELECT examples

The List of OuContainers in DomainService instance.

SELECT
id,
name,
accounts,
container_id,
deployment_id,
distinguished_name,
domainServiceName,
domain_name,
ouContainerName,
provisioning_state,
resourceGroupName,
service_status,
subscriptionId,
tenant_id,
type
FROM azure.aad_domain_services.vw_ou_containers
WHERE domainServiceName = '{{ domainServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.aad_domain_services.ou_containers (
domainServiceName,
ouContainerName,
resourceGroupName,
subscriptionId,
accountName,
spn,
password
)
SELECT
'{{ domainServiceName }}',
'{{ ouContainerName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ accountName }}',
'{{ spn }}',
'{{ password }}'
;

UPDATE example

Updates a ou_containers resource.

/*+ update */
UPDATE azure.aad_domain_services.ou_containers
SET
accountName = '{{ accountName }}',
spn = '{{ spn }}',
password = '{{ password }}'
WHERE
domainServiceName = '{{ domainServiceName }}'
AND ouContainerName = '{{ ouContainerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified ou_containers resource.

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