CodeDump icon indicating copy to clipboard operation
CodeDump copied to clipboard

Add-GraphApiRoleToMSI.ps1 is broken

Open Dirk-Manderin opened this issue 1 year ago • 1 comments

These two lines: $msiItem = Invoke-RestMethod @msiParams -Uri "$($baseUri)/$($msiId)?`$expand=appRoleAssignments" $graphRoles = (Invoke-RestMethod @msiParams -Uri "$baseUri/$($graphId)/appRoles").Value |

error out with "WARNING: Cannot bind parameter because parameter 'Uri' is specified more than once. To provide multiple values to parameters that can accept multiple values, use the array syntax. For example, "-parameter value1,value2,value3"."

@msiParams has -Uri, as does each line above.

Dirk-Manderin avatar Mar 08 '23 19:03 Dirk-Manderin