Hello Anshul Sharma,
Welcome to microsoft Q&A, Thankyou for posting your query here.
please find below arm template to provision a Azure Cosmos DB for PostgreSQL Cluster with desired Database came.
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"serverGroupName": {
"type": "string"
},
"databaseName": {
"type": "string"
},
"location": {
"type": "string"
},
"administratorLoginPassword": {
"type": "secureString"
},
"postgresqlVersion": {
"type": "string"
},
"coordinatorVcores": {
"type": "int"
},
"coordinatorStorageSizeMB": {
"type": "int"
},
"numWorkers": {
"type": "int"
},
"workerVcores": {
"type": "int"
},
"workerStorageSizeMB": {
"type": "int"
},
"enableHa": {
"type": "bool"
},
"enableGeoBackup": {
"type": "bool"
},
"coordinatorServerEdition": {
"type": "string"
},
"enablePublicIpAccess": {
"type": "bool"
},
"serverGroupTags": {
"type": "object"
}
},
"variables": {},
"resources": [
{
"name": "[parameters('serverGroupName')]",
"type": "Microsoft.DBforPostgreSQL/serverGroupsv2",
"apiVersion": "2023-03-02-preview",
"location": "[parameters('location')]",
"tags": "[parameters('serverGroupTags')]",
"properties": {
"databaseName": "[parameters('databaseName')]",
"administratorLogin": "citus",
"administratorLoginPassword": "[parameters('administratorLoginPassword')]",
"enableHa": "[parameters('enableHa')]",
"enableGeoBackup": "[parameters('enableGeoBackup')]",
"postgresqlVersion": "[parameters('postgresqlVersion')]",
"coordinatorVCores": "[parameters('coordinatorVcores')]",
"coordinatorStorageQuotaInMb": "[parameters('coordinatorStorageSizeMB')]",
"coordinatorServerEdition": "[parameters('coordinatorServerEdition')]",
"nodeCount": "[parameters('numWorkers')]",
"nodeVCores": "[parameters('workerVcores')]",
"nodeStorageQuotaInMb": "[parameters('workerStorageSizeMB')]",
"nodeServerEdition": "MemoryOptimized",
"nodeEnablePublicIpAccess": "[parameters('enablePublicIpAccess')]"
},
"dependsOn": []
}
],
"outputs": {}
}
Hope this helps you,If an answer has been helpful, please consider accepting the answer to help increase visibility of this question for other members of the Microsoft Q&A community. If not, please let us know what is still needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!