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
Write-LogMessage-API 'Update Tokens'-message 'Error updating refresh token, see Log Data for details. Will try again in 7 days.'-sev 'CRITICAL'-LogData (Get-CippException-Exception $_)
41
43
}
42
-
# Write an information log with the current time.
43
-
Write-Information"PowerShell timer trigger function ran! TIME: $currentUTCtime"
44
44
45
+
# Check application secret expiration for $env:ApplicationId and generate a new application secret if expiration is within 30 days.
Write-Information"Removed expired application secret with keyId $($Secret.keyId)."
79
+
} catch {
80
+
Write-LogMessage-API 'Update Tokens'-message "Error removing expired application secret with keyId $($Secret.keyId), see Log Data for details."-sev 'CRITICAL'-LogData (Get-CippException-Exception $_)
81
+
}
82
+
}
83
+
} else {
84
+
Write-Information"No expired application secrets found for $AppId."
Write-Warning"Could not update refresh token for tenant $($Tenant.displayName) ($($Tenant.customerId))."
111
+
Write-LogMessage-API 'Update Tokens'-tenant $Tenant.defaultDomainName-tenantid $Tenant.customerId-message "Could not update refresh token for tenant $($Tenant.displayName). Will try again in 7 days."-sev 'CRITICAL'
Write-Warning"Could not update refresh token for tenant $($Tenant.displayName) ($($Tenant.customerId))."
119
+
Write-LogMessage-API 'Update Tokens'-tenant $Tenant.defaultDomainName-tenantid $Tenant.customerId-message "Could not update refresh token for tenant $($Tenant.displayName). Will try again in 7 days."-sev 'CRITICAL'
120
+
}
121
+
}
122
+
} catch {
123
+
Write-LogMessage-API 'Update Tokens'-tenant $Tenant.defaultDomainName-tenantid $Tenant.customerId-message "Error updating refresh token for tenant $($Tenant.displayName), see Log Data for details. Will try again in 7 days."-sev 'CRITICAL'-LogData (Get-CippException-Exception $_)
0 commit comments