From 7ec8788a39549c335cc6f727178a9dcfd6025e10 Mon Sep 17 00:00:00 2001 From: Douglas Laudenschlager Date: Wed, 28 Mar 2018 14:56:18 -0700 Subject: [PATCH] Fixed line 208 of script per GitHub issue. --- samples/features/sql-data-sync/DataSyncLogPowerShellRunbook.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/features/sql-data-sync/DataSyncLogPowerShellRunbook.ps1 b/samples/features/sql-data-sync/DataSyncLogPowerShellRunbook.ps1 index 4d318448..16b821cc 100644 --- a/samples/features/sql-data-sync/DataSyncLogPowerShellRunbook.ps1 +++ b/samples/features/sql-data-sync/DataSyncLogPowerShellRunbook.ps1 @@ -205,7 +205,7 @@ foreach ($ResourceGroup in $ResourceGroupName) - Post-OMSData -customerId $customerId -sharedKey $sharedKey -body ([System.Text.Encoding]::UTF8.GetBytes($json)) -logType $logType + $result = Post-OMSData -customerId $customerId -sharedKey $sharedKey -body ([System.Text.Encoding]::UTF8.GetBytes($json)) -logType $logType if ($result -eq 200) { Write-Host "Success"