Symptoms

Azure synchronization task failes after 1 hour with error:

Could not get resource usage for resource with UUID '<Azure APS Tenant id>': HTTP request has failed

In the azure.log on Azure endpoint server the following error can be found:

2019-01-10 00:05:59,948 WARN  [com.odin.azure.api.PartnerCenterApi] (azure task-4) AAD Token needs refreshing but no handler was registered.
2019-01-10 00:05:59,949 ERROR [com.odin.azure.api.PartnerCenterApi] (azure task-4) Refreshing the credentials has failed: PartnerException: ErrorCategory: UNAUTHORIZED, ServiceErrorPayload: null, Context: Request Id: ..., Correlation Id: en-US, Locale: en_US..., Base Description: com.microsoft.store.partnercenter.exception.PartnerException: AAD Token needs refreshing but no handler was registered.
2019-01-10 00:05:59,949 DEBUG [com.odin.azure.api.PartnerCenterApi] (azure task-4) <API-GATE> Request failed: [com.microsoft.store.partnercenter.exception.PartnerException] Refreshing the credentials has failed.
2019-01-10 00:05:59,949 ERROR [com.odin.azure.common.JsonUtils] (azure task-4) Cannot parse JSON as type 'com.odin.azure.api.resources.pc.PartnerCenterErrorResponse': Unrecognized token 'AAD': was expecting ('true', 'false' or 'null')
 at [Source: AAD Token needs refreshing but no handler was registered.; line: 1, column: 4]
2019-01-10 00:05:59,949 ERROR [com.odin.azure.common.JsonUtils] (azure task-4) Cannot parse JSON as type 'com.odin.azure.api.resources.pc.CrestErrorResponse': Unrecognized token 'AAD': was expecting ('true', 'false' or 'null')
 at [Source: AAD Token needs refreshing but no handler was registered.; line: 1, column: 4]
2019-01-10 00:05:59,952 ERROR [com.odin.azure.server.ErrorsHandler] (azure task-4) <APS-APP> Error: com.odin.azure.api.exceptions.HTTPErrorException: HTTP request has failed.
        at com.odin.azure.api.PartnerCenterApi.onTryConvertException(PartnerCenterApi.java:433) [azure-endpoint-api-gate-7.1-12.jar:7.1-12]
        at com.odin.azure.api.base.AzureApi.tryConvertException(AzureApi.java:152) [azure-endpoint-api-gate-7.1-12.jar:7.1-12]
        at com.odin.azure.api.base.AzureApi.convertException(AzureApi.java:117) [azure-endpoint-api-gate-7.1-12.jar:7.1-12]

Cause

Software related issue APSA-20352 "Azure sync failed after 1 hour with "AAD Token needs refreshing but no handler was registered"

Resolution

The issue was fixed in Azure CSP 7.5 Contact your TAM or PTA team (pta@cloudblue.com) to schedule an update.

Internal content