microsoft-365-sizing icon indicating copy to clipboard operation
microsoft-365-sizing copied to clipboard

[ERROR] Unable to retrieve In-Place Archive sizing. The term 'Start-RobustCloudCommand' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Open skghq opened this issue 1 year ago • 0 comments

This is related to my other report: https://github.com/rubrikinc/microsoft-365-sizing/issues/17

We have 1841 archive mailboxes. I changed the threshold from 5000 to 1500 to force it down a separate code path to work around the timeout issue. Upon doing so I experienced the following error:

[INFO] Detected a large number of Archive Mailboxes. Implementing additional logic to account for Microsoft API performance limits. This may take some time.

[ACTION REQUIRED] In order to periodically refresh the connection to Microsoft, we need the User Principal Name used during the authentication process.

Enter the User Principal Name:
[ERROR] Unable to retrieve In-Place Archive sizing. The term 'Start-RobustCloudCommand' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelli
ng of the name, or if a path was included, verify that the path is correct and try again. 
[INFO] Disconnecting from the Microsoft Exchange Online Module
[INFO] Calculating the forecasted total storage need for Rubrik.

I was able to resolve it by moving the #region Start-RobustCloudCommand to the top of the PowerShell file so the function is defined before it is called.

skghq avatar Sep 25 '23 18:09 skghq