Configuring Azure services from CM, when try to do a Discovery the task failed with the following error:
Successfully acquired access token for server app.
ERROR: Error occurred. StatusCode = Unauthorized, reason = Unauthorized
ERROR: Sync request failed. Error: System.Net.WebException: Unauthorized: Unauthorized~~ at
Microsoft.ConfigurationManager.AzureADDiscovery.AzureADQueryClient.GetGraphResponse(String graphRequest)~~ at Microsoft.ConfigurationManager.AzureADDiscovery.AzureADQueryClient.<>c_DisplayClass32_0.<QueryWithRetry>b_0()~~ at Microsoft.ConfigurationManager.AzureADDiscovery.AzureADQueryClient.InvokeOperationWithRetry(Action action, Int32 retryCount)~~ at Microsoft.ConfigurationManager.AzureADDiscovery.AzureADQueryClient.QueryWithRetry(String graphRequest)~~ at Microsoft.ConfigurationManager.AzureADDiscovery.AzureADSyncManager.Sync(Boolean runFullSync), retrying after 30 sec
Any help would be appreciated.
Thanks