Skip to content

Instantly share code, notes, and snippets.

@mwrock mwrock/gist:8576155
Last active Jan 4, 2016

What would you like to do?
TFS Install
cinst VisualStudioTeamFoundationServerExpress2013
cinst MsSqlServer2012Express
$tfsConfig="$env:ProgramFiles\Microsoft Team Foundation Server 12.0\Tools\TfsConfig.exe"
.$tfsConfig unattend /configure /type:standard
.$tfsConfig unattend /configure /type:build `
/inputs:collectionurl=http://localhost:8080/tfs`;ServiceAccountName="LOCAL SERVICE"`;ServiceAccountPassword="pass"
#Get boxstarter and its Azure module and set it up to work
#with your azure subscription as described at
#create admin user credentials
$secpasswd = ConvertTo-SecureString "1276Tfs!" -AsPlainText -Force
$cred=New-Object System.Management.Automation.PSCredential ("TfsAdmin", $secpasswd)
#Create the VM
New-AzureQuickVM -ServiceName MyTfsVMService -Windows -Name tfs1 `
-ImageName 3a50f22b388a4ff7ab41029918570fa6__Windows-Server-2012-Essentials-20131217-enus `
-Password $cred.GetNetworkCredential().Password -AdminUsername $cred.UserName `
-InstanceSize Medium -Location "West US" -WaitForBoot
#Install and setup TFS
Enable-BoxstarterVM -Provider azure -CloudServiceName MyTfsVMService -VMName tfs1 -Credential $cred -CheckpointName fresh2 |
#Add endpoint for port 8080
$vm = Get-AzureVM -ServiceName MyTfsVMService -Name tfs1
Add-AzureEndpoint -Name tfs -Protocol tcp -LocalPort 8080 -PublicPort 8080 -VM $vm |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.