Skip to content

Commit a59809d

Browse files
senatolmadhura-np
andauthored
Update Cosmos DB for PostgreSQL - 2023-03-02-preview version with missing properties (#28280)
* Add CMK related properties * Fix lintdiff errors * Fix lintdiff error * Use common type for user assigned identities * Add description for primary key uri * Update UserAssignedIdentities definition from v3 to v5 * Add & update examples * Fix lintdiff error --------- Co-authored-by: madhura <[email protected]>
1 parent ac3db63 commit a59809d

18 files changed

+815
-1
lines changed

specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-02-preview/examples/ClusterAddNode.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"properties": {
2828
"provisioningState": "Provisioning",
2929
"state": "Provisioning",
30+
"aadAuthEnabled": "disabled",
3031
"postgresqlVersion": "15",
3132
"citusVersion": "11.1",
3233
"maintenanceWindow": {
@@ -38,14 +39,20 @@
3839
"preferredPrimaryZone": "1",
3940
"nodeCount": 2,
4041
"enableShardsOnCoordinator": false,
42+
"enableGeoBackup": false,
4143
"coordinatorServerEdition": "GeneralPurpose",
4244
"coordinatorStorageQuotaInMb": 524288,
4345
"coordinatorVCores": 4,
4446
"coordinatorEnablePublicIpAccess": true,
47+
"dataEncryption": {
48+
"type": "SystemManaged"
49+
},
50+
"databaseName": "citus",
4551
"nodeServerEdition": "MemoryOptimized",
4652
"nodeStorageQuotaInMb": 524288,
4753
"nodeVCores": 8,
4854
"nodeEnablePublicIpAccess": false,
55+
"passwordEnabled": "enabled",
4956
"serverNames": [
5057
{
5158
"name": "testcluster-c",
@@ -90,6 +97,7 @@
9097
"provisioningState": "Provisioning",
9198
"state": "Provisioning",
9299
"postgresqlVersion": "15",
100+
"aadAuthEnabled": "disabled",
93101
"citusVersion": "11.1",
94102
"maintenanceWindow": {
95103
"customWindow": "Disabled",
@@ -100,14 +108,20 @@
100108
"preferredPrimaryZone": "1",
101109
"nodeCount": 2,
102110
"enableShardsOnCoordinator": false,
111+
"enableGeoBackup": false,
103112
"coordinatorServerEdition": "GeneralPurpose",
104113
"coordinatorStorageQuotaInMb": 524288,
105114
"coordinatorVCores": 4,
106115
"coordinatorEnablePublicIpAccess": true,
116+
"dataEncryption": {
117+
"type": "SystemManaged"
118+
},
119+
"databaseName": "citus",
107120
"nodeServerEdition": "MemoryOptimized",
108121
"nodeStorageQuotaInMb": 524288,
109122
"nodeVCores": 8,
110123
"nodeEnablePublicIpAccess": false,
124+
"passwordEnabled": "enabled",
111125
"serverNames": [
112126
{
113127
"name": "testcluster-c",

specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-02-preview/examples/ClusterCreateBurstablev1.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,20 @@
5353
"startHour": 0,
5454
"startMinute": 0
5555
},
56+
"aadAuthEnabled": "disabled",
5657
"administratorLogin": "citus",
58+
"dataEncryption": {
59+
"type": "SystemManaged"
60+
},
61+
"passwordEnabled": "enabled",
5762
"preferredPrimaryZone": "1",
5863
"nodeCount": 0,
5964
"enableShardsOnCoordinator": true,
6065
"coordinatorServerEdition": "BurstableMemoryOptimized",
6166
"coordinatorStorageQuotaInMb": 131072,
6267
"coordinatorVCores": 1,
6368
"coordinatorEnablePublicIpAccess": true,
69+
"databaseName": "citus",
6470
"nodeEnablePublicIpAccess": false,
6571
"nodeServerEdition": "MemoryOptimized",
6672
"nodeStorageQuotaInMb": 131072,
@@ -111,14 +117,20 @@
111117
"startHour": 0,
112118
"startMinute": 0
113119
},
120+
"aadAuthEnabled": "disabled",
114121
"administratorLogin": "citus",
122+
"dataEncryption": {
123+
"type": "SystemManaged"
124+
},
125+
"passwordEnabled": "enabled",
115126
"preferredPrimaryZone": "1",
116127
"nodeCount": 0,
117128
"enableShardsOnCoordinator": true,
118129
"coordinatorServerEdition": "BurstableMemoryOptimized",
119130
"coordinatorStorageQuotaInMb": 131072,
120131
"coordinatorVCores": 1,
121132
"coordinatorEnablePublicIpAccess": true,
133+
"databaseName": "citus",
122134
"nodeEnablePublicIpAccess": false,
123135
"nodeServerEdition": "MemoryOptimized",
124136
"nodeStorageQuotaInMb": 131072,

specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-02-preview/examples/ClusterCreateBurstablev2.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,20 @@
5353
"startHour": 0,
5454
"startMinute": 0
5555
},
56+
"aadAuthEnabled": "disabled",
5657
"administratorLogin": "citus",
58+
"dataEncryption": {
59+
"type": "SystemManaged"
60+
},
61+
"passwordEnabled": "enabled",
5762
"preferredPrimaryZone": "1",
5863
"nodeCount": 0,
5964
"enableShardsOnCoordinator": true,
6065
"coordinatorServerEdition": "BurstableGeneralPurpose",
6166
"coordinatorStorageQuotaInMb": 131072,
6267
"coordinatorVCores": 2,
6368
"coordinatorEnablePublicIpAccess": true,
69+
"databaseName": "citus",
6470
"nodeEnablePublicIpAccess": false,
6571
"nodeServerEdition": "MemoryOptimized",
6672
"nodeStorageQuotaInMb": 131072,
@@ -111,14 +117,20 @@
111117
"startHour": 0,
112118
"startMinute": 0
113119
},
120+
"aadAuthEnabled": "disabled",
114121
"administratorLogin": "citus",
122+
"dataEncryption": {
123+
"type": "SystemManaged"
124+
},
125+
"passwordEnabled": "enabled",
115126
"preferredPrimaryZone": "1",
116127
"nodeCount": 0,
117128
"enableShardsOnCoordinator": true,
118129
"coordinatorServerEdition": "BurstableGeneralPurpose",
119130
"coordinatorStorageQuotaInMb": 131072,
120131
"coordinatorVCores": 2,
121132
"coordinatorEnablePublicIpAccess": true,
133+
"databaseName": "citus",
122134
"nodeEnablePublicIpAccess": false,
123135
"nodeServerEdition": "MemoryOptimized",
124136
"nodeStorageQuotaInMb": 131072,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
4+
"resourceGroupName": "TestGroup",
5+
"clusterName": "testcluster-custom-db-name",
6+
"api-version": "2023-03-02-preview",
7+
"parameters": {
8+
"location": "westus",
9+
"properties": {
10+
"administratorLoginPassword": "password",
11+
"postgresqlVersion": "15",
12+
"citusVersion": "11.3",
13+
"enableHa": true,
14+
"enableShardsOnCoordinator": true,
15+
"coordinatorServerEdition": "GeneralPurpose",
16+
"coordinatorStorageQuotaInMb": 131072,
17+
"coordinatorVCores": 8,
18+
"coordinatorEnablePublicIpAccess": true,
19+
"nodeCount": 0,
20+
"preferredPrimaryZone": "1",
21+
"databaseName": "testdbname"
22+
},
23+
"tags": {
24+
"owner": "JohnDoe"
25+
}
26+
}
27+
},
28+
"responses": {
29+
"200": {
30+
"body": {
31+
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster-custom-db-name",
32+
"name": "testcluster-custom-db-name",
33+
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2",
34+
"tags": {
35+
"owner": "JohnDoe"
36+
},
37+
"location": "westus",
38+
"systemData": {
39+
"createdBy": "user1",
40+
"createdByType": "User",
41+
"createdAt": "2022-01-01T17:18:19.1234567Z",
42+
"lastModifiedBy": "user2",
43+
"lastModifiedByType": "User",
44+
"lastModifiedAt": "2022-01-02T17:18:19.1234567Z"
45+
},
46+
"properties": {
47+
"provisioningState": "Provisioning",
48+
"state": "Provisioning",
49+
"postgresqlVersion": "15",
50+
"aadAuthEnabled": "disabled",
51+
"citusVersion": "11.3",
52+
"maintenanceWindow": {
53+
"customWindow": "Disabled",
54+
"dayOfWeek": 0,
55+
"startHour": 0,
56+
"startMinute": 0
57+
},
58+
"administratorLogin": "citus",
59+
"dataEncryption": {
60+
"type": "SystemManaged"
61+
},
62+
"passwordEnabled": "enabled",
63+
"preferredPrimaryZone": "1",
64+
"nodeCount": 0,
65+
"enableShardsOnCoordinator": true,
66+
"coordinatorServerEdition": "GeneralPurpose",
67+
"coordinatorStorageQuotaInMb": 131072,
68+
"coordinatorVCores": 8,
69+
"coordinatorEnablePublicIpAccess": true,
70+
"databaseName": "testdbname",
71+
"nodeEnablePublicIpAccess": false,
72+
"nodeServerEdition": "MemoryOptimized",
73+
"nodeStorageQuotaInMb": 131072,
74+
"nodeVCores": 8,
75+
"serverNames": [
76+
{
77+
"name": "testcluster-singlenode-c",
78+
"fullyQualifiedDomainName": "c.testcluster-singlenode.postgres.database.azure.com"
79+
}
80+
],
81+
"sourceResourceId": null,
82+
"enableHa": true,
83+
"readReplicas": [],
84+
"earliestRestoreTime": null,
85+
"privateEndpointConnections": []
86+
}
87+
}
88+
},
89+
"201": {
90+
"headers": {
91+
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2023-03-02-preview",
92+
"Location": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/westus/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2023-03-02-preview"
93+
},
94+
"body": {
95+
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster-singlenode",
96+
"name": "testcluster-singlenode",
97+
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2",
98+
"tags": {
99+
"owner": "JohnDoe"
100+
},
101+
"location": "westus",
102+
"systemData": {
103+
"createdBy": "user1",
104+
"createdByType": "User",
105+
"createdAt": "2022-01-01T17:18:19.1234567Z",
106+
"lastModifiedBy": "user2",
107+
"lastModifiedByType": "User",
108+
"lastModifiedAt": "2022-01-02T17:18:19.1234567Z"
109+
},
110+
"properties": {
111+
"provisioningState": "Provisioning",
112+
"state": "Provisioning",
113+
"postgresqlVersion": "15",
114+
"aadAuthEnabled": "disabled",
115+
"citusVersion": "11.3",
116+
"maintenanceWindow": {
117+
"customWindow": "Disabled",
118+
"dayOfWeek": 0,
119+
"startHour": 0,
120+
"startMinute": 0
121+
},
122+
"administratorLogin": "citus",
123+
"dataEncryption": {
124+
"type": "SystemManaged"
125+
},
126+
"preferredPrimaryZone": "1",
127+
"nodeCount": 0,
128+
"enableShardsOnCoordinator": true,
129+
"coordinatorServerEdition": "GeneralPurpose",
130+
"coordinatorStorageQuotaInMb": 131072,
131+
"coordinatorVCores": 8,
132+
"coordinatorEnablePublicIpAccess": true,
133+
"databaseName": "testdbname",
134+
"nodeEnablePublicIpAccess": false,
135+
"nodeServerEdition": "MemoryOptimized",
136+
"nodeStorageQuotaInMb": 131072,
137+
"nodeVCores": 8,
138+
"passwordEnabled": "enabled",
139+
"serverNames": [
140+
{
141+
"name": "testcluster-singlenode-c",
142+
"fullyQualifiedDomainName": "c.testcluster-singlenode.postgres.database.azure.com"
143+
}
144+
],
145+
"sourceResourceId": null,
146+
"enableHa": true,
147+
"readReplicas": [],
148+
"earliestRestoreTime": null,
149+
"privateEndpointConnections": []
150+
}
151+
}
152+
}
153+
}
154+
}

specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-02-preview/examples/ClusterCreateMultiNode.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,20 @@
5353
"startHour": 0,
5454
"startMinute": 0
5555
},
56+
"aadAuthEnabled": "disabled",
5657
"administratorLogin": "citus",
58+
"dataEncryption": {
59+
"type": "SystemManaged"
60+
},
61+
"passwordEnabled": "enabled",
5762
"preferredPrimaryZone": "1",
5863
"nodeCount": 3,
5964
"enableShardsOnCoordinator": false,
6065
"coordinatorServerEdition": "GeneralPurpose",
6166
"coordinatorStorageQuotaInMb": 524288,
6267
"coordinatorVCores": 4,
6368
"coordinatorEnablePublicIpAccess": true,
69+
"databaseName": "citus",
6470
"nodeServerEdition": "MemoryOptimized",
6571
"nodeStorageQuotaInMb": 524288,
6672
"nodeVCores": 8,
@@ -121,14 +127,20 @@
121127
"startHour": 0,
122128
"startMinute": 0
123129
},
130+
"aadAuthEnabled": "disabled",
124131
"administratorLogin": "citus",
132+
"dataEncryption": {
133+
"type": "SystemManaged"
134+
},
135+
"passwordEnabled": "enabled",
125136
"preferredPrimaryZone": "1",
126137
"nodeCount": 3,
127138
"enableShardsOnCoordinator": false,
128139
"coordinatorServerEdition": "GeneralPurpose",
129140
"coordinatorStorageQuotaInMb": 524288,
130141
"coordinatorVCores": 4,
131142
"coordinatorEnablePublicIpAccess": true,
143+
"databaseName": "citus",
132144
"nodeServerEdition": "MemoryOptimized",
133145
"nodeStorageQuotaInMb": 524288,
134146
"nodeVCores": 8,

specification/postgresqlhsc/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-02-preview/examples/ClusterCreatePITR.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,20 @@
3838
"startHour": 0,
3939
"startMinute": 0
4040
},
41+
"aadAuthEnabled": "disabled",
4142
"administratorLogin": "citus",
43+
"dataEncryption": {
44+
"type": "SystemManaged"
45+
},
46+
"passwordEnabled": "enabled",
4247
"preferredPrimaryZone": "1",
4348
"nodeCount": 1,
4449
"enableShardsOnCoordinator": false,
4550
"coordinatorServerEdition": "GeneralPurpose",
4651
"coordinatorStorageQuotaInMb": 524288,
4752
"coordinatorVCores": 4,
4853
"coordinatorEnablePublicIpAccess": true,
54+
"databaseName": "citus",
4955
"nodeServerEdition": "MemoryOptimized",
5056
"nodeStorageQuotaInMb": 524288,
5157
"nodeVCores": 8,
@@ -97,14 +103,20 @@
97103
"startHour": 0,
98104
"startMinute": 0
99105
},
106+
"aadAuthEnabled": "disabled",
100107
"administratorLogin": "citus",
108+
"dataEncryption": {
109+
"type": "SystemManaged"
110+
},
111+
"passwordEnabled": "enabled",
101112
"preferredPrimaryZone": "1",
102113
"nodeCount": 1,
103114
"enableShardsOnCoordinator": false,
104115
"coordinatorServerEdition": "GeneralPurpose",
105116
"coordinatorStorageQuotaInMb": 524288,
106117
"coordinatorVCores": 4,
107118
"coordinatorEnablePublicIpAccess": true,
119+
"databaseName": "citus",
108120
"nodeServerEdition": "MemoryOptimized",
109121
"nodeStorageQuotaInMb": 524288,
110122
"nodeVCores": 8,

0 commit comments

Comments
 (0)