Skip to content

Commit 3add22d

Browse files
committed
2 parents 0089a07 + 8e30f81 commit 3add22d

File tree

263 files changed

+3077
-1745
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

263 files changed

+3077
-1745
lines changed

.openpublishing.redirection.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11305,6 +11305,11 @@
1130511305
"redirect_url": "/azure/container-service/kubernetes/container-service-intro-kubernetes",
1130611306
"redirect_document_id": false
1130711307
},
11308+
{
11309+
"source_path": "articles/container-service/kubernetes/container-service-connect.md",
11310+
"redirect_url": "/azure/container-service/kubernetes/container-service-kubernetes-walkthrough",
11311+
"redirect_document_id": false
11312+
},
1130811313
{
1130911314
"source_path": "articles/cosmos-db/request-units-per-minute.md",
1131011315
"redirect_url": "/azure/cosmos-db/request-units",
@@ -13519,6 +13524,21 @@
1351913524
"source_path": "articles/power-bi-embedded-whats-new.md",
1352013525
"redirect_url": "/azure/power-bi-workspace-collections/whats-new",
1352113526
"redirect_document_id": false
13527+
},
13528+
{
13529+
"source_path": "articles/active-directory-domain-services/active-directory-ds-admin-guide-join-rhel-linux-vm.md",
13530+
"redirect_url": "/azure/active-directory-domain-services/active-directory-ds-join-rhel-linux-vm",
13531+
"redirect_document_id": false
13532+
},
13533+
{
13534+
"source_path": "articles/azure-functions/functions-java-refernece.md",
13535+
"redirect_url": "/azure/azure-functions/functions-reference-java",
13536+
"redirect_document_id": false
13537+
},
13538+
{
13539+
"source_path": "articles/azure-functions/functions-java-reference.md",
13540+
"redirect_url": "/azure/azure-functions/functions-reference-java",
13541+
"redirect_document_id": false
1352213542
}
1352313543
]
1352413544
}

articles/active-directory-domain-services/TOC.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
# How to
1717
## Join a managed domain
18-
### [Join a Windows Server VM](active-directory-ds-admin-guide-join-windows-vm-portal.md)
19-
### [Join a Windows Server VM using PowerShell](active-directory-ds-admin-guide-join-windows-vm-classic-powershell.md)
20-
### [RedHat Enterprise Linux](active-directory-ds-admin-guide-join-rhel-linux-vm.md)
18+
### [Windows Server VM](active-directory-ds-admin-guide-join-windows-vm-portal.md)
19+
### [Windows Server VM using PowerShell](active-directory-ds-admin-guide-join-windows-vm-classic-powershell.md)
20+
### [RedHat Enterprise Linux](active-directory-ds-join-rhel-linux-vm.md)
2121
### [Ubuntu Server](active-directory-ds-join-ubuntu-linux-vm.md)
2222
## Administer a managed domain
2323
### [Administer a managed domain](active-directory-ds-admin-guide-administer-domain.md)

articles/active-directory-domain-services/active-directory-ds-admin-guide-join-rhel-linux-vm.md

Lines changed: 0 additions & 155 deletions
This file was deleted.
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
---
2+
title: 'Azure Active Directory Domain Services: Join a RHEL VM to a managed domain | Microsoft Docs'
3+
description: Join a Red Hat Enterprise Linux virtual machine to Azure AD Domain Services
4+
services: active-directory-ds
5+
documentationcenter: ''
6+
author: mahesh-unnikrishnan
7+
manager: mahesh-unnikrishnan
8+
editor: curtand
9+
10+
ms.assetid: d76ae997-2279-46dd-bfc5-c0ee29718096
11+
ms.service: active-directory-ds
12+
ms.workload: identity
13+
ms.tgt_pltfrm: na
14+
ms.devlang: na
15+
ms.topic: article
16+
ms.date: 10/04/2017
17+
ms.author: maheshu
18+
19+
---
20+
# Join a Red Hat Enterprise Linux 7 virtual machine to a managed domain
21+
This article shows you how to join a Red Hat Enterprise Linux (RHEL) 7 virtual machine to an Azure AD Domain Services managed domain.
22+
23+
## Before you begin
24+
To perform the tasks listed in this article, you need:
25+
1. A valid **Azure subscription**.
26+
2. An **Azure AD directory** - either synchronized with an on-premises directory or a cloud-only directory.
27+
3. **Azure AD Domain Services** must be enabled for the Azure AD directory. If you haven't done so, follow all the tasks outlined in the [Getting Started guide](active-directory-ds-getting-started.md).
28+
4. Ensure that you have configured the IP addresses of the managed domain as the DNS servers for the virtual network. For more information, see [how to update DNS settings for the Azure virtual network](active-directory-ds-getting-started-dns.md)
29+
5. Complete the steps required to [synchronize passwords to your Azure AD Domain Services managed domain](active-directory-ds-getting-started-password-sync.md).
30+
31+
32+
## Provision a Red Hat Enterprise Linux virtual machine
33+
Provision a RHEL 7 virtual machine in Azure, using any of the following methods:
34+
* [Azure portal](../virtual-machines/linux/quick-create-portal.md)
35+
* [Azure CLI](../virtual-machines/linux/quick-create-cli.md)
36+
* [Azure PowerShell](../virtual-machines/linux/quick-create-powershell.md)
37+
38+
> [!IMPORTANT]
39+
> * Deploy the virtual machine into the **same virtual network in which you have enabled Azure AD Domain Services**.
40+
> * Pick a **different subnet** than the one in which you have enabled Azure AD Domain Services.
41+
>
42+
43+
44+
## Connect remotely to the newly provisioned Linux virtual machine
45+
The RHEL 7.2 virtual machine has been provisioned in Azure. The next task is to connect remotely to the virtual machine using the local administrator account created while provisioning the VM.
46+
47+
Follow the instructions in the article [How to log on to a virtual machine running Linux](../virtual-machines/linux/mac-create-ssh-keys.md?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
48+
49+
50+
## Configure the hosts file on the Linux virtual machine
51+
In your SSH terminal, edit the /etc/hosts file and update your machine’s IP address and hostname.
52+
53+
```
54+
sudo vi /etc/hosts
55+
```
56+
57+
In the hosts file, enter the following value:
58+
59+
```
60+
127.0.0.1 contoso-rhel.contoso100.com contoso-rhel
61+
```
62+
Here, 'contoso100.com' is the DNS domain name of your managed domain. 'contoso-rhel' is the hostname of the RHEL virtual machine you are joining to the managed domain.
63+
64+
65+
## Install required packages on the Linux virtual machine
66+
Next, install packages required for domain join on the virtual machine. In your SSH terminal, type the following command to install the required packages:
67+
68+
```
69+
sudo yum install realmd sssd krb5-workstation krb5-libs
70+
```
71+
72+
73+
## Join the Linux virtual machine to the managed domain
74+
Now that the required packages are installed on the Linux virtual machine, the next task is to join the virtual machine to the managed domain.
75+
76+
1. Discover the AAD Domain Services managed domain. In your SSH terminal, type the following command:
77+
78+
```
79+
sudo realm discover CONTOSO100.COM
80+
```
81+
82+
> [!NOTE]
83+
> **Troubleshooting:**
84+
> If *realm discover* is unable to find your managed domain:
85+
* Ensure that the domain is reachable from the virtual machine (try ping).
86+
* Check that the virtual machine has indeed been deployed to the same virtual network in which the managed domain is available.
87+
* Check to see if you have updated the DNS server settings for the virtual network to point to the domain controllers of the managed domain.
88+
>
89+
90+
2. Initialize Kerberos. In your SSH terminal, type the following command:
91+
92+
> [!TIP]
93+
> * Ensure that you specify a user who belongs to the 'AAD DC Administrators' group.
94+
> * Specify the domain name in capital letters, else kinit fails.
95+
>
96+
97+
```
98+
99+
```
100+
101+
3. Join the machine to the domain. In your SSH terminal, type the following command:
102+
103+
> [!TIP]
104+
> Use the same user account you specified in the preceding step ('kinit').
105+
>
106+
107+
```
108+
sudo realm join --verbose CONTOSO100.COM -U '[email protected]'
109+
```
110+
111+
You should get a message ("Successfully enrolled machine in realm") when the machine is successfully joined to the managed domain.
112+
113+
114+
## Verify domain join
115+
Verify whether the machine has been successfully joined to the managed domain. Connect to the domain joined RHEL VM using a different SSH connection. Use a domain user account and then check to see if the user account is resolved correctly.
116+
117+
1. In your SSH terminal, type the following command to connect to the domain joined RHEL virtual machine using SSH. Use a domain account that belongs to the managed domain (for example, '[email protected]' in this case.)
118+
```
119+
ssh -l [email protected] contoso-rhel.contoso100.com
120+
```
121+
122+
2. In your SSH terminal, type the following command to see if the home directory was initialized correctly.
123+
```
124+
pwd
125+
```
126+
127+
3. In your SSH terminal, type the following command to see if the group memberships are being resolved correctly.
128+
```
129+
id
130+
```
131+
132+
133+
## Troubleshooting domain join
134+
Refer to the [Troubleshooting domain join](active-directory-ds-admin-guide-join-windows-vm-portal.md#troubleshooting-domain-join) article.
135+
136+
## Related Content
137+
* [Azure AD Domain Services - Getting Started guide](active-directory-ds-getting-started.md)
138+
* [Join a Windows Server virtual machine to an Azure AD Domain Services managed domain](active-directory-ds-admin-guide-join-windows-vm.md)
139+
* [How to log on to a virtual machine running Linux](../virtual-machines/linux/mac-create-ssh-keys.md?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
140+
* [Installing Kerberos](https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Managing_Smart_Cards/installing-kerberos.html)
141+
* [Red Hat Enterprise Linux 7 - Windows Integration Guide](https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Windows_Integration_Guide/index.html)

0 commit comments

Comments
 (0)