def METHOD_NAME(resource_group_name: Optional[str] = None,
                    resource_name: Optional[str] = None,
                    opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetB2CTenantResult:
    """
    Get the Azure AD B2C tenant resource.
    Azure REST API version: 2021-04-01.
    :param str resource_group_name: The name of the resource group.
    :param str resource_name: The initial domain name of the Azure AD B2C tenant.
    """
    __args__ = dict()
    __args__['resourceGroupName'] = resource_group_name
    __args__['resourceName'] = resource_name
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:azureactivedirectory:getB2CTenant', __args__, opts=opts, typ=GetB2CTenantResult).value
    return AwaitableGetB2CTenantResult(
        billing_config=pulumi.get(__ret__, 'billing_config'),
        id=pulumi.get(__ret__, 'id'),
        location=pulumi.get(__ret__, 'location'),
        name=pulumi.get(__ret__, 'name'),
        sku=pulumi.get(__ret__, 'sku'),
        system_data=pulumi.get(__ret__, 'system_data'),
        tags=pulumi.get(__ret__, 'tags'),
        tenant_id=pulumi.get(__ret__, 'tenant_id'),
        type=pulumi.get(__ret__, 'type'))