Skip to content

Latest commit

 

History

History
64 lines (44 loc) · 1.66 KB

AzureAgentSetup.md

File metadata and controls

64 lines (44 loc) · 1.66 KB

Installation

  • Start from an Azure Win10 VM
  • Git for windows
  • Same as Stride README.md: Visual Studio, FBX SDK
  • Visual C++ 2013 runtime (x64 & x86)

Install teamcity agent

  • Don't install as service
  • Set build and temp paths to D: instead of C:
  • Also let it build a few stuff, so that it will precache a recent Stride git on C: (faster warmup time when cloning VM)

Auto start

Agent

Link to C:\BuildAgent\bin\agent.bat start (don't forget start parameter) to add in C:\Users\default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup (create directory)

Add to C:\Windows\OEM\SetupComplete2.cmd

middle

ECHO Enable auto logon BEGIN >> %windir%\Panther\WaSetup.log
regedit /s %~dp0AutoLogin.reg
ECHO Enable auto logon END >> %windir%\Panther\WaSetup.log

end

ECHO Reboot >> %windir%\Panther\WaSetup.log
shutdown -r -t 0 -f

Create C:\Windows\OEM\AutoLogin.reg

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"AutoAdminLogon"="1"
"DefaultUserName"="stride"
"DefaultPassword"="Replace with VM password!!"

Codesign

  • Copy .pfx to C:\Windows\OEM (replace with actual filename)
  • Add register_certs.bat to startup folder of default user C:\Users\default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup (replace with actual filename)
certutil -f -user -importpfx C:\Windows\OEM\<codesign>.pfx NoRoot

Permissions

Give full control to C:\AzureData to Authenticated Users.

sysprep

  • Run sysprep with OOBE / Generalize / Shutdown
  • In Azure portal, capture VM
  • Set new image in Teamcity