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: WindowsServerDocs/identity/ad-ds/deploy/virtual-dc/adds-on-azure-vm.md
+13-15
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
---
2
2
title: Install Active Directory Domain Services on an Azure virtual machine
3
3
description: How to create a new Active Directory forest on a virtual machine (VM) on an Azure virtual machine.
4
-
author: iainfoulds
4
+
author: justinha
5
5
ms.author: justinha
6
-
manager: daveba
7
-
ms.date: 6/28/2022
6
+
manager: femila
7
+
ms.date: 03/18/2025
8
8
ms.topic: article
9
9
---
10
10
@@ -19,7 +19,7 @@ AD DS can run on an Azure virtual machine (VM) in the same way it runs in many o
19
19
* An Azure virtual machine [availability set](/azure/virtual-machines/availability-set-overview) to put two Active Directory Domain Services (AD DS) domain controllers in.
20
20
* Two Azure virtual machines to run AD DS and DNS.
21
21
22
-
### Items that are not covered
22
+
### Items that aren't covered
23
23
24
24
*[Creating a site-to-site VPN connection](/azure/vpn-gateway/tutorial-site-to-site-portal) from an on-premises location
25
25
*[Securing network traffic in Azure](/azure/security/azure-security-network-security-best-practices)
@@ -39,17 +39,17 @@ If you don't have an Azure subscription, [create a free account](https://azure.m
39
39
40
40
The following script automates the process of building two Windows Server 2019 VMs, for the purpose of building domain controllers for a new Active Directory Forest in Azure. An administrator can modify the variables below to suit their needs, then complete, as one operation. The script creates the necessary resource group, network security group with a traffic rule for Remote Desktop, virtual network and subnet, and availability group. The VMs are each then built with a 20 GB data disk with caching disabled for AD DS to be installed to.
41
41
42
-
The script below can be run directly from the Azure portal. If you choose to install and use the CLI locally, this quickstart requires that you are running the Azure CLI version 2.0.4 or later. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI 2.0](/cli/azure/install-azure-cli).
42
+
The script below can be run directly from the Azure portal. If you choose to install and use the CLI locally, this quickstart requires that you're running the Azure CLI version 2.0.4 or later. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI 2.0](/cli/azure/install-azure-cli).
43
43
44
44
| Variable Name | Purpose |
45
45
| :---: | :--- |
46
46
| AdminUsername | Username to be configured on each VM as the local administrator. |
47
47
| AdminPassword | Cleartext password to be configured on each VM as the local administrator password. |
48
-
| ResourceGroupName | Name to be used for resource group. Should not duplicate an existing name. |
48
+
| ResourceGroupName | Name to be used for resource group. Shouldn't duplicate an existing name. |
49
49
| Location | Azure location name that you would like to deploy to. List supported regions for the current subscription using `az account list-locations`. |
50
-
| VNetName | Name to assign the Azure virtual network Should not duplicate an existing name. |
51
-
| VNetAddress | IP scope to use for Azure networking. Should not duplicate an existing range. |
52
-
| SubnetName | Name to assign the IP subnet. Should not duplicate an existing name. |
50
+
| VNetName | Name to assign the Azure virtual network Shouldn't duplicate an existing name. |
51
+
| VNetAddress | IP scope to use for Azure networking. Shouldn't duplicate an existing range. |
52
+
| SubnetName | Name to assign the IP subnet. Shouldn't duplicate an existing name. |
53
53
| SubnetAddress | Subnet address for the domain controllers. Should be a subnet inside of the VNet. |
54
54
| AvailabilitySet | Name of the availability set the domain controller VMs will join. |
55
55
| VMSize | Standard Azure VM Size available in the location for deployment. |
@@ -60,7 +60,7 @@ The script below can be run directly from the Azure portal. If you choose to ins
60
60
| DC2IP | IP address for second domain controller. |
61
61
62
62
```azurecli
63
-
#Update based on your organizational requirements
63
+
#Add lines for AdminUsername and AdminPassword, and update based on your organizational requirements
64
64
Location=westus2
65
65
ResourceGroupName=ADonAzureVMs
66
66
NetworkSecurityGroup=NSG-DomainControllers
@@ -71,8 +71,6 @@ SubnetAddress=10.10.10.0/24
71
71
AvailabilitySet=DomainControllers
72
72
VMSize=Standard_DS1_v2
73
73
DataDiskSize=20
74
-
AdminUsername=azureuser
75
-
AdminPassword=ChangeMe123456
76
74
DomainController1=AZDC01
77
75
DC1IP=10.10.10.11
78
76
DomainController2=AZDC02
@@ -149,7 +147,7 @@ az vm create \
149
147
150
148
If the Azure virtual machines created as part of this process will be an extension of an existing on-premises Active Directory infrastructure, the DNS settings on the virtual network must be changed to include your on-premises DNS servers before deployment. This step is important to allow the newly created Domain Controllers in Azure to resolve on-premises resources and allow for replication to occur. More information about DNS, Azure, and how to configure settings can be found in the section [Name resolution that uses your own DNS server](/azure/virtual-network/virtual-networks-name-resolution-for-vms-and-role-instances#name-resolution-that-uses-your-own-dns-server).
151
149
152
-
After promoting the new domain controllers in Azure, they will need to be set to the primary and secondary DNS Servers for the virtual network, and any on-premises DNS Servers would be demoted to tertiary and beyond. VMs continue to use their current DNS settings until they are restarted. More information on changing DNS Servers can be found in the article [Create, change, or delete a virtual network](/azure/virtual-network/manage-virtual-network#change-dns-servers).
150
+
After promoting the new domain controllers in Azure, they'll need to be set to the primary and secondary DNS Servers for the virtual network, and any on-premises DNS Servers would be demoted to tertiary and beyond. VMs continue to use their current DNS settings until they're restarted. More information on changing DNS Servers can be found in the article [Create, change, or delete a virtual network](/azure/virtual-network/manage-virtual-network#change-dns-servers).
153
151
154
152
Information about extending an on-premises network to Azure can be found in the article [Creating a site-to-site VPN connection](/azure/vpn-gateway/vpn-gateway-howto-site-to-site-resource-manager-portal).
155
153
@@ -174,7 +172,7 @@ Connect to AZDC01 using the credentials you provided in the script.
174
172
* Review the selections made in the wizard and choose **Next**
175
173
176
174
> [!NOTE]
177
-
> The Prerequisites Check will warn you that the physical network adapter does not have static IP address(es) assigned, you can safely ignore this as static IPs are assigned in the Azure virtual network.
175
+
> The Prerequisites Check will warn you that the physical network adapter doesn't have static IP address(es) assigned, you can safely ignore this as static IPs are assigned in the Azure virtual network.
178
176
179
177
* Choose **Install**
180
178
@@ -210,7 +208,7 @@ Connect to AZDC02 using the credentials you provided in the script.
210
208
* Review the selections made in the wizard and choose **Next**
211
209
212
210
> [!NOTE]
213
-
> The Prerequisites Check will warn you that the physical network adapter does not have static IP address(es) assigned. You can safely ignore this, as static IPs are assigned in the Azure virtual network.
211
+
> The Prerequisites Check will warn you that the physical network adapter doesn't have static IP address(es) assigned. You can safely ignore this, as static IPs are assigned in the Azure virtual network.
0 commit comments