Skip to content

[Bug]: Monkey365 does not run on Linux or Azure Cloud Shell #77

@dom34

Description

@dom34

What happened?

I cloned the main branch, imported the module and invoked it as per the instructions.

How to reproduce it

Steps to reproduce the behavior:

PS /home/user> Import-Module monkey365
pwsh:
Line |
  64 |              pwsh -args @($files) -Command $ScriptBlock
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Unable to find type [Microsoft.Identity.Client.PublicClientApplicationOptions].
PS /home/user> **$param = @{
>>     Instance = 'Microsoft365';
>>     Analysis = 'Microsoft365';
>>     IncludeAzureAD = $true;
>>     DeviceCode = $true;
>>     OutDir = '/home/user/m365';
>>     ExportTo = @('HTML','JSON','CSV');
>> }**
PS /home/user> Invoke-Monkey365 @param -Verbose
InvalidOperation:
Line |
 954 |  … lications = [System.Collections.Generic.List[Microsoft.Identity.Clien …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Unable to find type [System.Collections.Generic.List].
InvalidOperation:
Line |
 955 |  … lications = [System.Collections.Generic.List[Microsoft.Identity.Clien …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Unable to find type [System.Collections.Generic.List].
InvalidOperation:
Line |
 436 |          [Microsoft.Identity.Client.AzureCloudInstance]$Environment =  …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Unable to find type [Microsoft.Identity.Client.AzureCloudInstance].
InvalidOperation:
Line |
1038 |              [void]$O365Object.msal_public_applications.Add($O365Objec …
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | You cannot call a method on a null-valued expression.

Expected behavior

I expected the module to load and run correctly without errors.

From where are you running Monkey365?

Please, complete the following information:

  • Resource: Workstation
  • OS: Debian 12 (Linux)
  • PowerShell Version [$PsVersionTable]:
PS /home/user> $PsVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.0
PSEdition                      Core
GitCommitId                    7.4.0
OS                             Debian GNU/Linux 12 (bookworm)
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
  • Monkey365 Version: v0.91.1-beta
  • Others:
user@debian12:~$ dotnet --list-sdks
7.0.404 [/usr/share/dotnet/sdk]
8.0.100 [/usr/share/dotnet/sdk]
user@debian12:~$ dotnet --list-runtimes
Microsoft.AspNetCore.App 7.0.14 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.14 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Additional context

The same problem occurs when running the module in Azure Cloud Shell

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions