Hi @Jakub Pernica
You might need to look at the Azure Resource Manager SDK for .NET.
you can find the sample here.
Regards
Geetha
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I'd like to know what are my options for such scenario:
Let's say I have a multitenant application. I want to onboard new tenants from my admin GUI. Each tenant will needs it's own SQL Database deployed in Azure. After specifying things like tenant name, id, etc. and submitting the process, I want to programmatically deploy an Azure SQL Database (single or possibly in already existing elastic pool), also add some records to the Azure App Configuration (which would already exist).
What would be the best way to achieve that and what are some alternatives? I would most likely have some .NET application for handling the onboarding process.
Thanks!
Hi @Jakub Pernica
You might need to look at the Azure Resource Manager SDK for .NET.
you can find the sample here.
Regards
Geetha
Here you will find a sample multitenant SaaS application using a database per tenant model, built on Azure SQL Database. On the source code and management scripts shared on the URL, you will find that the application creates a catalog database that holds the mapping between tenants and their databases. This mapping is managed using the shard map management features of the Elastic Database Client Library, which also provides efficient connection management to the application. That is the recommended approach on a database per tenant model.
If you want, the databases can be hosted in elastic pools to provide cost-efficient and easy performance management, which leverages the unpredictable usage patterns of the tenants.
Here you will find more information about multi-tenant SaaS apps.