WARNING: Resulting JSON is truncated as serialization has exceeded the set depth of 2.
WARNING: An error occurred: Response status code does not indicate success: 403 (Forbidden). WARNING: You need to be an organization/collection level Administrator of the service endpoint to perform this operation.
> $PSVersionTable
Name Value
---- -----
PSVersion 7.1.3
PSEdition Core
GitCommitId 7.1.3
OS Darwin 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
When more complex service connections are created/modified the json is truncated and so it's not fully working.
There are multiple
ConvertTo-Json
without depth and the default depth is only 2 which results in truncated body data.Steps to reproduce
Expected behavior
no warning :)
Actual behavior
Environment data
OS
Server