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

NameDatatypeDescription
idtextAn identifier that represents the Azure AD B2C tenant resource.
nametextThe name of the Azure AD B2C tenant resource.
billing_configtextfield from the properties object
is_go_local_tenanttextfield 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.
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
skutextSKU properties of the Azure AD B2C tenant. Learn more about Azure AD B2C billing at aka.ms/b2cBilling.
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource Tags
tenant_idtextfield from the properties object
typetextThe type of the B2C tenant resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, subscriptionIdGet the Azure AD B2C tenant resource.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGet all the Azure AD B2C tenant resources in a resource group.
list_by_subscriptionSELECTsubscriptionIdGet all the Azure AD B2C tenant resources in a subscription.
createINSERTresourceGroupName, resourceName, subscriptionId, data__location, data__properties, data__skuInitiates 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.
deleteDELETEresourceGroupName, resourceName, subscriptionIdInitiates 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.
updateUPDATEresourceGroupName, resourceName, subscriptionIdUpdate the Azure AD B2C tenant resource.

SELECT examples

Get all the Azure AD B2C tenant resources in a subscription.

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

INSERT example

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

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

UPDATE example

Updates a b2c_tenants resource.

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

DELETE example

Deletes the specified b2c_tenants resource.

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