#Testing Multi-tenancy

1 messages · Page 1 of 1 (latest)

candid summit
#

Hi, I'm just wondering what practices people use when testing multi-tenancy in there app.

Do you create multiple azure accounts and then link them to the central tenant Microsoft Entra? i think this would require multiple bank cards.
Does azure offer anything to test this out, like temp development tenants?

Thanks

orchid plinth
#

You don’t need that you can just set up different tenants, azure allows you to do that, then just invite the user to that tenant etc and set up app registration? 😀

candid summit
#

I havent actually looked at how a tenant is added in azure yet. My understanding is that you have a central tenant ( where the app is registered), are you saying somewhere in Microsoft Entra ID i setup the tenants? the only thing i have seen is ticking a box when registering the app. thanks for the Reply 🙂

orchid plinth
#

Sure, no worries.

You should be able to do that by going to the Azure portal, then to the Azure Active Directory.

There should be a button there that says "Manage tenants." You should be able to create a new tenant from there. Yes, you are right; you always have one singular tenant that is created when you sign up with your credit card information, email, etc. However, you can create more tenants in the portal. You can create different users in these tenants to test a multi-tenant application.

I’ll try to explain the steps.

After going to "Manage tenants" and clicking on "Create," follow the prompt. Just set a domain name—you don’t need to own a domain name or anything.

One thing to know is that the tenant, even though you create it through another tenant, is not a sub-tenant. It will be completely independent and isolated from others.

The default limit for tenant creation is actually 500 tenants per Azure AD account, which is quite a lot.

Basically, for the multi-tenant scenario, if you have an application registered in Tenant A (which I assume you will), once you do the app registration and set it up, you can then invite the new tenant to Tenant A.

That way, Tenant B (if we assume this is the name) will be invited to Tenant A but will still be completely independent of Tenant A.

When setting up a multi-tenant application in Azure, there’s an important step you need to perform in the app registration process to allow Tenant B to access the application registered in Tenant A. Which I can explain later:

But please first tell me when you have created the tenant; then we can proceed with the app registration. Otherwise, I think it might be overwhelming. 🙂