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
if ($env:AzureWebJobsStorage-eq'UseDevelopmentStorage=true') {
17
17
$Table=Get-CIPPTable-tablename 'DevSecrets'
18
18
$Secret=Get-CIPPAzDataTableEntity@Table-Filter "PartitionKey eq 'Secret' and RowKey eq 'Secret'"
@@ -39,6 +39,50 @@ function Start-UpdateTokensTimer {
39
39
} catch {
40
40
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
41
}
42
+
43
+
# Get new refresh token for each direct added tenant
Write-Warning"Could not update refresh token for tenant $($Tenant.displayName) ($($Tenant.customerId))."
62
+
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))."
77
+
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'
78
+
}
79
+
}
80
+
} catch {
81
+
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 $_)
82
+
}
83
+
}
84
+
}
85
+
42
86
# Write an information log with the current time.
43
87
Write-Information"PowerShell timer trigger function ran! TIME: $currentUTCtime"
0 commit comments