I have a custom domain set up as described in the documentation. Now I created a custom image and vms with the image. Joining the domain works automatically but I can't find a way to set the computer name. My script to create the vm looks like this:
$image = 'ns7ld-client-img' $service = 'ns7ld-cl007' $AG = 'ns7ld-aff' $vnet = 'ns7ld-net' $pwd = '...' $size = 'Small' #VM Configuration $MyVM1 = New-AzureVMConfig -Name $service -InstanceSize $size -ImageName $image | Add-AzureProvisioningConfig -WindowsDomain -AdminUsername 'Verwalter' -Password $pwd -Domain 'ns7ld' -DomainPassword $pwd -DomainUserName 'Administrator' -JoinDomain 'ns7ld.domain.de' -TimeZone 'W. Europe Standard Time' | Set-AzureSubnet -SubnetNames 'FrontEndSubnet' New-AzureVM -ServiceName $service -AffinityGroup $AG -VMs $MyVM1 -VNetName $vnet
What am I missing?