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"