Create And Remove Tenant in Azure Automatically

Jan Jakob 1 Reputation point


I would like to create hybrid environment for developing and application testing. I have an automatically created Active Directory with accounts, computers, etc. And I will need to sync the on-prem AD with Azure AD. Is there any option how to automatically create and remove tenant in Azure or Office 365 tenant with Azure AD?

Thanks in advanced.

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,748 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. soumi-MSFT 11,651 Reputation points Microsoft Employee

    anonymous user, There is no way you can create or delete a tenant in programmatic way like using a Powershell script.

    You can create, modify and delete a domain under a tenant using PS cmdlets, which you can find here.

    Hope this helps.


    Please take a moment to "Mark as Answer" and/or "Vote as Helpful" wherever applicable. Thanks!

    0 comments No comments