You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$Results="Successfully Started Sync for $($TenantFilter)"
20
+
Write-LogMessage-user $ExecutingUser-API $APINAME-tenant $TenantFilter-message 'Successfully started Autopilot sync'-Sev Info
21
+
$StatusCode= [HttpStatusCode]::OK
18
22
} catch {
19
-
$Results="Failed to start sync for $tenantfilter. Did you try syncing in the last 10 minutes?"
23
+
$ErrorMessage=Get-CippException-Exception $_
24
+
$Results="Failed to start sync for $TenantFilter. Did you try syncing in the last 10 minutes?"
25
+
Write-LogMessage-user $ExecutingUser-API $APINAME-tenant $TenantFilter-message 'Failed to start Autopilot sync. Did you try syncing in the last 10 minutes?'-Sev Error -LogData $ErrorMessage
0 commit comments