Skip to main content

b2c_tenants

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

Overview

Nameb2c_tenants
TypeResource
Idazure.aad_b2c.b2c_tenants

Fields

The following fields are returned by SELECT queries:

Azure AD B2C tenant resource successfully retrieved.

NameDatatypeDescription
idstringAn identifier that represents the Azure AD B2C tenant resource.
namestringThe name of the Azure AD B2C 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 B2C tenant resource properties
skuobjectSKU properties of the Azure AD B2C tenant. Learn more about Azure AD B2C billing at aka.ms/b2cBilling.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectResource Tags
typestringThe type of the B2C tenant resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, resourceNameGet the Azure AD B2C tenant resource.
list_by_resource_groupselectsubscriptionId, resourceGroupNameGet all the Azure AD B2C tenant resources in a resource group.
list_by_subscriptionselectsubscriptionIdGet all the Azure AD B2C tenant resources in a subscription.
createinsertsubscriptionId, resourceGroupName, resourceName, data__location, data__sku, data__propertiesInitiates an async request to create both the Azure AD B2C 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 B2C tenant resource.
deletedeletesubscriptionId, resourceGroupName, resourceNameInitiates an async operation to delete the Azure AD B2C 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 domain name of the Azure AD B2C tenant.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Get the Azure AD B2C tenant resource.

SELECT
id,
name,
location,
properties,
sku,
systemData,
tags,
type
FROM azure.aad_b2c.b2c_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 B2C 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.b2c_tenants (
data__location,
data__properties,
data__sku,
data__tags,
subscriptionId,
resourceGroupName,
resourceName
)
SELECT
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ sku }}' /* required */,
'{{ tags }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ resourceName }}'
RETURNING
id,
name,
location,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Update the Azure AD B2C tenant resource.

UPDATE azure.aad_b2c.b2c_tenants
SET
data__sku = '{{ sku }}',
data__properties = '{{ properties }}',
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 B2C tenant and Azure resource. The resource deletion can only happen as the last step in the tenant deletion process.

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