How to connect to windows machine domain controller using Azure Connect-AzAccount Or service principle account?

Jayon Niravel 21 Reputation points
2022-03-01T17:57:44.607+00:00

Please suggest how to connect as per below steps?

  1. I will login to remote tenant using Connect-AzAccount or Service principle account credential
  2. Now I want to connect the domain controller and fire LDAP commands. Is it possible to connect?
  3. Should I use PowerShell to achieve this?
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,966 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,400 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Carlos Solís Salazar 16,701 Reputation points MVP
    2022-03-01T21:46:19.853+00:00

    You can use a combination of custom scripts for Windows VM https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windows and a PowerShell script to join a VM to your domain.

    ----------

    Please "Accept as Answer" and Upvote if any of the above helped so that, it can help others in the community looking for remediation for similar issues.

    Regards,
    Carlos Solís Salazar