0 votes

This issue affects only Adaxes versions that use the Exchange Online Management (EXO v3) PowerShell module:

  • Adaxes 2023.2 - all versions
  • Adaxes 2023 - starting from version 3.15.21404
  • Adaxes 2021.1 - starting from version 3.14.21404
  • Adaxes 2020.1 - starting from version 3.13.21404

 

Description

If a Microsoft 365 tenant is registered in Adaxes via user account credentials and the computer where Adaxes service is installed uses a proxy server, certain operations in Exchange Online will always fail with the following error message.

 

Error message

{
    "error": {
        "code": "BadRequest",
        "message": "Cmdlet needs proxy. Current Server FQDN : server.prod.outlook.com, Required Server FQDN : server2.prod.outlook.com",
        "innererror": {
            "message": "Cmdlet needs proxy. Current Server FQDN : server.prod.outlook.com, Required Server FQDN : server2.prod.outlook.com",
            "type": "Microsoft.Exchange.Admin.OData.Core.ODataServiceException",
            "stacktrace": "at Microsoft.Exchange.AdminApi.CommandInvocation.CommandInvocation.InvokeCommand(QueryContext queryContext, CmdletInvokeInputType cmdletInvokeInputType)
                           at Microsoft.Exchange.Admin.OData.Core.PathSegmentToExpressionTranslator.Translate(OperationImportSegment segment)
                           at Microsoft.Exchange.Admin.OData.Core.QueryContext.ResolveQuery(ODataContext context, Int32 level)
                           at Microsoft.Exchange.Admin.OData.Core.Handlers.OperationHandler.Process(IODataRequestMessage requestMessage, IODataResponseMessage responseMessage)
                           at Microsoft.Exchange.Admin.OData.Core.Handlers.RequestHandler.Process(Stream requestStream)"
        }
    }
}

 

Cause

The EXO v3 PowerShell module has a known issue with user account authentication in such scenarios.

 

Solution

Switch the tenant registration to an application account. For more details, see how to Register Adaxes as an app in Microsoft Azure.

by (550 points)

Please log in or register to answer this question.

Related questions

0 votes
1 answer

Greetings. When I create the parameters to make a business rule that looks for users whose Email Proxy Adresses does not contain 'SMTP:%userPrincipalName%', it still generates profiles ... and primary SMTP address don't match. Version is 2023 How rule is set

asked Dec 19, 2022 by MShep (80 points)
0 votes
1 answer

How can i différenciante the two user without opening each one of them ?

asked Jan 20, 2023 by eric.lebrun (20 points)
0 votes
0 answers

Whether I try to run a script or manually run the commands to enroll users, users remain unenrolled. Example of a basic script: Import-Module ... ` -QuestionsAndAnswers @{$question1=$answer1;$question2=$answer2} -AdaxesService localhost Adaxes version 2021

asked Mar 27, 2023 by gwadmin (80 points)
0 votes
1 answer

When creating a hybrid user mailbox with a Business Rule, after user creation, the remote routing address of the mailbox is set to the users email alias. How do I set it to the 365 address username@ourdomain.mail.onmicrosoft.com

asked Apr 13, 2022 by john.harding (70 points)
0 votes
1 answer

We have users with a value of a space for their mobile number and telephone number. I would like to figure out who these users are and null the value. Or if the value contains a number leave it alone. if it does not have a number then null the value.

asked Nov 15, 2022 by B_Witmer (40 points)
3,351 questions
3,052 answers
7,791 comments
545,102 users