Browse Source

Update to resources deployed:

- SQL (marketingdb)
- CosmosDb
pull/235/head
Eduard Tomas 7 years ago
parent
commit
9f6216b7a3
4 changed files with 58 additions and 1 deletions
  1. +32
    -0
      deploy/az/cosmos/deploycosmos.json
  2. +9
    -0
      deploy/az/cosmos/deploycosmos.parameters.json
  3. +15
    -0
      deploy/az/sql/sqldeploy.json
  4. +2
    -1
      deploy/az/sql/sqldeploy.parameters.json

+ 32
- 0
deploy/az/cosmos/deploycosmos.json View 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
- 0
deploy/az/cosmos/deploycosmos.parameters.json View 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"
}
}
}

+ 15
- 0
deploy/az/sql/sqldeploy.json View File

@ -74,6 +74,21 @@
"[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",
"name": "AllowAllWindowsAzureIps",


+ 2
- 1
deploy/az/sql/sqldeploy.parameters.json View File

@ -8,7 +8,8 @@
"dbs": {
"ordering": "orderingdb",
"identity": "identitydb",
"catalog": "catalogdb"
"catalog": "catalogdb",
"marketing": "marketingdb"
}
}
},


Loading…
Cancel
Save