How to define PRIMARY KEY in azure cosmosdb arm template

captain-yossarian

is it possible to define PRIMARY key in azure cosmosdb cassandra arm template ?

Let's say I have next table:

CREATE TABLE foo
(
 id text
 name test
 PRIMARY KEY (id)
)

And my ARM template:

"schema":{
 "columns":[
   {
   "name":"id",
   "type":"text"
   }   
  ],
  "partitionKeys":[
    {"name":"id"} // how to define primary key ?
 }
Alex Ott

Primary key in Cassandra consists of one or more partition columns, and zero or more clustering columns. In ARM templates they are defined as partitionKeys and clusterKeys arrays of objects. Here is the example from documentation:

"partitionKeys": [
    { "name": "machine" },
    { "name": "cpu" },
    { "name": "mtime" }
],
"clusterKeys": [
    {
      "name": "loadid",
      "orderBy": "asc"
    }
]

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to define a table without primary key with SQLAlchemy?

From Dev

how to define composite primary key in mybatis mapping

From Java

How to get primary key from template in django?

From Dev

Unable to get Azure storage key from storage resource in ARM template

From Dev

How to define composite primary key using codeIgniter migrations?

From Dev

How to define relationship between two columns of which one is primary key?

From Dev

Azure ARM template issue

From Dev

Azure ARM - List keys - How to fetch key value of a specific key?

From Dev

How can i query a Primary key objects in django 2 template

From Dev

How to get the Key's latest version in Output section of an ARM Template?

From Dev

ARM Template with Key Vault certificate

From Dev

Azure ARM Template dependsOn: How to reference a VM extension?

From Dev

How to get clientId and clientsecret for Azure (ARM) deployment template

From Dev

How can I troubleshoot Azure ARM template validation errors?

From Dev

How to upload a certificate to Application gateway through Azure ARM Template

From Dev

How to make auto increment of an existing primary key in Azure?

From Dev

How to make auto increment of an existing primary key in Azure?

From Dev

How to define specific Resource Group in Azure Resource Manager nested template

From Dev

Best way to define composite primary key

From Dev

Azure Stream Analytics to CosmosDB with partition key error

From Dev

How to define a table that its primary key is constructed from 2 foreign keys with EF code-first

From Dev

How can I define a non-id primary key working in a Laravel database Migration?

From Dev

How to define primary key for a column by Fluent api when my mapped file is in a separate class library?

From Dev

how to define relations between many tables while I have multiple columns primary key?

From Dev

How can I define a non-id primary key working in a Laravel database Migration?

From Dev

How to define a template of template class

From Dev

django redirect with full url and primary key in template

From Dev

Entity Framework define primary key as foreign key to another entity

From Dev

multiple key vault references in same ARM template

Related Related

  1. 1

    How to define a table without primary key with SQLAlchemy?

  2. 2

    how to define composite primary key in mybatis mapping

  3. 3

    How to get primary key from template in django?

  4. 4

    Unable to get Azure storage key from storage resource in ARM template

  5. 5

    How to define composite primary key using codeIgniter migrations?

  6. 6

    How to define relationship between two columns of which one is primary key?

  7. 7

    Azure ARM template issue

  8. 8

    Azure ARM - List keys - How to fetch key value of a specific key?

  9. 9

    How can i query a Primary key objects in django 2 template

  10. 10

    How to get the Key's latest version in Output section of an ARM Template?

  11. 11

    ARM Template with Key Vault certificate

  12. 12

    Azure ARM Template dependsOn: How to reference a VM extension?

  13. 13

    How to get clientId and clientsecret for Azure (ARM) deployment template

  14. 14

    How can I troubleshoot Azure ARM template validation errors?

  15. 15

    How to upload a certificate to Application gateway through Azure ARM Template

  16. 16

    How to make auto increment of an existing primary key in Azure?

  17. 17

    How to make auto increment of an existing primary key in Azure?

  18. 18

    How to define specific Resource Group in Azure Resource Manager nested template

  19. 19

    Best way to define composite primary key

  20. 20

    Azure Stream Analytics to CosmosDB with partition key error

  21. 21

    How to define a table that its primary key is constructed from 2 foreign keys with EF code-first

  22. 22

    How can I define a non-id primary key working in a Laravel database Migration?

  23. 23

    How to define primary key for a column by Fluent api when my mapped file is in a separate class library?

  24. 24

    how to define relations between many tables while I have multiple columns primary key?

  25. 25

    How can I define a non-id primary key working in a Laravel database Migration?

  26. 26

    How to define a template of template class

  27. 27

    django redirect with full url and primary key in template

  28. 28

    Entity Framework define primary key as foreign key to another entity

  29. 29

    multiple key vault references in same ARM template

HotTag

Archive