简体   繁体   English

连接到虚拟机(Azure)中存在的Active Directory

[英]Connecting to Active Directory which is present in Virtual Machine (Azure)

We are having a situation where we need to connect to Active Directory that is setup in a Virtual Machine (in Azure Environment) from a Desktop Application / Windows Service (C#). 我们遇到一种情况,需要从桌面应用程序/ Windows服务(C#)连接到在虚拟机(在Azure环境中)中设置的Active Directory。 As I am new to AD, need to know the setp-by-step procedure which I need to follow for: 由于我是AD新手,因此需要了解逐步执行的setp步骤:

  1. Connecting to Active Directory (hosted in Virtual Machine) from my desktop app/ Windows service (locally). 从我的桌面应用程序/ Windows服务(本地)连接到Active Directory(托管在虚拟机中)。
  2. Get almost all the information from Active Directory (Users, Groups etc...) 从Active Directory获取几乎所有信息(用户,组等...)
  3. Able to create / update / delete information (Users / Groups) from my app to Active Directory (hosted in VM). 能够从我的应用程序创建/更新/删除信息(用户/组)到Active Directory(托管在VM中)。

Any help would be appreciated. 任何帮助,将不胜感激。

Here http://blogs.msdn.com/b/kaevans/archive/2015/01/21/install-a-new-active-directory-forest-on-an-azure-virtual-network.aspx and here http://blogs.technet.com/b/keithmayer/archive/2013/01/17/step-by-step-building-a-windows-server-2012-active-directory-forest-in-the-cloud-with-windows-azure.aspx are some instructions to get you started creating the Active Directory forest in the cloud. 在这里http://blogs.msdn.com/b/kaevans/archive/2015/01/21/install-a-new-active-directory-forest-on-an-azure-virtual-network.aspx和这里http: //blogs.technet.com/b/keithmayer/archive/2013/01/17/step-by-step-step-building-a-windows-server-2012-active-directory-forest-in-the-cloud-with- windows-azure.aspx是一些指导,可帮助您开始在云中创建Active Directory林。

Once AD is installed you need to connect to it from inside your computer/organization. 安装AD后,您需要从计算机/组织内部连接到它。 Depending on your needs, there are several ways (point-to-site, site-to-site and ExpressRoute) you can connect to a virtual network in Azure. 根据您的需求,可以通过多种方式(点对站点,站点对站点和ExpressRoute)连接到Azure中的虚拟网络。

Eg see https://azure.microsoft.com/en-us/documentation/articles/vpn-gateway-site-to-site-create/ for instructions on how to set up a site-to-site VPN to connect your organization desktop machines to the forest. 例如,请参阅https://azure.microsoft.com/zh-cn/documentation/articles/vpn-gateway-site-to-site-create/,以获取有关如何设置站点对站点VPN连接组织的说明。台式机到林。

Now you should be able to join your desktop machines to the AD forest. 现在,您应该可以将台式机加入AD林了。

After this you should be able to start using the newly created AD in your on-prem network. 之后,您应该可以在本地网络中开始使用新创建的AD。 See http://www.codeproject.com/Articles/18102/Howto-Almost-Everything-In-Active-Directory-via-C for starts how to do the most common operations. 请参阅http://www.codeproject.com/Articles/18102/Howto-Almost-Everything-In-Active-Directory-via-C了解如何开始最常见的操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM