Cmdlets for Azure Cosmos DB

Build 24.0.9060

SetPartitionKeyAsPK Parameter (Connect-CosmosDB Cmdlet)

Whether or not to use the collection's Partition Key field as part of composite Primary Key for the corresponding exposed table.

Syntax

Connect-CosmosDB -SetPartitionKeyAsPK bool

Data Type

bool

Default Value

true

Remarks

By default, this is set to TRUE, and the collection's Partition Key is used as part of the table's composite Primary Key along with the _rid column. If this is set to FALSE, only the _rid column will serve as the Primary Key for the exposed table.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060