Skip to content

Commit 6b0e175

Browse files
committed
Merge branch 'master' of https://github.com/MicrosoftDocs/azure-docs-pr into localworking
2 parents d5d3217 + 4e0fbba commit 6b0e175

8 files changed

+20
-55
lines changed

articles/active-directory-domain-services/active-directory-ds-join-ubuntu-linux-vm.md

Lines changed: 20 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -31,60 +31,25 @@ To perform the tasks listed in this article, you need:
3131

3232

3333
## Provision an Ubuntu Linux virtual machine
34-
Perform the following steps to provision an Ubuntu Server virtual machine using the Azure portal.
34+
Provision an Ubuntu Linux virtual machine in Azure, using any of the following methods:
35+
* [Azure portal](../virtual-machines/linux/quick-create-portal.md)
36+
* [Azure CLI](../virtual-machines/linux/quick-create-cli.md)
37+
* [Azure PowerShell](../virtual-machines/linux/quick-create-powershell.md)
3538

36-
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-
![Select RHEL in results](./media/domain-join/ubuntu-join-azure-portal-find-image.png)
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-
![Create VM - basics page](./media/domain-join/ubuntu-join-azure-portal-create-vm-basic-details.png)
49-
4. In the **Size** page of the **Create virtual machine** wizard, select the size for the virtual machine.
50-
51-
![Create VM - select size](./media/domain-join/ubuntu-join-azure-portal-select-vm-size.png)
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-
![Create VM - configure VM settings](./media/domain-join/ubuntu-join-azure-portal-create-vm-settings.png)
61-
6. On the **Purchase** page of the **Create virtual machine** wizard, review, and click the **Purchase** button.
62-
63-
![Create VM - purchase](./media/domain-join/ubuntu-join-azure-portal-create-vm-purchase.png)
64-
7. Deployment of the new virtual machine based on the Ubuntu image should start.
65-
66-
![Create VM - deployment started](./media/domain-join/ubuntu-join-azure-portal-create-vm-deployment-started.png)
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-
![Create VM - deployed](./media/domain-join/ubuntu-join-azure-portal-create-vm-deployed.png)
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+
>
7043
7144

7245
## 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.
7447

7548
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).
7649

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.
81-
82-
![PuTTY connect](./media/active-directory-domain-services-admin-guide/rhel-join-azure-portal-putty-connect.png)
83-
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-
8550

8651
## 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.
8853

8954
```
9055
sudo vi /etc/hosts
@@ -99,9 +64,9 @@ Here, 'contoso100.com' is the DNS domain name of your managed domain. 'contoso-u
9964

10065

10166
## 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:
10368

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.
10570

10671
```
10772
sudo apt-get update
@@ -146,7 +111,7 @@ sudo systemctl start ntp
146111
## Join the Linux virtual machine to the managed domain
147112
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.
148113
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:
150115
151116
```
152117
sudo realm discover CONTOSO100.COM
@@ -160,7 +125,7 @@ Now that the required packages are installed on the Linux virtual machine, the n
160125
* 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.
161126
>
162127
163-
2. Initialize Kerberos. In your PuTTY terminal, type the following command:
128+
2. Initialize Kerberos. In your SSH terminal, type the following command:
164129
165130
> [!TIP]
166131
> * 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
171136
172137
```
173138
174-
3. Join the machine to the domain. In your PuTTY terminal, type the following command:
139+
3. Join the machine to the domain. In your SSH terminal, type the following command:
175140
176141
> [!TIP]
177142
> Use the same user account you specified in the preceding step ('kinit').
@@ -185,7 +150,7 @@ You should get a message ("Successfully enrolled machine in realm") when the mac
185150
186151
187152
## Update the SSSD configuration and restart the service
188-
1. In your PuTTY terminal, type the following command. Open the sssd.conf file and make the following change
153+
1. In your SSH terminal, type the following command. Open the sssd.conf file and make the following change
189154
```
190155
sudo vi /etc/sssd/sssd.conf
191156
```
@@ -216,17 +181,17 @@ session required pam_mkhomedir.so skel=/etc/skel/ umask=0077
216181
## Verify domain join
217182
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.
218183
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.)
220185
```
221186
ssh -l [email protected] contoso-ubuntu.contoso100.com
222187
```
223188
224-
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.
225190
```
226191
pwd
227192
```
228193
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.
230195
```
231196
id
232197
```
@@ -235,7 +200,7 @@ Verify whether the machine has been successfully joined to the managed domain. C
235200
## Grant the 'AAD DC Administrators' group sudo privileges
236201
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.
237202
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:
239204
```
240205
sudo vi /etc/sudoers
241206
```

0 commit comments

Comments
 (0)