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
1. Sign in to the [Azure portal](https://portal.azure.com).
37
-
2. Click **New** on the left pane and click **Compute**. Click **Ubuntu Server 16.04 LTS**. You can also type **Ubuntu** into the **Search the Marketplace** textbox to see all supported Ubuntu images in the Azure marketplace.
38
-
39
-

40
-
3. In the **Basics** page of the **Create virtual machine** wizard:
41
-
* Enter the **Name** for the new virtual machine.
42
-
* Specify a local administrator user name in the **User name** field.
43
-
* Select password as the **Authentication type** and type a secure **Password**. You may also choose to use an SSH key to authenticate the local administrator user.
44
-
* Choose the Azure **Subscription** in which you have enabled Azure AD Domain Services.
45
-
* Create an existing **Resource group** or create a new one.
46
-
* Choose the Azure region in which you have enabled Azure AD Domain Services in the **Location** dropdown.
47
-
48
-

49
-
4. In the **Size** page of the **Create virtual machine** wizard, select the size for the virtual machine.
50
-
51
-

52
-
53
-
5. In the **Settings** page of the **Create virtual machine** wizard:
54
-
* Select the **Availability set** for the virtual machine and choose whether to **use managed disks**.
55
-
* In the **Network** section, select the **Virtual network** in which you have enabled Azure AD Domain Services.
56
-
* Pick a different **Subnet** than the one in which you have enabled Azure AD Domain Services.
57
-
* Configure the other settings on this page as desired.
58
-
* Click **OK** when you are done.
59
-
60
-

61
-
6. On the **Purchase** page of the **Create virtual machine** wizard, review, and click the **Purchase** button.
62
-
63
-

64
-
7. Deployment of the new virtual machine based on the Ubuntu image should start.
65
-
66
-

67
-
8. After a few minutes, the virtual machine should be deployed successfully and ready for use. You can see the details of the newly provisioned VM on the **Overview** page.
68
-
69
-

39
+
> [!IMPORTANT]
40
+
> * Deploy the virtual machine into the **same virtual network in which you have enabled Azure AD Domain Services**.
41
+
> * Pick a **different subnet** than the one in which you have enabled Azure AD Domain Services.
42
+
>
70
43
71
44
72
45
## Connect remotely to the Ubuntu Linux virtual machine
73
-
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.
74
47
75
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).
76
49
77
-
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).
78
-
79
-
1. Open the PuTTY program.
80
-
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".
84
-
85
50
86
51
## Configure the hosts file on the Linux virtual machine
87
-
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.
88
53
89
54
```
90
55
sudo vi /etc/hosts
@@ -99,9 +64,9 @@ Here, 'contoso100.com' is the DNS domain name of your managed domain. 'contoso-u
99
64
100
65
101
66
## Install required packages on the Linux virtual machine
102
-
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:
103
68
104
-
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.
105
70
106
71
```
107
72
sudo apt-get update
@@ -146,7 +111,7 @@ sudo systemctl start ntp
146
111
## Join the Linux virtual machine to the managed domain
147
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.
148
113
149
-
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:
150
115
151
116
```
152
117
sudo realm discover CONTOSO100.COM
@@ -160,7 +125,7 @@ Now that the required packages are installed on the Linux virtual machine, the n
160
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.
161
126
>
162
127
163
-
2. Initialize Kerberos. In your PuTTY terminal, type the following command:
128
+
2. Initialize Kerberos. In your SSH terminal, type the following command:
164
129
165
130
> [!TIP]
166
131
> * Ensure that you specify a user who belongs to the 'AAD DC Administrators' group.
@@ -171,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.
218
183
219
-
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.
225
190
```
226
191
pwd
227
192
```
228
193
229
-
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.
230
195
```
231
196
id
232
197
```
@@ -235,7 +200,7 @@ Verify whether the machine has been successfully joined to the managed domain. C
235
200
## Grant the 'AAD DC Administrators' group sudo privileges
236
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.
237
202
238
-
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