You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/active-directory-domain-services/active-directory-ds-join-ubuntu-linux-vm.md
+12-20Lines changed: 12 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,21 +43,13 @@ Provision an Ubuntu Linux virtual machine in Azure, using any of the following m
43
43
44
44
45
45
## Connect remotely to the Ubuntu Linux virtual machine
46
-
The Ubuntu virtual machine has been provisioned in Azure. The next task is to connect remotely to the virtual machine.
46
+
The Ubuntu 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.
47
47
48
48
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).
49
49
50
-
The rest of the steps assume you use the PuTTY SSH client to connect to the Ubuntu virtual machine. For more information, see the [PuTTY Download page](http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html).
51
-
52
-
1. Open the PuTTY program.
53
-
2. Enter the **Host Name** for the newly created Ubuntu virtual machine. In this example, our virtual machine has the host name 'contoso-ubuntu'. If you are not sure of the host name of your VM, refer to the VM dashboard on the Azure portal.
3. Log on to the virtual machine using the local administrator credentials you specified when the virtual machine was created. In this example, we used the local administrator account "mahesh".
57
-
58
50
59
51
## Configure the hosts file on the Linux virtual machine
60
-
Edit the /etc/hosts file and update your machine’s IP address and hostname.
52
+
In your SSH terminal, edit the /etc/hosts file and update your machine’s IP address and hostname.
61
53
62
54
```
63
55
sudo vi /etc/hosts
@@ -72,9 +64,9 @@ Here, 'contoso100.com' is the DNS domain name of your managed domain. 'contoso-u
72
64
73
65
74
66
## Install required packages on the Linux virtual machine
75
-
After connecting to the virtual machine, the next task is to install packages required for domain join on the virtual machine. Perform the following steps:
67
+
Next, install packages required for domain join on the virtual machine. Perform the following steps:
76
68
77
-
1. In your PuTTY terminal, type the following command to download the package lists from the repositories. This command updates the package lists to get information on the newest versions of packages and their dependencies.
69
+
1. In your SSH terminal, type the following command to download the package lists from the repositories. This command updates the package lists to get information on the newest versions of packages and their dependencies.
78
70
79
71
```
80
72
sudo apt-get update
@@ -119,7 +111,7 @@ sudo systemctl start ntp
119
111
## Join the Linux virtual machine to the managed domain
120
112
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.
121
113
122
-
1. Discover the AAD Domain Services managed domain. In your PuTTY terminal, type the following command:
114
+
1. Discover the AAD Domain Services managed domain. In your SSH terminal, type the following command:
123
115
124
116
```
125
117
sudo realm discover CONTOSO100.COM
@@ -133,7 +125,7 @@ Now that the required packages are installed on the Linux virtual machine, the n
133
125
* 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.
134
126
>
135
127
136
-
2. Initialize Kerberos. In your PuTTY terminal, type the following command:
128
+
2. Initialize Kerberos. In your SSH terminal, type the following command:
137
129
138
130
> [!TIP]
139
131
> * Ensure that you specify a user who belongs to the 'AAD DC Administrators' group.
@@ -144,7 +136,7 @@ Now that the required packages are installed on the Linux virtual machine, the n
Verify whether the machine has been successfully joined to the managed domain. Connect to the domain joined Ubuntu VM using a different SSH connection. Use a domain user account and then check to see if the user account is resolved correctly.
191
183
192
-
1. In your PuTTY terminal, type the following command to connect to the domain joined Ubuntu virtual machine using SSH. Use a domain account that belongs to the managed domain (for example, '[email protected]' in this case.)
184
+
1. In your SSH terminal, type the following command to connect to the domain joined Ubuntu virtual machine using SSH. Use a domain account that belongs to the managed domain (for example, '[email protected]' in this case.)
2. In your PuTTY terminal, type the following command to see if the home directory was initialized correctly.
189
+
2. In your SSH terminal, type the following command to see if the home directory was initialized correctly.
198
190
```
199
191
pwd
200
192
```
201
193
202
-
3. In your PuTTY terminal, type the following command to see if the group memberships are being resolved correctly.
194
+
3. In your SSH terminal, type the following command to see if the group memberships are being resolved correctly.
203
195
```
204
196
id
205
197
```
@@ -208,7 +200,7 @@ Verify whether the machine has been successfully joined to the managed domain. C
208
200
## Grant the 'AAD DC Administrators' group sudo privileges
209
201
You can grant members of the 'AAD DC Administrators' group administrative privileges on the Ubuntu VM. The sudo file is located at /etc/sudoers. The members of AD groups added in sudoers can perform sudo.
210
202
211
-
1. In your PuTTY terminal, ensure you are logged in with superuser privileges. You can use the local administrator account you specified while creating the VM. Execute the following command:
203
+
1. In your SSH terminal, ensure you are logged in with superuser privileges. You can use the local administrator account you specified while creating the VM. Execute the following command:
0 commit comments