Skip to content

Instantly share code, notes, and snippets.

@bigoals365
Created August 8, 2014 21:26
Show Gist options
  • Save bigoals365/7a7ba5b863c49496f7c9 to your computer and use it in GitHub Desktop.
Save bigoals365/7a7ba5b863c49496f7c9 to your computer and use it in GitHub Desktop.
Deploy Visual Studio "14" CTP 2 into an Azure VM
# create_vm_vs14ctp2.ps1
[string]$service_name = "MyVS14CTP2"
[string]$label_name = "vs14ctp2"
[string]$user_name = "vsAdmin"
[string]$password = "#Preview14$"
[string]$DC = "West US"
[string]$size_vm = "Medium"
[string]$image_name = "*Visual Studio Professional 14 CTP 2*"
# Get the latest version of the Visual Studio 14 CTP 2 image
$images = Get-AzureVMImage `
| where { $_.Label -like $image_name } `
| where { $_.Location.Split(";") -contains $DC} `
| Sort-Object -Descending -Property PublishedDate
$images[0]
$myVM = New-AzureVMConfig -Name $service_name -InstanceSize $size_vm -ImageName $images[0].ImageName -DiskLabel $label_name `
| Add-AzureProvisioningConfig -Windows -Password $password -AdminUsername $user_name -DisableAutomaticUpdates
New-AzureVM -ServiceName $service_name -VMs $myVM -Location $DC -WaitForBoot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment