Create And Remove Tenant in Azure Automatically

Jan Jakob 1 Reputation point
2019-12-06T12:43:59.57+00:00

Hi,

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.
12,604 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. soumi-MSFT 11,601 Reputation points Microsoft Employee
    2019-12-06T13:42:29.893+00:00

    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!

    No comments