Pause Deployment

PeterGPeterG Posts: 61 Silver 3
Here's a simple script for pausing a deployment using Powershell:
# Input:
# pauseLength: 10

# Pause the deployment for the given length in seconds

if ($null -eq $pauseLength) {
	throw "pauseLength must be set"

Write-Host "Sleeping for $pauseLength seconds"
Start-Sleep -Seconds $pauseLength
# For shorter periods use the -Milliseconds flag
#Start-Sleep -Milliseconds $pauseLength
Write-Host "Continuing"
Peter Gerrard

Software Engineer
Redgate Software
Sign In or Register to comment.