azure cli command how to validate ou strucutre in the active directory

Vedanth Pulipati 241 Reputation points
2022-01-27T07:54:08.683+00:00

I am trying to validate the Organizational unit is present in the AD or not using Azure CLI command but couldn't found any references.

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

Accepted answer
  1. JamesTran-MSFT 36,906 Reputation points Microsoft Employee Moderator
    2022-01-27T22:25:23.657+00:00

    @Vedanth Pulipati
    Thank you for your post!

    Adding onto what @Azure Engineer mentioned, OUs don't show up using the Microsoft Graph API or in the Azure AD UI; they're only available in your managed domain. For more info. Therefore, the use of Azure CLI won't be possible when trying to validate the OU structure in Active Directory. However, you should be able to use the Active Directory Administrative Tools within the Active Directory Administrative Center to view, edit, and create resources in a managed domain, including OUs.

    Additional Links:
    Custom OU considerations and limitations
    How to Manage OUs in Active Directory

    I've also added the windows-active-directory tag to this thread so their community can take a look into this as well.

    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.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.