b2c_tenants
Creates, updates, deletes, gets or lists a b2c_tenants
resource.
Overview
Name | b2c_tenants |
Type | Resource |
Id | azure.aad_b2c.b2c_tenants |
Fields
The following fields are returned by SELECT
queries:
- get
- list_by_resource_group
- list_by_subscription
Azure AD B2C tenant resource successfully retrieved.
Name | Datatype | Description |
---|---|---|
id | string | An identifier that represents the Azure AD B2C tenant resource. |
name | string | The name of the Azure AD B2C tenant resource. |
location | string | The 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. |
properties | object | The Azure AD B2C tenant resource properties |
sku | object | SKU properties of the Azure AD B2C tenant. Learn more about Azure AD B2C billing at aka.ms/b2cBilling. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | Resource Tags |
type | string | The type of the B2C tenant resource. |
List of Azure AD B2C tenants in resource group successfully retrieved.
Name | Datatype | Description |
---|---|---|
id | string | An identifier that represents the Azure AD B2C tenant resource. |
name | string | The name of the Azure AD B2C tenant resource. |
location | string | The 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. |
properties | object | The Azure AD B2C tenant resource properties |
sku | object | SKU properties of the Azure AD B2C tenant. Learn more about Azure AD B2C billing at aka.ms/b2cBilling. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | Resource Tags |
type | string | The type of the B2C tenant resource. |
Azure AD B2C tenant resources in subscription successfully retrieved.
Name | Datatype | Description |
---|---|---|
id | string | An identifier that represents the Azure AD B2C tenant resource. |
name | string | The name of the Azure AD B2C tenant resource. |
location | string | The 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. |
properties | object | The Azure AD B2C tenant resource properties |
sku | object | SKU properties of the Azure AD B2C tenant. Learn more about Azure AD B2C billing at aka.ms/b2cBilling. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | Resource Tags |
type | string | The type of the B2C tenant resource. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | subscriptionId , resourceGroupName , resourceName | Get the Azure AD B2C tenant resource. | |
list_by_resource_group | select | subscriptionId , resourceGroupName | Get all the Azure AD B2C tenant resources in a resource group. | |
list_by_subscription | select | subscriptionId | Get all the Azure AD B2C tenant resources in a subscription. | |
create | insert | subscriptionId , resourceGroupName , resourceName , data__location , data__sku , data__properties | 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. | |
update | update | subscriptionId , resourceGroupName , resourceName | Update the Azure AD B2C tenant resource. | |
delete | delete | subscriptionId , resourceGroupName , resourceName | 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. |
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.
Name | Datatype | Description |
---|---|---|
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
resourceName | string | The initial domain name of the Azure AD B2C tenant. |
subscriptionId | string | The ID of the target subscription. |
SELECT
examples
- get
- list_by_resource_group
- list_by_subscription
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
;
Get all the Azure AD B2C tenant resources in a resource group.
SELECT
id,
name,
location,
properties,
sku,
systemData,
tags,
type
FROM azure.aad_b2c.b2c_tenants
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
;
Get all the Azure AD B2C tenant resources in a subscription.
SELECT
id,
name,
location,
properties,
sku,
systemData,
tags,
type
FROM azure.aad_b2c.b2c_tenants
WHERE subscriptionId = '{{ subscriptionId }}' -- required
;
INSERT
examples
- create
- Manifest
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
;
# Description fields are for documentation purposes
- name: b2c_tenants
props:
- name: subscriptionId
value: string
description: Required parameter for the b2c_tenants resource.
- name: resourceGroupName
value: string
description: Required parameter for the b2c_tenants resource.
- name: resourceName
value: string
description: Required parameter for the b2c_tenants resource.
- name: location
value: string
description: |
The 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](https://aka.ms/B2CDataResidency) for more information.
- name: properties
value: object
- name: sku
value: object
description: |
SKU properties of the Azure AD B2C tenant. Learn more about Azure AD B2C billing at [aka.ms/b2cBilling](https://aka.ms/b2cBilling).
- name: tags
value: object
description: |
Resource Tags
UPDATE
examples
- update
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
- delete
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
;