You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
silverhack
changed the title
[Bug]: cannot call a method on a null-valued expression.
[Bug]: ~~cannot call a method on a null-valued expression.~~ Monkey365 causes exception when Analysis and IncludeEntraId parameters are not provided
Apr 25, 2024
silverhack
changed the title
[Bug]: ~~cannot call a method on a null-valued expression.~~ Monkey365 causes exception when Analysis and IncludeEntraId parameters are not provided
[Bug]: Monkey365 causes exception when Analysis and IncludeEntraId parameters are not provided
Apr 25, 2024
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.
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: