Search Engine: Elastic

Article ID: 129653, created on Oct 23, 2016, last review on Dec 19, 2017

  • Applies to:
  • Operations Automation


Provisioning of new Office 365 CSP Tenant or any other Office 365-related operation (attempt to sync, check for domains availability) fails with the error:

2016-07-08 10:21:27,664 [   8] ERROR aps_endpoint: TenantsController.Post finished by exception Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: AADSTS70002: Error validating credentials. AADSTS50012: Invalid client secret is provided.
2016-07-08 10:21:27,679 [   8] ERROR aps_endpoint: System.Net.WebException: The remote server returned an error: (401) Unauthorized.
500 (Internal Server Error)


Incorrect reseller credentials in Office 365 application instance settings.


Check with Microsoft that all the CSP credentials are valid and not expired.

Go to Microsoft portal and check if any of application secret keys have an expiration period close to today. Generate a new Key if so, update expired one with this key in O365 application instance settings.

caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 5356b422f65bdad1c3e9edca5d74a1ae

Email subscription for changes to this article
Save as PDF