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

NameDatatypeDescription
idtextAn identifier that represents the Azure AD for customers tenant resource.
nametextThe name of the Azure AD for customers tenant resource.
billing_configtextfield from the properties object
create_tenant_propertiestextfield from the properties object
domain_nametextfield from the properties object
locationtextThe 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.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
skutextSKU properties of the Azure AD for customers tenant. Learn more about Azure AD for customers billing at https://aka.ms/ciambilling.
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource Tags
tenant_idtextfield from the properties object
typetextThe type of the Azure AD for customers tenant resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, subscriptionIdGet the Azure AD for customers tenant resource.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGet 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.
createINSERTresourceGroupName, resourceName, subscriptionId, data__location, data__properties, data__skuInitiates 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
deleteDELETEresourceGroupName, resourceName, subscriptionIdInitiates 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.
updateUPDATEresourceGroupName, resourceName, subscriptionIdUpdate the Azure AD for customers tenant resource.

SELECT examples

Get all the Azure AD for customers tenant resources in a subscription.

SELECT
id,
name,
billing_config,
create_tenant_properties,
domain_name,
location,
provisioning_state,
resourceGroupName,
resourceName,
sku,
subscriptionId,
system_data,
tags,
tenant_id,
type
FROM azure.aad_b2c.vw_ciam_tenants
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.aad_b2c.ciam_tenants (
resourceGroupName,
resourceName,
subscriptionId,
data__location,
data__properties,
data__sku,
location,
sku,
properties,
tags
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ data__properties }}',
'{{ data__sku }}',
'{{ location }}',
'{{ sku }}',
'{{ properties }}',
'{{ tags }}'
;

UPDATE example

Updates a ciam_tenants resource.

/*+ update */
UPDATE azure.aad_b2c.ciam_tenants
SET
sku = '{{ sku }}',
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified ciam_tenants resource.

/*+ delete */
DELETE FROM azure.aad_b2c.ciam_tenants
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';