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
Due to this difference between Windows PowerShell and PowerShell Core 6.0.x, this issue needs to be reopened. If this difference is addressed in PowerShell Core 6.1 then this issue can be closed again. Otherwise some additional steps will need to be taken to improve the conversion to work on PowerShell Core.
Now that PowerShell Core 6.1 is long out we should be able to document and close this issue by defining a minimum recommended PS version and ensuring the tests work correctly with it.
Description
When using
Set-CosmosDbStoredProcedure
/New-CosmosDbStoredProcedure
cmdlet to change/create stored procedure the body becomes broken.For example code:
becomes
Environment Details
Additional observations
In
Set-CosmosDbStoredProcedure
stored procedure body is encoded using:The issue is in search string of
-replace
operation which should be enclosed in double quotes.Also code to encode body can be replaced with
And even whole REST request body can be built like this:
P.S.
I hope to prepare pull request during next few days.
The text was updated successfully, but these errors were encountered: