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
PS /Users/jason.chester/_dev/LDM/scripts/generic> Measure-CosmosDbPartitionDocuments -PartitionKey "bmi"
Invoke-CosmosDbRequest : A parameter cannot be found that matches parameter name 'PartitionKey'.
At /usr/local/share/powershell/Modules/CosmosDB/2.0.10.388/lib/documents.ps1:242 char:42
+ $result = Invoke-CosmosDbRequest @PSBoundParameters `
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-CosmosDbRequest], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Invoke-CosmosDbRequest
Attatched file contains edits to documents.ps1 which resolved my specific issue. documents.ps1.txt
Version of PowerShell you're using
Name Value
PSVersion 6.0.0
PSEdition Core
GitCommitId v6.0.0
OS Darwin 17.6.0 Darwin Kernel Version 17.6.0: Fri Apr 13 19:57:44 PDT 2018; root:xnu-4570.60.17.0.1~3/RELEASE_X86_64
Platform Unix
PowerShell host you're using (eg. Console Host, ISE, Visual Studio)
pwsh in terminal & VS Code Host
Operating system you're running
macOS High Sierra
version 10.13.5 Beta (17F45c)
Version of CosmosDB you're using (use Get-Module -Name CosmosDB)
CosmosDB 2.0.10.388
The text was updated successfully, but these errors were encountered:
PartitionKey is handled when -Id is passed
@ https://github.com/PlagueHO/CosmosDB/blob/dev/src/lib/documents.ps1#L156-L159
But is not handled in the else block. @ https://github.com/PlagueHO/CosmosDB/blob/dev/src/lib/documents.ps1#L173-L259
Error Produced:
Attatched file contains edits to documents.ps1 which resolved my specific issue.
documents.ps1.txt
PowerShell host you're using (eg. Console Host, ISE, Visual Studio)
pwsh in terminal & VS Code Host
Operating system you're running
macOS High Sierra
version 10.13.5 Beta (17F45c)
Version of CosmosDB you're using (use
Get-Module -Name CosmosDB
)CosmosDB 2.0.10.388
The text was updated successfully, but these errors were encountered: