_posts/2017-12-15-advent-calendar-2017-day15-webapps-useful-powershell-scripts.html [266:278]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
for ($i = 0; $i -lt $dumpCount; $i++)
{
$outfile = "C:\Diagnostics\" + (Get-Date).ToString("yyyyMMddHHmmss") + ".zip"
Invoke-RestMethod -Headers $authHeader -WebSession $cookieSession -Uri "$kuduUrl/api/processes/-1/dump?dumpType=2&&format=zip" -Method Get -OutFile $outfile
Start-Sleep -m $dumpInterval
}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
_posts/2017-12-15-advent-calendar-2017-day15-webapps-useful-powershell-scripts.html [407:419]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
for ($i = 0; $i -lt $dumpCount; $i++)
{
$outfile = "C:\Diagnostics\" + (Get-Date).ToString("yyyyMMddHHmmss") + ".zip"
Invoke-RestMethod -Headers $authHeader -WebSession $cookieSession -Uri "$kuduUrl/api/processes/-1/dump?dumpType=2&&format=zip" -Method Get -OutFile $outfile
Start-Sleep -m $dumpInterval
}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -