AnsweredAssumed Answered

O365 Provisioning issue

Question asked by Jesvin Joseph on Sep 10, 2018

Hi,

 

We are getting an AFX error during the O365 license provisioning (that is the only activity we do on O365). This was working fine for almost an year, suddenly this issue has popped up.

 

Version 7.0.0 P05.

 

We are using an intermediate jump server (a third server) to run the shell commands for O365. Below is the command used : 

import-module MSOnline;
$secpasswd = ConvertTo-SecureString '${AdminPassword}' -AsPlainText -Force;
$mycreds = New-Object System.Management.Automation.PSCredential('${AdminUserId}',$secpasswd);
connect-msolservice -credential $mycreds;

Set-MsolUser -UserPrincipalName '${UserPrincipalName}' -UsageLocation '${Location}';
Set-MsolUserLicense -UserPrincipalName '${UserPrincipalName}' -AddLicenses '${newLicenseName}';

 

Below is the error message that we receive from AFX :

 

connect-msolservice : Exception of type
'Microsoft.Online.Administration.Automation.MicrosoftOnlineException' was
thrown.
At line:3 char:114
+ ....com',$secpasswd);connect-msolservice -credential $mycreds;
+                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [Connect-MsolService], Mic
   rosoftOnlineException
    + FullyQualifiedErrorId : 0x80090345,Microsoft.Online.Administration.Autom
   ation.ConnectMsolService

 

 

Any help would be appreciated.

Outcomes