Skip to content

Commit

Permalink
add provision azure vm script
Browse files Browse the repository at this point in the history
  • Loading branch information
FeodorFitsner authored Jul 11, 2024
1 parent 94d5d61 commit f4dfec8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/Windows/bootstrap/provision-azure-vm.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
$n = 'HKLM:\SOFTWARE\AppVeyor\Build Agent'
if (-not (test-path $n)) {
$n = 'HKLM:\SOFTWARE\AppVeyor\BuildAgent'
if (-not (test-path $n)) {
$build_agent_mode = 'Azure'
$appveyor_user = 'appveyor'
$appveyor_password = [Guid]::NewGuid().ToString('B')
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/build-images/053e8069cca8be0d9b5b8c2b06d75ce2b497da4e/scripts/Windows/bootstrap/windows-bootstrap.ps1'))
return
}
}
set-itemproperty -path $n -name AppVeyorUrl -value $appveyor_url
set-itemproperty -path $n -name WorkerId -value $appveyor_workerId

0 comments on commit f4dfec8

Please sign in to comment.