OfficeDev / CAMP

Configuration Analyzer for Microsoft Purview (CAMP) is a tool which, on execution, generates a report highlighting known issues in your compliance configurations.
MIT License
26 stars 8 forks source link

Invoke-CAMP partially connects and report is very limited. #9

Open TmJr75 opened 1 year ago

TmJr75 commented 1 year ago

Hi,

Tried the module, and this looks like an interresting report similar to the ORCA report! I were hoping I could invoke it in the same way as the ORCA report. (to use it unattended)

My example to connect and put the output in my report folder:

$folder = "C:\reportingfolder\"

$orcaReport = Invoke-ORCA -Connect $False -Output @("HTML", "JSON") -OutputOptions @{HTML = @{DisplayReport = $False; OutputDirectory = "$folder" }; JSON = @{OutputDirectory = "$folder" } }
$campReport = Invoke-CAMP -Output @("HTML", "JSON") -OutputOptions @{HTML = @{DisplayReport = $False; OutputDirectory = "$folder" }; JSON = @{OutputDirectory = "$folder" } }

(tried also with -Connect $false but does not look like that parameter is present here ;) )

When I do this on several demo environments, the ORCA completes, but the CAMP command fails when using this method.

I am also presented with a username that needs to be entered. Hoped for a similar experience where this would run without trying to connect, to an already established connection. 8/24/2022 11:02:58 A general event cannot be logged. 08/24/2022 11:02:58 A general event cannot be logged. 08/24/2022 11:02:58 Performing Configuration Analyzer for Microsoft Purview Version check... 08/24/2022 11:03:01 A general event cannot be logged. 08/24/2022 11:03:01 A general event cannot be logged. Input the user name: admin@M365xxxxxx.onmicrosoft.com

If I run the Get-CAMPReport command, I get the content that I am after.

Regards Tore