Pause Deployment

Share your PowerShell scripts for Deployment Manager

Pause Deployment

Postby PeterG » Wed Aug 21, 2013 4: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
Developer - DLM Automation
Posts: 27
Joined: Tue Aug 20, 2013 9:40 am

Return to Deployment Manager PowerShell Scripts

Who is online

Users browsing this forum: No registered users and 0 guests