I'm rather confused about the relationship between Azure AD, subscriptions, resources and Azure AD B2C.
This is how I think it's tied together:
This gives the following example hierarchy:
Do correct me if I'm wrong, please!
In the Azure portal, I have a B2C tenant resource in my AD directory:
Also, from the menu in the top right corner, I can click 'Switch directory', and see both my AD directory and my B2C directory:
When I switch to the B2C directory, I get the same left menu that I have in my AD directory:
Ok.
So I have a menu option to create a resource, and I can also view resources inside this B2C directory!
Questions:
I'm thinking this is simply a quirk of the Azure Portal. I don't see how you could create a resource inside a B2C directory using e.g. ARM / Bicep / Terraform.
You cannot create resources in B2C tenant. In general resources are created and belong to the subscription, not the tenant. You would have to have the subscription assigned to your B2C tenant but that is not possible.
Yes it is a resource, belonging to specific subscription (for billing purposes) and subscription is linked to AAD tenant
No, the main goal of B2C is to manage identities. If it would be ever possible it wouldn't work well. Much better idea is to create an additional subscription in your base tenant if you ever need to separate resources (for example for billing purposes).