我如何连接到Azure的AD域控制器?连接到、域控制器、Azure、AD

2023-09-08 13:18:02 作者:╮(╯﹏╰)╭

我通过 MSDN 中所建议的Azure的教程工作通过@ BrentDa codeMonkey。基本上,我想学习如何建立一个Windows域,这样我就可以用它来做一些其他SQL Server教程。见我的previous问题here.

我遇到一个问题,我无法连接我的服务器到我的Active Directory名称控制器。当我尝试添加我的域名系统属性中的服务器,我得到一个错误信息,而不是Windows安全弹出对话框。

  

这是Active Directory的名称控制器(AD DC)域corp.ejm.com无法联系。确保域名输入正确。 [...]当DNS中查询用于定位一个Active Directory名称控制器(公元NC)域corp.ejm.com服务位置(SRV)资源记录出现以下错误;错误是:此操作返回,因为超时时间已过。

请注意,我能够验证DC的IP地址,用的 NSLOOKUP 的在命令提示符下。

这更为复杂的问题是,该教程说明不完全匹配,我所看到的在Azure上。举例来说,我不能设置SQL Server虚拟机时所使用的Windows Server 2008 R2 SP1。我不得不使用Windows Server 2012中的那些,但仍使用2008年的DC。我认为这个问题可能是一个矛盾的操作系统,所以我试图再次运行教程使用Windows Server 2012中的一切。同样的错误信息。

另外请注意:本教程说我应该使用示例域,corp.contoso.com。我用我自己的例子,而不是域名,corp.ejm.com。我不知道这有什么用它做。我的例子域未在Internet上注册。

解决方案

连接到DC虚拟机,并​​找出它的ip地址(10 *)。

转到虚拟网络配置和设置DNS服务器的IP地址来表示。

另外,还要确保你使用这个IP地址在步骤#8中安装SQL虚拟机部分。

win10系统时间不与域控制器时间同步

现在尝试加入SQL虚拟机到域。

希望这有助于。

I'm working through an Azure tutorial on MSDN as suggested by @BrentDaCodeMonkey. Basically, I'm trying to learn how to set up a Windows domain, so I can use it for a some other SQL Server tutorials. See my previous question here.

I'm running into a problem where I cannot connect my servers to my Active Directory Name Controller. When I try to add my domain name to the server in System Properties, I get an error message instead of the Windows Security popup dialog.

An Active Directory Name Controller (AD DC) for the domain "corp.ejm.com" could not be contacted. Ensure that the domain name is typed correctly. [...] The following error occurred when DNS was queried for the service location (SRV) resource record used to locate an Active Directory Name Controller (AD NC) for domain "corp.ejm.com"; The error was: "This operation returned because the timeout period expired."

Note that I am able to verify the DC's IP address, with nslookup in the command prompt.

Complicating this issue is that the tutorial instructions don't exactly match what I'm seeing in Azure. For example, I'm not allowed to use Windows Server 2008 R2 SP1 when setting up SQL Server virtual machines. I had to use Windows Server 2012 for those, but still used 2008 for the DC. I thought that the problem might be a conflicting operating systems, so I tried running the tutorial again using Windows Server 2012 for everything. Same error message.

Also note: the tutorial says that I should use the example domain, corp.contoso.com. I used my own example domain instead, corp.ejm.com. I'm wondering if this has something to do with it. My example domain is not registered on the Internet.

解决方案

Connect to the DC VM and find out its IPAddress (10.*).

Go to the virtual network configuration and set the DNS server IP Address to that.

Also make sure you use this IP Address during step #8 in install SQL VMs section.

Now try joining the SQL VMs to the domain.

Hope this helps.