Get-CosmosDbDocument not able to query certain items from a container #465
Labels
needs investigation
The issue needs to be investigated by the maintainers or/and the community.
question
The issue is a question.
Version - PowerShell 5.1
Host - ISE, Also tested on Azure Automation Account
OS - Windows 10
CosmosDb Powershell version - 4.6.0
The following is returning me 0 items even though data is there in cosmosdb.
Upon changing the value in the filter for c.dwnStrmAppName to something else, it does give me an output.
Essentially, the cmd is working for some items with a certain partitionKey in cosmosdb but not working for others.
(Get-CosmosDbDocument -Context $newcosmosDbContext -CollectionId $cd_containerName -Query "SELECT c.createdOn FROM c WHERE c.env='preprod' and c.action='SPN Creation' and c.status='Success' and lower(c.dwnStrmAppName)=lower('XYZ')" -QueryEnableCrossPartition 1).createdOn |Select-Object -Last 1
The text was updated successfully, but these errors were encountered: