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.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,444 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. soumi-MSFT 11,761 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!

    0 comments No comments