question

JigneshPatel-7305 avatar image
0 Votes"
JigneshPatel-7305 asked JigneshPatel-7305 commented

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?

dotnet-csharpazure-ad-b2cazure-ad-tenant
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AlanKinane avatar image
0 Votes"
AlanKinane answered

This might help if you are using the Partner Center API: https://docs.microsoft.com/en-us/partner-center/develop/create-a-customer

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JamesTran-MSFT avatar image
0 Votes"
JamesTran-MSFT answered JigneshPatel-7305 commented

@JigneshPatel-7305
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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks @AlanKinane & @JamesTran-MSFT for sharing possibility.

@JamesTran-MSFT If it's not possible using C# then I've to go with Azure portal only..

0 Votes 0 ·