Closed bartvermeersch closed 2 years ago
Have tracked this issue back to an issue in ReverseDsc. Am working on fixing that, before I can update the required version in SPDsc.
Fixed in ReverseDsc v2.0.0.10 via PR [microsoft/ReverseDSC#25].
Working on the PR for SPDsc to use this version now.
Tested on PS5.1 with SharePointDSC v5.0.0
The list of Members in an SPWebAppPolicy throws an error when it is delimited with an "," while ReverseDSC does put an "," delimiter between the Members. Either reverseDSC or DSC contains a bug.
Output from ReverseDSC:
This throws an error because of the "," delimiter, removing the "," solves the issue:
SPWebAppPolicy WebAppPolicy { WebAppUrl = "http://sharepoint.contoso.com" Members = @( MSFT_SPWebPolicyPermissions { Username = "contoso\user1" PermissionLevel = "Full Control" ActAsSystemAccount = $true ==> }, MSFT_SPWebPolicyPermissions { Username = "contoso\Group 1" PermissionLevel = "Full Read" IdentityType = "Claims" } ) PsDscRunAsCredential = $SetupAccount }
The error: At line:1295 char:19