Currently using the Azure to deploy a multiple active directory deployment. A VNET has been created with the DNS server set to point to the 1st AD domain's DNS server. I have since deployment 3 AD domain (domain controller), each with its own DNS server, en each domain occupy its own subnet.
I use the following code to try to creat a VM and let it join to one specific domain automatically, but it does not work
$DNSServer = New-AzureDNS -Name "SubnetDNS" -IPAddress $DNSIPNew-AzureVMConfig -Name $MemberServerName -InstanceSize $MemberVMSize -ImageName $image.ImageName | `
Add-AzureProvisioningConfig -WindowsDomain -JoinDomain $DomainFqdn `
-AdminUsername $VMuserName -Password $VMpassword `
-Domain $DomainName -DomainUserName $DomainAdminUser -DomainPassword $DomainAdminPassword | `
Set-AzureSubnet -SubnetNames $subnetName | `
New-AzureVM -ServiceName $ServiceName -DNSSettings $DNSServer -WaitForBoot
when i execute the code, i got a warning message saying
WARNING: VNetName, DnsSettings, DeploymentLabel or DeploymentName Name can only be specified on new deployments.
I checked the MSDN article, it does not metnion anything like the warning message says.
How can i create a VM and let it join to any AD domain i deployed in the Azure?