forked from Azure/bicep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathres-cosmos-sql-container.bicep
47 lines (46 loc) · 1.26 KB
/
res-cosmos-sql-container.bicep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Cosmos DB SQL Container
resource sqlDb 'Microsoft.DocumentDB/databaseAccounts/sqlDatabases@2021-06-15' = {
name: /*${1:'name'}*/'account-name/database-name'
properties: {
resource: {
id: /*${2:'id'}*/'id'
}
options: {}
}
}
resource /*${3:sqlContainerName}*/sqlContainerName 'Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers@2021-06-15' = {
parent: sqlDb
name: /*${4:'name'}*/'name'
properties: {
resource: {
id: /*${5:'id'}*/'id'
partitionKey: {
paths: [
/*${6:'paths'}*/'paths'
]
kind: /*'${7|Hash,Range|}'*/'Hash'
}
indexingPolicy: {
indexingMode: /*'${8|consistent,lazy,none|}'*/'consistent'
includedPaths: [
{
path: /*${9:'path'}*/'path'
indexes: [
{
kind: /*'${10|Hash,Range,Spatial|}'*/'Hash'
dataType: /*'${11|String,Number,Point,Polygon,LineString,MultiPolygon|}'*/'String'
precision: /*${12:'precision'}*/'precision'
}
]
}
]
excludedPaths: [
{
path: /*${13:'path'}*/'path'
}
]
}
}
options: {}
}
}