Skip to content

Commit

Permalink
Update Cosmos DB for PostgreSQL - 2023-03-02-preview version with mis…
Browse files Browse the repository at this point in the history
…sing 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 <56606095+madhura-np@users.noreply.github.com>
  • Loading branch information
senatol and madhura-np committed May 13, 2024
1 parent ac3db63 commit a59809d
Show file tree
Hide file tree
Showing 18 changed files with 815 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"properties": {
"provisioningState": "Provisioning",
"state": "Provisioning",
"aadAuthEnabled": "disabled",
"postgresqlVersion": "15",
"citusVersion": "11.1",
"maintenanceWindow": {
Expand All @@ -38,14 +39,20 @@
"preferredPrimaryZone": "1",
"nodeCount": 2,
"enableShardsOnCoordinator": false,
"enableGeoBackup": false,
"coordinatorServerEdition": "GeneralPurpose",
"coordinatorStorageQuotaInMb": 524288,
"coordinatorVCores": 4,
"coordinatorEnablePublicIpAccess": true,
"dataEncryption": {
"type": "SystemManaged"
},
"databaseName": "citus",
"nodeServerEdition": "MemoryOptimized",
"nodeStorageQuotaInMb": 524288,
"nodeVCores": 8,
"nodeEnablePublicIpAccess": false,
"passwordEnabled": "enabled",
"serverNames": [
{
"name": "testcluster-c",
Expand Down Expand Up @@ -90,6 +97,7 @@
"provisioningState": "Provisioning",
"state": "Provisioning",
"postgresqlVersion": "15",
"aadAuthEnabled": "disabled",
"citusVersion": "11.1",
"maintenanceWindow": {
"customWindow": "Disabled",
Expand All @@ -100,14 +108,20 @@
"preferredPrimaryZone": "1",
"nodeCount": 2,
"enableShardsOnCoordinator": false,
"enableGeoBackup": false,
"coordinatorServerEdition": "GeneralPurpose",
"coordinatorStorageQuotaInMb": 524288,
"coordinatorVCores": 4,
"coordinatorEnablePublicIpAccess": true,
"dataEncryption": {
"type": "SystemManaged"
},
"databaseName": "citus",
"nodeServerEdition": "MemoryOptimized",
"nodeStorageQuotaInMb": 524288,
"nodeVCores": 8,
"nodeEnablePublicIpAccess": false,
"passwordEnabled": "enabled",
"serverNames": [
{
"name": "testcluster-c",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,20 @@
"startHour": 0,
"startMinute": 0
},
"aadAuthEnabled": "disabled",
"administratorLogin": "citus",
"dataEncryption": {
"type": "SystemManaged"
},
"passwordEnabled": "enabled",
"preferredPrimaryZone": "1",
"nodeCount": 0,
"enableShardsOnCoordinator": true,
"coordinatorServerEdition": "BurstableMemoryOptimized",
"coordinatorStorageQuotaInMb": 131072,
"coordinatorVCores": 1,
"coordinatorEnablePublicIpAccess": true,
"databaseName": "citus",
"nodeEnablePublicIpAccess": false,
"nodeServerEdition": "MemoryOptimized",
"nodeStorageQuotaInMb": 131072,
Expand Down Expand Up @@ -111,14 +117,20 @@
"startHour": 0,
"startMinute": 0
},
"aadAuthEnabled": "disabled",
"administratorLogin": "citus",
"dataEncryption": {
"type": "SystemManaged"
},
"passwordEnabled": "enabled",
"preferredPrimaryZone": "1",
"nodeCount": 0,
"enableShardsOnCoordinator": true,
"coordinatorServerEdition": "BurstableMemoryOptimized",
"coordinatorStorageQuotaInMb": 131072,
"coordinatorVCores": 1,
"coordinatorEnablePublicIpAccess": true,
"databaseName": "citus",
"nodeEnablePublicIpAccess": false,
"nodeServerEdition": "MemoryOptimized",
"nodeStorageQuotaInMb": 131072,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,20 @@
"startHour": 0,
"startMinute": 0
},
"aadAuthEnabled": "disabled",
"administratorLogin": "citus",
"dataEncryption": {
"type": "SystemManaged"
},
"passwordEnabled": "enabled",
"preferredPrimaryZone": "1",
"nodeCount": 0,
"enableShardsOnCoordinator": true,
"coordinatorServerEdition": "BurstableGeneralPurpose",
"coordinatorStorageQuotaInMb": 131072,
"coordinatorVCores": 2,
"coordinatorEnablePublicIpAccess": true,
"databaseName": "citus",
"nodeEnablePublicIpAccess": false,
"nodeServerEdition": "MemoryOptimized",
"nodeStorageQuotaInMb": 131072,
Expand Down Expand Up @@ -111,14 +117,20 @@
"startHour": 0,
"startMinute": 0
},
"aadAuthEnabled": "disabled",
"administratorLogin": "citus",
"dataEncryption": {
"type": "SystemManaged"
},
"passwordEnabled": "enabled",
"preferredPrimaryZone": "1",
"nodeCount": 0,
"enableShardsOnCoordinator": true,
"coordinatorServerEdition": "BurstableGeneralPurpose",
"coordinatorStorageQuotaInMb": 131072,
"coordinatorVCores": 2,
"coordinatorEnablePublicIpAccess": true,
"databaseName": "citus",
"nodeEnablePublicIpAccess": false,
"nodeServerEdition": "MemoryOptimized",
"nodeStorageQuotaInMb": 131072,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
{
"parameters": {
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"resourceGroupName": "TestGroup",
"clusterName": "testcluster-custom-db-name",
"api-version": "2023-03-02-preview",
"parameters": {
"location": "westus",
"properties": {
"administratorLoginPassword": "password",
"postgresqlVersion": "15",
"citusVersion": "11.3",
"enableHa": true,
"enableShardsOnCoordinator": true,
"coordinatorServerEdition": "GeneralPurpose",
"coordinatorStorageQuotaInMb": 131072,
"coordinatorVCores": 8,
"coordinatorEnablePublicIpAccess": true,
"nodeCount": 0,
"preferredPrimaryZone": "1",
"databaseName": "testdbname"
},
"tags": {
"owner": "JohnDoe"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster-custom-db-name",
"name": "testcluster-custom-db-name",
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2",
"tags": {
"owner": "JohnDoe"
},
"location": "westus",
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2022-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2022-01-02T17:18:19.1234567Z"
},
"properties": {
"provisioningState": "Provisioning",
"state": "Provisioning",
"postgresqlVersion": "15",
"aadAuthEnabled": "disabled",
"citusVersion": "11.3",
"maintenanceWindow": {
"customWindow": "Disabled",
"dayOfWeek": 0,
"startHour": 0,
"startMinute": 0
},
"administratorLogin": "citus",
"dataEncryption": {
"type": "SystemManaged"
},
"passwordEnabled": "enabled",
"preferredPrimaryZone": "1",
"nodeCount": 0,
"enableShardsOnCoordinator": true,
"coordinatorServerEdition": "GeneralPurpose",
"coordinatorStorageQuotaInMb": 131072,
"coordinatorVCores": 8,
"coordinatorEnablePublicIpAccess": true,
"databaseName": "testdbname",
"nodeEnablePublicIpAccess": false,
"nodeServerEdition": "MemoryOptimized",
"nodeStorageQuotaInMb": 131072,
"nodeVCores": 8,
"serverNames": [
{
"name": "testcluster-singlenode-c",
"fullyQualifiedDomainName": "c.testcluster-singlenode.postgres.database.azure.com"
}
],
"sourceResourceId": null,
"enableHa": true,
"readReplicas": [],
"earliestRestoreTime": null,
"privateEndpointConnections": []
}
}
},
"201": {
"headers": {
"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",
"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"
},
"body": {
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/testcluster-singlenode",
"name": "testcluster-singlenode",
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2",
"tags": {
"owner": "JohnDoe"
},
"location": "westus",
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2022-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2022-01-02T17:18:19.1234567Z"
},
"properties": {
"provisioningState": "Provisioning",
"state": "Provisioning",
"postgresqlVersion": "15",
"aadAuthEnabled": "disabled",
"citusVersion": "11.3",
"maintenanceWindow": {
"customWindow": "Disabled",
"dayOfWeek": 0,
"startHour": 0,
"startMinute": 0
},
"administratorLogin": "citus",
"dataEncryption": {
"type": "SystemManaged"
},
"preferredPrimaryZone": "1",
"nodeCount": 0,
"enableShardsOnCoordinator": true,
"coordinatorServerEdition": "GeneralPurpose",
"coordinatorStorageQuotaInMb": 131072,
"coordinatorVCores": 8,
"coordinatorEnablePublicIpAccess": true,
"databaseName": "testdbname",
"nodeEnablePublicIpAccess": false,
"nodeServerEdition": "MemoryOptimized",
"nodeStorageQuotaInMb": 131072,
"nodeVCores": 8,
"passwordEnabled": "enabled",
"serverNames": [
{
"name": "testcluster-singlenode-c",
"fullyQualifiedDomainName": "c.testcluster-singlenode.postgres.database.azure.com"
}
],
"sourceResourceId": null,
"enableHa": true,
"readReplicas": [],
"earliestRestoreTime": null,
"privateEndpointConnections": []
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,20 @@
"startHour": 0,
"startMinute": 0
},
"aadAuthEnabled": "disabled",
"administratorLogin": "citus",
"dataEncryption": {
"type": "SystemManaged"
},
"passwordEnabled": "enabled",
"preferredPrimaryZone": "1",
"nodeCount": 3,
"enableShardsOnCoordinator": false,
"coordinatorServerEdition": "GeneralPurpose",
"coordinatorStorageQuotaInMb": 524288,
"coordinatorVCores": 4,
"coordinatorEnablePublicIpAccess": true,
"databaseName": "citus",
"nodeServerEdition": "MemoryOptimized",
"nodeStorageQuotaInMb": 524288,
"nodeVCores": 8,
Expand Down Expand Up @@ -121,14 +127,20 @@
"startHour": 0,
"startMinute": 0
},
"aadAuthEnabled": "disabled",
"administratorLogin": "citus",
"dataEncryption": {
"type": "SystemManaged"
},
"passwordEnabled": "enabled",
"preferredPrimaryZone": "1",
"nodeCount": 3,
"enableShardsOnCoordinator": false,
"coordinatorServerEdition": "GeneralPurpose",
"coordinatorStorageQuotaInMb": 524288,
"coordinatorVCores": 4,
"coordinatorEnablePublicIpAccess": true,
"databaseName": "citus",
"nodeServerEdition": "MemoryOptimized",
"nodeStorageQuotaInMb": 524288,
"nodeVCores": 8,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,20 @@
"startHour": 0,
"startMinute": 0
},
"aadAuthEnabled": "disabled",
"administratorLogin": "citus",
"dataEncryption": {
"type": "SystemManaged"
},
"passwordEnabled": "enabled",
"preferredPrimaryZone": "1",
"nodeCount": 1,
"enableShardsOnCoordinator": false,
"coordinatorServerEdition": "GeneralPurpose",
"coordinatorStorageQuotaInMb": 524288,
"coordinatorVCores": 4,
"coordinatorEnablePublicIpAccess": true,
"databaseName": "citus",
"nodeServerEdition": "MemoryOptimized",
"nodeStorageQuotaInMb": 524288,
"nodeVCores": 8,
Expand Down Expand Up @@ -97,14 +103,20 @@
"startHour": 0,
"startMinute": 0
},
"aadAuthEnabled": "disabled",
"administratorLogin": "citus",
"dataEncryption": {
"type": "SystemManaged"
},
"passwordEnabled": "enabled",
"preferredPrimaryZone": "1",
"nodeCount": 1,
"enableShardsOnCoordinator": false,
"coordinatorServerEdition": "GeneralPurpose",
"coordinatorStorageQuotaInMb": 524288,
"coordinatorVCores": 4,
"coordinatorEnablePublicIpAccess": true,
"databaseName": "citus",
"nodeServerEdition": "MemoryOptimized",
"nodeStorageQuotaInMb": 524288,
"nodeVCores": 8,
Expand Down

0 comments on commit a59809d

Please sign in to comment.