Pause Deployment

Share your PowerShell scripts for Deployment Manager

Moderators: Mike Upton, justin.caldicott, csmith, chirayu, DavidSimner

Pause Deployment

Postby PeterG » Wed Aug 21, 2013 5:14 pm

Here's a simple script for pausing a deployment using Powershell:

Code: Select all
# 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
Intern - Deployment Manager
Posts: 4
Joined: Tue Aug 20, 2013 10:40 am

Return to Deployment Manager PowerShell Scripts

Who is online

Users browsing this forum: No registered users and 0 guests