-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
Is your feature request related to a problem? Please describe.
Cannot set cosmosdb collection partition key version from CLI
Describe the solution you'd like
The Cosmosdb collection partition key settings have a version field detailed here:
https://docs.microsoft.com/en-us/azure/cosmos-db/large-partition-keys?tabs=dotnetv3#supported-sdk-versions
Seems like that field is already in the auto-generated model:
https://azuresdkdocs.blob.core.windows.net/$web/python/azure-mgmt-cosmosdb/0.12.0/azure.mgmt.cosmosdb.models.html#azure.mgmt.cosmosdb.models.ContainerPartitionKey
Would like to have a new optional command parameter to collection create that would populate it here:
| container_partition_key = ContainerPartitionKey() |
Describe alternatives you've considered
Using an ARM template manually via az group deployment create
Monkey-patching ContainerPartitionKey
Additional context