Skip to content

Commit

Permalink
Added cosmosDbConnectionString parameter (#993)
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudPlatformer authored Sep 15, 2021
1 parent 6dd11cc commit 90e2b6e
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions azure/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@
"DasEncodings": {
"type": "securestring"
},
"cosmosDbConnectionString": {
"type": "securestring"
},
"cosmosDatabase": {
"type": "string"
},
Expand Down Expand Up @@ -630,9 +633,9 @@
"value": "[parameters('ExternalLinks').EmployerFavouritesUrl]"
},
{
"name": "ExternalLinks:TrainingProviderPermissionUrl",
"value": "[parameters('ExternalLinks').TrainingProviderPermissionUrl]"
},
"name": "ExternalLinks:TrainingProviderPermissionUrl",
"value": "[parameters('ExternalLinks').TrainingProviderPermissionUrl]"
},
{
"name": "Features:SetNotificationPreferences",
"value": "[parameters('Features').SetNotificationPreferences]"
Expand Down Expand Up @@ -669,25 +672,25 @@
"name": "ZenDesk:CobrowsingSnippetKey",
"value": "[parameters('ZenDesk').CobrowsingSnippetKey]"
},
{
"name": "ProviderRelationshipsApiConfiguration:ApiBaseUrl",
"value": "[parameters('ProviderRelationshipsApiConfiguration').ApiBaseUrl]"
{
"name": "ProviderRelationshipsApiConfiguration:ApiBaseUrl",
"value": "[parameters('ProviderRelationshipsApiConfiguration').ApiBaseUrl]"
},
{
"name": "ProviderRelationshipsApiConfiguration:ClientId",
"value": "[parameters('ProviderRelationshipsApiConfiguration').ClientId]"
"name": "ProviderRelationshipsApiConfiguration:ClientId",
"value": "[parameters('ProviderRelationshipsApiConfiguration').ClientId]"
},
{
"name": "ProviderRelationshipsApiConfiguration:ClientSecret",
"value": "[parameters('ProviderRelationshipsApiConfiguration').ClientSecret]"
"name": "ProviderRelationshipsApiConfiguration:ClientSecret",
"value": "[parameters('ProviderRelationshipsApiConfiguration').ClientSecret]"
},
{
"name": "ProviderRelationshipsApiConfiguration:IdentifierUri",
"value": "[parameters('ProviderRelationshipsApiConfiguration').IdentifierUri]"
"name": "ProviderRelationshipsApiConfiguration:IdentifierUri",
"value": "[parameters('ProviderRelationshipsApiConfiguration').IdentifierUri]"
},
{
"name": "ProviderRelationshipsApiConfiguration:Tenant",
"value": "[parameters('ProviderRelationshipsApiConfiguration').Tenant]"
"name": "ProviderRelationshipsApiConfiguration:Tenant",
"value": "[parameters('ProviderRelationshipsApiConfiguration').Tenant]"
},
{
"name": "RedisConnectionSettings:RedisConnectionString",
Expand All @@ -710,7 +713,7 @@
},
{
"name": "MongoDb",
"connectionString": "[concat('mongodb://', variables('cosmosDbName'), ':', reference('cosmos-db').outputs.PrimaryMasterKey.value,'@', variables('cosmosDbName'), '.documents.azure.com:10255/?ssl=true&replicaSet=globaldb')]",
"connectionString": "[parameters('cosmosDbConnectionString')]",
"type": "Custom"
},
{
Expand Down Expand Up @@ -879,7 +882,7 @@
},
{
"name": "MongoDb",
"connectionString": "[concat('mongodb://', variables('cosmosDbName'), ':', reference('cosmos-db').outputs.PrimaryMasterKey.value,'@', variables('cosmosDbName'), '.documents.azure.com:10255/?ssl=true&replicaSet=globaldb')]",
"connectionString": "[parameters('cosmosDbConnectionString')]",
"type": "Custom"
},
{
Expand Down Expand Up @@ -1117,7 +1120,7 @@
},
{
"name": "MongoDb",
"connectionString": "[concat('mongodb://', variables('cosmosDbName'), ':', reference('cosmos-db').outputs.PrimaryMasterKey.value,'@', variables('cosmosDbName'), '.documents.azure.com:10255/?ssl=true&replicaSet=globaldb')]",
"connectionString": "[parameters('cosmosDbConnectionString')]",
"type": "Custom"
},
{
Expand Down Expand Up @@ -1419,7 +1422,7 @@
},
{
"name": "MongoDb",
"connectionString": "[concat('mongodb://', variables('cosmosDbName'), ':', reference('cosmos-db').outputs.PrimaryMasterKey.value,'@', variables('cosmosDbName'), '.documents.azure.com:10255/?ssl=true&replicaSet=globaldb')]",
"connectionString": "[parameters('cosmosDbConnectionString')]",
"type": "Custom"
},
{
Expand Down

0 comments on commit 90e2b6e

Please sign in to comment.