-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Monkey365 causes exception when Analysis and IncludeEntraId parameters are not provided #98
Comments
Hi @sssseossss, Renamed the issue as the title is not reflecting the actual issue. Firstly, the execution is not a bug and you're executing Monkey365 incorrectly. Please, see docs about how to correctly execute Monkey365 against supported environments. The instance parameter must be populated when the -IncludeEntraId is not set. Valid options are Azure and Microsoft365. You can find more information here. On the other hand, Monkey365 should raise an error when both parameters are not provided. It's a bug and should be fixed shortly. Thanks for using Monkey365! |
This is now updated in main release. Cheers, |
What happened?
using Pwsh7.4
Donwloaded newest version from develop branch, imported module, then invoke-monkey365 -> input credentials and get the following:
InvalidOperation: C:\users\XXXX\downloads\powershell-7.4.2-win-x64\Modules\monkey365\Invoke-Monkey365.ps1:455
Line |
455 | switch ($O365Object.Instance.ToLower()){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| You cannot call a method on a null-valued expression.
How to reproduce it
as described above
Expected behavior
Program should just work
Screenshots or Logs
all info noted above
From where are you running Monkey365?
Please, complete the following information:
$PsVersionTable
]: 7.4.2Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: