Quantcast
Channel: Azure Networking (DNS, Traffic Manager, VPN, VNET) forum
Viewing all articles
Browse latest Browse all 6513

Virtual Machine is unnable to join to domain using Powershell cmdlets

$
0
0

Hi All,

I'm creating a Virtual Machine in IAAS preview environment throught New-AzureVM cmdlet. However I'm unable to join my VM to a domain. I followed the tutorial which shows how to create a active directory forest and how to join VM into the domain at the time of provisioning. Here are the commands I'm executing in the Azure Powershell Command prompt:

$appvm3 = New-AzureVMConfig -Name "<VM_Name>" -InstanceSize Small -ImageName "<VHD_Name>" -MediaLocation "<URL Of VHD>" | Add-AzureProvisioningConfig -Password "password" -WindowsDomain -JoinDomain "abc.xyz.com" -Domain "abc.xyz.com" -DomainUserName "ankit" -DomainPassword "password" | Set-AzureSubnet Subnet

New-AzureVM -DeploymentName Win7VM1 -DnsSettings (New-AzureDns testdc 192.168.1.5) -VNetName VirtualLabNetwork -ServiceName appvm3 -AffinityGroup VirtualLabsGroup -VMs $appvm3

When I execute the above command, I get "The specified dns name is already taken".

I've tried removing -DnsSettings in the New-AzureVM command but that too is not working for me.

Please suggest if I'm doing anything wrong here.

However, manually, I'm able to join the domain.

Thanks

Ankit


Viewing all articles
Browse latest Browse all 6513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>