Skip to content

$test1.appName = $arr1 - a null key is not allows in a hash literal #8

@LukePWilkins

Description

@LukePWilkins

Hey there Jasper,

I'm running the latest version of the validator, via app registration.
At the point of generating the flow chart, I get a PowerShell error.

Invalid Operation
flow-diagram.ps1:79
Line 79
$test1.appName = $arr1

A null key is not allowed in a hash literal.

This error keeps appearing.

UPDATE: the script has carried on, and is generating the user impact matrix now.
UDPDATE2: The html report isn't generated
UPDATE3: I think I have narrowed it down to appID - "372140e0-b3b7-4226-8ef9-d57986796201"

If I create a CA policy targeting this particular application, which is strangely named Microsoft Azure Windows Virtual Machine Sign-In and Azure Windows VM Sign-In when selecting the app and exploring its properties for one tenancy.

In another tenancy its simply named Azure Windows VM Sign-in

If you remove the filter Application type == Enterprise Applications it appears.

When running the maester test generation, the App name isn't added under the appName property. Example
"/","/","230a13a5-f193-41dd-82f0-f5b1a57ef606","/","False","test@testdomain.com (random)","mfa for test@testdomain.com (random) on NOTE MISSING APP NAME with browser auth","372140e0-b3b7-4226-8ef9-d57986796201","1a531c37-46e9-4db6-833c-de8a74c5c25b","MFA VM-SignIn","mfa",,"/","/","browser"

thus, when the test is stored in the variable $test1 and line 79-80 from flow-diagram.ps1 is ran the appName is currently $null and the error adding null to hash literal is returned.

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