Skip to main content

ciam_tenants

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

Overview

Nameciam_tenants
TypeResource
Idazure.aad_b2c.ciam_tenants

Fields

The following fields are returned by SELECT queries:

Azure AD for customers tenant resource successfully retrieved.

NameDatatypeDescription
idstringAn identifier that represents the Azure AD for customers tenant resource.
namestringThe name of the Azure AD for customers tenant resource.
locationstringThe location in which the resource is hosted and data resides. Can be one of 'United States', 'Europe', 'Asia Pacific', or 'Australia'. Refer to this documentation for more information.
propertiesobjectThe Azure AD for customers tenant resource properties
skuobjectSKU properties of the Azure AD for customers tenant. Learn more about Azure AD for customers billing at https://aka.ms/ciambilling.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectResource Tags
typestringThe type of the Azure AD for customers tenant resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, resourceNameGet the Azure AD for customers tenant resource.
list_by_resource_groupselectsubscriptionId, resourceGroupNameGet all the Azure AD for customers tenants resources in a resource group.
list_by_subscriptionselectsubscriptionIdGet all the Azure AD for customers tenant resources in a subscription.
createinsertsubscriptionId, resourceGroupName, resourceName, data__location, data__sku, data__propertiesInitiates an async request to create both the Azure AD for customers tenant and the corresponding Azure resource linked to a subscription. Note: Please check name availability before creating a new tenant
updateupdatesubscriptionId, resourceGroupName, resourceNameUpdate the Azure AD for customers tenant resource.
deletedeletesubscriptionId, resourceGroupName, resourceNameInitiates an async operation to delete the Azure AD for customers tenant and Azure resource. The resource deletion can only happen as the last step in the tenant deletion process.

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
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
resourceNamestringThe initial sub domain of the tenant.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Get the Azure AD for customers tenant resource.

SELECT
id,
name,
location,
properties,
sku,
systemData,
tags,
type
FROM azure.aad_b2c.ciam_tenants
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND resourceName = '{{ resourceName }}' -- required
;

INSERT examples

Initiates an async request to create both the Azure AD for customers tenant and the corresponding Azure resource linked to a subscription. Note: Please check name availability before creating a new tenant

INSERT INTO azure.aad_b2c.ciam_tenants (
data__location,
data__sku,
data__properties,
data__tags,
subscriptionId,
resourceGroupName,
resourceName
)
SELECT
'{{ location }}' /* required */,
'{{ sku }}' /* required */,
'{{ properties }}' /* required */,
'{{ tags }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ resourceName }}'
RETURNING
id,
name,
location,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Update the Azure AD for customers tenant resource.

UPDATE azure.aad_b2c.ciam_tenants
SET
data__sku = '{{ sku }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND resourceName = '{{ resourceName }}' --required
RETURNING
id,
name,
location,
properties,
sku,
systemData,
tags,
type;

DELETE examples

Initiates an async operation to delete the Azure AD for customers tenant and Azure resource. The resource deletion can only happen as the last step in the tenant deletion process.

DELETE FROM azure.aad_b2c.ciam_tenants
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND resourceName = '{{ resourceName }}' --required
;