Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Create VM for new AD Forest

$
0
0

I'm trying to create new VM by Azure power Shell to install new AD Forest but i;m facing a problem when run the command on power shell , by the following is the command and also the error that i received.

cls


Import-Module "C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\Azure.psd1"
Import-AzurePublishSettingsFile "C:\temp\Windows Azure Cloud Essentials-3-24-2013-credentials.publishsettings"
Set-AzureSubscription -SubscriptionName "Windows Azure Cloud Essentials" -CurrentStorageAccount "v2azure"
Select-AzureSubscription -SubscriptionName "Windows Azure Cloud Essentials"


#Deploy the Domain Controller in a virtual network
#-------------------------------------------------


#Specify my DC's DNS IP (127.0.0.1)
$myDNS = New-AzureDNS -Name 'v2v2' -IPAddress '127.0.0.1'
$vmname = "V2DC1"
# OS Image to Use
$image = 'MSFT__Win2K8R2SP1-Datacenter-201207.01-en.us-20GB.vhd'
$service = "V2Azure"
$AG = "V2AzureDomain"
$vnet = "V2AzureDomain"


#VM Configuration
$MyDC = New-AzureVMConfig -name $vmname -InstanceSize 'Small' -ImageName $image |
    Add-AzureProvisioningConfig -Windows -Password '*p@$$w0rd*' |
        Set-AzureSubnet -SubnetNames '**BackEnd**'




New-AzureVM -ServiceName $service -AffinityGroup $AG -VMs $MyDC -DnsSettings $myDNS -VNetName $vnet

Error:

New-AzureVM : "An exception occurred when calling the ServiceManagement API. HTTP Status Code: 409. Service Management Error Code: ConflictError. Message: The
specified DNS name is already taken.. Operation Tracking ID: c548498b81574de28a14f01063d8da7b."
At line:32 char:1
+ New-AzureVM -ServiceName $service -AffinityGroup $AG -VMs $MyDC -DnsSettings $my ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [New-AzureVM], ServiceManagementClientException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Management.ServiceManagement.IaaS.PersistentVMs.NewAzureVMCommand


Viewing all articles
Browse latest Browse all 12545

Trending Articles



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