You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note the -BearerToken "Bearer JldjfafLJdfjlfsalfd..." part with the "Bearer " prefix in front of the actual token value. When executing the cmdlet in this style with valid values, this results in an error:
VERBOSE: [05:33:45][Start-LcsUploadV2] Invoke LCS request.
VERBOSE: POST https://lcsapi.lcs.dynamics.com/box/fileasset/CreateFileAsset/123456789 with -1-byte payload
[05:33:46][Start-LcsUploadV2] Error status code Forbidden in starting a new deployment in LCS. Forbidden. | The remote server returned an error: (403) Forbidden.
WARNING: [05:33:46][Start-LcsUploadV2] Stopping because of errors
If the cmdlet is called without the "Bearer " prefix, the execution is successful.
Note that there are cmdlets where the parameter is specified without the "Bearer " prefix in the examples, e.g. Get-D365LcsDatabaseBackups
It seems that several cmdlets with a
-BearerToken
parameter have examples with an incorrect specification of the parameter.For example, Invoke-D365LcsUpload has the following example:
d365fo.tools/d365fo.tools/functions/invoke-d365lcsupload.ps1
Line 96 in 5cdf57d
Note the
-BearerToken "Bearer JldjfafLJdfjlfsalfd..."
part with the "Bearer " prefix in front of the actual token value. When executing the cmdlet in this style with valid values, this results in an error:If the cmdlet is called without the "Bearer " prefix, the execution is successful.
Note that there are cmdlets where the parameter is specified without the "Bearer " prefix in the examples, e.g. Get-D365LcsDatabaseBackups
d365fo.tools/d365fo.tools/functions/get-d365lcsdatabasebackups.ps1
Line 62 in 5cdf57d
The cmdlets with wrong examples are:
Internal cmdlets
-Headers
parameter specification.The text was updated successfully, but these errors were encountered: