Created
November 6, 2020 16:27
-
-
Save virtualhobbit/5cd031db9c62d6d27da7b01ebdb1c2c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
recompose_pool: | |
stage: recompose | |
tags: | |
- windows | |
script: | |
- Write-Host "Connecting to Horizon" | |
- Connect-HVServer -Server $cs -User $csUser -Password $csPass -Domain $csDomain | |
- Write-Host "Refreshing Horizon Pool" | |
- Start-HVPool -Pool $poolName -Recompose -LogoffSetting FORCE_LOGOFF -ParentVM "$packer_vmName" -SnapshotVM "Created by Packer" -StopOnFirstError $true | |
- Write-Host "Disconnecting to Horizon" | |
- Disconnect-HVServer -Server $cs -Confirm:$false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment