Tenant attach activation issue

Brass Contributor
Hi, we,re trying to enable tenant attach (co-management is already setup), but when we do, we get the following error in the CMGatewayNotificationWorker.log
error 400 while trying to get new notifications from : getting web response from https://us.gateway.configmgr.manage.microsoft.com 400 bad request activity ID (guid).
Anyone had this issue when trying to enable tenant attach?
Thks
10 Replies

@Stephane Lalancette Are you sure all prerequisites have been met? In a nutshell:

  • Azure AD Global Administrator account so app and SPN can be created;
  • User accounts discovered by both Azure AD user discovery and Active Directory user discovery.

See Enable tenant attach for detailed information.

 

@Michiel Overweel yes all the prereqs have been met.

 

It,s the same issue that was reported here:
https://github.com/MicrosoftDocs/SCCMdocs/issues/2292

@Stephane Lalancette It would help if you could post the relevant portion of your CMGatewayNotificationWorker.log. Feel free to remove any GUID's and/or other ID's that you do not wish to disclose.

@Michiel Overweel sorry for the late reply.

Here's the cleaned logs like you've requested. Can't attach log files here

<![LOG[Worker CMGatewayNotificationWorker was triggered by timer.]LOG]!><time="15:48:09.1477941" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5491" file="">
<![LOG[Worker CMGatewayNotificationWorker was triggered by timer.]LOG]!><time="16:11:34.3443746" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="88" file="">
<![LOG[Triggered CMGatewayNotificationWorker::ExecuteAsync()]LOG]!><time="16:11:34.3443746" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="88" file="">
<![LOG[Using location service to look up URL base]LOG]!><time="16:11:35.3574610" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5444" file="">
<![LOG[Got cached location https://us.gateway.configmgr.manage.microsoft.com/api/gateway/Available for endpoint Available and scenario HelpDesk (2)]LOG]!><time="16:11:35.3574610" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5444" file="">
<![LOG[Using proxy server 'http:///' to connect to URL 'https://us.gateway.configmgr.manage.microsoft.com/api/gateway/Available'. Anonymous=True]LOG]!><time="16:11:35.3584623" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5444" file="">
<![LOG[Creating web request to: https://us.gateway.configmgr.manage.microsoft.com/api/gateway/Available]LOG]!><time="16:11:35.359462..." date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5444" file="">
<![LOG[Authenticating with web service at: https://us.gateway.configmgr.manage.microsoft.com/api/gateway/Available]LOG]!><time="16:11:35.359462..." date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5444" file="">
<![LOG[Using proxy for ADAL]LOG]!><time="16:11:35.3594620" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5444" file="">
<![LOG[Response status code: 200 (OK) Activity ID: ]LOG]!><time="16:11:35.8594994" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5463" file="">
<![LOG[Service version 2007 detected]LOG]!><time="16:11:35.8594994" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5463" file="">
<![LOG[Verifying tenant is on-boarded to feature(s) HelpDesk]LOG]!><time="16:11:35.8594994" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5463" file="">
<![LOG[No unprocessed HelpDesk onboarding task.]LOG]!><time="16:11:35.8614985" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5444" file="">
<![LOG[Refreshing AdminService location]LOG]!><time="16:11:35.8614985" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5444" file="">
<![LOG[Refreshing Admin Service FQDN]LOG]!><time="16:11:35.8614985" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5444" file="">
<![LOG[Completed running stored procedure to find provider location]LOG]!><time="16:11:35.8614985" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5444" file="">
<![LOG[Using location service to look up URL base]LOG]!><time="16:11:35.8614985" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5444" file="">
<![LOG[Got cached location https://us.gateway.configmgr.manage.microsoft.com/api/gateway/Notification for endpoint Notification and scenario HelpDesk (2)]LOG]!><time="16:11:35.8614985" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5444" file="">
<![LOG[Got service endpoint url https://us.gateway.configmgr.manage.microsoft.com/api/gateway/Notification from location service]LOG]!><time="16:11:35.8624988" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5444" file="">
<![LOG[Using location service to look up URL base]LOG]!><time="16:11:35.8624988" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5444" file="">
<![LOG[Got cached location https://us.gateway.configmgr.manage.microsoft.com/api/gateway/NotificationResult for endpoint NotificationResult and scenario HelpDesk (2)]LOG]!><time="16:11:35.8624988" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5444" file="">
<![LOG[Got result endpoint url https://us.gateway.configmgr.manage.microsoft.com/api/gateway/NotificationResult from location service]LOG]!><time="16:11:35.8624988" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5444" file="">
<![LOG[Got current hierarchy ID =]LOG]!><time="16:11:35.8624988" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5444" file="">
<![LOG[Using proxy server 'http:///' to connect to URL 'https://us.gateway.configmgr.manage.microsoft.com/api/gateway/Notification'. Anonymous=True]LOG]!><time="16:11:35.8634997" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5444" file="">
<![LOG[Authenticating with web service at: https://us.gateway.configmgr.manage.microsoft.com/api/gateway/Notification]LOG]!><time="16:11:35.863..." date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5444" file="">
<![LOG[Using proxy for ADAL]LOG]!><time="16:11:35.8634997" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5444" file="">
<![LOG[Getting web response from https://us.gateway.configmgr.manage.microsoft.com/api/gateway/Notification for new notifications...]LOG]!><time="16:11:35.8664990" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5444" file="">
<![LOG[Response status code: 400 (BadRequest) Activity ID: ]LOG]!><time="16:11:36.5815595" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="5463" file="">
<![LOG[Web exception when getting new notification: System.Net.WebException: The remote server returned an error: (400) Bad Request.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ConfigurationManager.ServiceConnector.ExtensionMethods.<GetResponseAsync>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ConfigurationManager.ServiceConnector.CMGatewayNotificationWorker.<DoWorkAsync>d__5.MoveNext()]LOG]!><time="16:11:36.5825596" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="3" thread="5463" file="">
<![LOG[Response in the web exception: {"Message":"An error has occurred.","ExceptionMessage":"Recipient = is detected for getting new notification already","ExceptionType":"Microsoft.Management.S]LOG]!><time="16:11:36.5835593" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="3" thread="5463" file="">
<![LOG[Worker CMGatewayNotificationWorker is finished processing.]LOG]!><time="16:11:36.5835593" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="88" file="">
<![LOG[Next run time will be at approximately: 07/20/2020 16:12:36]LOG]!><time="16:11:36.5835593" date="7-20-2020" component="SMS_SERVICE_CONNECTOR_CMGatewayNotificationWorker" context="" type="1" thread="88" file="">

 

Thank you for your help

@Stephane Lalancette This would seem to be a bug. If you need to know for sure, you're going to have to raise a Support Request with Microsoft Support.

@Stephane Lalancette hate to necro-post, but I'm having this same issue. Did you ever get this resolved?

@mbukawhiteDid you solved this? I have the same issue

@Michael140 No we still have not resolved this issue. I have a support case open with Microsoft but they can't seem to figure it out either. I've been through the Intune team and the Configuration Manager team and no one knows what's going on.

Hi,
On Reddit, guys that encountered this issue said it resolve "magically", one of them simply disable and enable tenant-attach 15 days later.
Are you sure that your Azure AD Serveur App haven't change between comanagement activation and tenant-attach activation ?Anoher guy says disabling comgmt and remove Azure AD app then reconfigure all of them cause this issue because registry entry from the first configuration were in conflict.

@DxR Same issue here with 2203. Tried offboarding and removing enterprise app, intune connector, etc.

Same issue when I re-enroll.