Skip to content

Cosmosdb collection create command should support partition key version field #14191

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

CosmosDBaz cosmosdbService AttentionThis issue is responsible by Azure service team.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions