Update to resources deployed:
- SQL (marketingdb) - CosmosDb
This commit is contained in:
parent
bc89bc1ec4
commit
9f6216b7a3
32
deploy/az/cosmos/deploycosmos.json
Normal file
32
deploy/az/cosmos/deploycosmos.json
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
|
||||||
|
"contentVersion": "1.0.0.0",
|
||||||
|
"parameters": {
|
||||||
|
"name": {
|
||||||
|
"type": "String"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"variables": {
|
||||||
|
"name": "[concat(parameters('name'), uniqueString(resourceGroup().id))]",
|
||||||
|
"location":"[resourceGroup().location]"
|
||||||
|
},
|
||||||
|
"resources": [
|
||||||
|
{
|
||||||
|
"type": "Microsoft.DocumentDb/databaseAccounts",
|
||||||
|
"kind": "MongoDB",
|
||||||
|
"name": "[variables('name')]",
|
||||||
|
"apiVersion": "2015-04-08",
|
||||||
|
"location": "[variables('location')]",
|
||||||
|
"properties": {
|
||||||
|
"databaseAccountOfferType": "Standard",
|
||||||
|
"locations": [
|
||||||
|
{
|
||||||
|
"id": "[concat(variables('name'), '-', variables('location'))]",
|
||||||
|
"failoverPriority": 0,
|
||||||
|
"locationName": "[variables('location')]"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
9
deploy/az/cosmos/deploycosmos.parameters.json
Normal file
9
deploy/az/cosmos/deploycosmos.parameters.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
|
||||||
|
"contentVersion": "1.0.0.0",
|
||||||
|
"parameters": {
|
||||||
|
"name": {
|
||||||
|
"value": "eshop-nosql"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -74,6 +74,21 @@
|
|||||||
"[concat('Microsoft.Sql/servers/', variables('sql_server_name'))]"
|
"[concat('Microsoft.Sql/servers/', variables('sql_server_name'))]"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "databases",
|
||||||
|
"name": "[parameters('sql_server').dbs.marketing]",
|
||||||
|
"apiVersion": "2014-04-01-preview",
|
||||||
|
"location": "[resourceGroup().location]",
|
||||||
|
"properties": {
|
||||||
|
"edition": "Standard",
|
||||||
|
"collation": "SQL_Latin1_General_CP1_CI_AS",
|
||||||
|
"maxSizeBytes": "1073741824",
|
||||||
|
"requestedServiceObjectiveName": "S1"
|
||||||
|
},
|
||||||
|
"dependsOn": [
|
||||||
|
"[concat('Microsoft.Sql/servers/', variables('sql_server_name'))]"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "firewallrules",
|
"type": "firewallrules",
|
||||||
"name": "AllowAllWindowsAzureIps",
|
"name": "AllowAllWindowsAzureIps",
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
"dbs": {
|
"dbs": {
|
||||||
"ordering": "orderingdb",
|
"ordering": "orderingdb",
|
||||||
"identity": "identitydb",
|
"identity": "identitydb",
|
||||||
"catalog": "catalogdb"
|
"catalog": "catalogdb",
|
||||||
|
"marketing": "marketingdb"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user