Skip to content

Commit 9f6216b

Browse files
committed
Update to resources deployed:
- SQL (marketingdb) - CosmosDb
1 parent bc89bc1 commit 9f6216b

4 files changed

Lines changed: 58 additions & 1 deletion

File tree

deploy/az/cosmos/deploycosmos.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {
5+
"name": {
6+
"type": "String"
7+
}
8+
},
9+
"variables": {
10+
"name": "[concat(parameters('name'), uniqueString(resourceGroup().id))]",
11+
"location":"[resourceGroup().location]"
12+
},
13+
"resources": [
14+
{
15+
"type": "Microsoft.DocumentDb/databaseAccounts",
16+
"kind": "MongoDB",
17+
"name": "[variables('name')]",
18+
"apiVersion": "2015-04-08",
19+
"location": "[variables('location')]",
20+
"properties": {
21+
"databaseAccountOfferType": "Standard",
22+
"locations": [
23+
{
24+
"id": "[concat(variables('name'), '-', variables('location'))]",
25+
"failoverPriority": 0,
26+
"locationName": "[variables('location')]"
27+
}
28+
]
29+
}
30+
}
31+
]
32+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {
5+
"name": {
6+
"value": "eshop-nosql"
7+
}
8+
}
9+
}

deploy/az/sql/sqldeploy.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,21 @@
7474
"[concat('Microsoft.Sql/servers/', variables('sql_server_name'))]"
7575
]
7676
},
77+
{
78+
"type": "databases",
79+
"name": "[parameters('sql_server').dbs.marketing]",
80+
"apiVersion": "2014-04-01-preview",
81+
"location": "[resourceGroup().location]",
82+
"properties": {
83+
"edition": "Standard",
84+
"collation": "SQL_Latin1_General_CP1_CI_AS",
85+
"maxSizeBytes": "1073741824",
86+
"requestedServiceObjectiveName": "S1"
87+
},
88+
"dependsOn": [
89+
"[concat('Microsoft.Sql/servers/', variables('sql_server_name'))]"
90+
]
91+
},
7792
{
7893
"type": "firewallrules",
7994
"name": "AllowAllWindowsAzureIps",

deploy/az/sql/sqldeploy.parameters.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"dbs": {
99
"ordering": "orderingdb",
1010
"identity": "identitydb",
11-
"catalog": "catalogdb"
11+
"catalog": "catalogdb",
12+
"marketing": "marketingdb"
1213
}
1314
}
1415
},

0 commit comments

Comments
 (0)