This might help if you are using the Partner Center API: https://learn.microsoft.com/en-us/partner-center/develop/create-a-customer
How to create Azure Directory(Tenant) dynamically from C# application
I would like to create Azure Directory(Tenant) dynamically from C# application. Is it possible if yes then do we've any reference links?
2 answers
Sort by: Most helpful
-
-
JamesTran-MSFT 36,361 Reputation points Microsoft Employee
2021-10-14T18:09:43.6+00:00 @Jignesh Patel
Thank you for your post!Unfortunately, it's not possible to create an Azure Active Directory (Azure AD) tenant using C#. As of right now, the only way to create an Azure AD tenant would be through the Azure Portal. For more info - Create a new tenant in Azure Active Directory.
If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.----------
Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.