Refer to Install
AD Forest + DC in Azure Only in ARM (aka v2) in 30 min how to set up the
primary DC/AD.
There are two ways that you can add a vm to a domain:
1.
Join the domain while provisioning the vm
"properties": {
"publisher": "Microsoft.Powershell",
"type": "DSC",
"typeHandlerVersion": "2.8",
"settings": {
"ModulesUrl": "[concat(parameters('assetLocation'),'Configuration.zip')]",
"ConfigurationFunction": "Configuration.ps1\\DomainJoin",
"Properties": {
"DomainName": "[parameters('domainName')]",
"AdminCreds": {
"UserName": "[parameters('adminUsername')]",
"Password": "PrivateSettingsRef:adminPassword"
}
}
},
"protectedSettings": {
"Items": {
"adminPassword": "[parameters('adminPassword')]"
}
}
}
}
2.
Spin a vm and then domain join
a. Through
ARM template: https://azure.microsoft.com/en-us/documentation/templates/201-vm-domain-join/
b. Manually
J open up a computer
management and it to the domain.
Potential problem:
If the vm doesn’t seem the DNS in
approach 1:
1.)
Add the DNS to the vnet
2.)
If still doesn’t solve the problem, fall back to
approach #2.
No comments:
Post a Comment