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

How to provision computer name (Windows Server 2008)

$
0
0

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?


Viewing all articles
Browse latest Browse all 12545

Trending Articles



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