Last active
May 7, 2020 22:26
-
-
Save isaacabraham/a75621240b136646b03a7cdf8e0e082c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0.0", | |
| "outputs": {}, | |
| "parameters": {}, | |
| "resources": [ | |
| { | |
| "apiVersion": "2020-03-01", | |
| "dependsOn": [ | |
| "isaacsupercosmosdb" | |
| ], | |
| "name": "isaacsupercosmosdb-server/isaacsupercosmosdb/mycontainer", | |
| "properties": { | |
| "resource": { | |
| "id": "mycontainer", | |
| "indexingPolicy": { | |
| "excludedPaths": [], | |
| "includedPaths": [], | |
| "indexingMode": "consistent" | |
| }, | |
| "partitionKey": { | |
| "kind": "Hash", | |
| "paths": [ | |
| "/id" | |
| ] | |
| } | |
| } | |
| }, | |
| "type": "Microsoft.DocumentDb/databaseAccounts/sqlDatabases/containers" | |
| }, | |
| { | |
| "apiVersion": "2020-03-01", | |
| "dependsOn": [ | |
| "isaacsupercosmosdb-server" | |
| ], | |
| "name": "isaacsupercosmosdb-server/isaacsupercosmosdb", | |
| "properties": { | |
| "options": { | |
| "throughput": "400" | |
| }, | |
| "resource": { | |
| "id": "isaacsupercosmosdb" | |
| } | |
| }, | |
| "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases" | |
| }, | |
| { | |
| "apiVersion": "2020-03-01", | |
| "kind": "GlobalDocumentDB", | |
| "location": "northeurope", | |
| "name": "isaacsupercosmosdb-server", | |
| "properties": { | |
| "consistencyPolicy": { | |
| "defaultConsistencyLevel": "Eventual" | |
| }, | |
| "databaseAccountOfferType": "Standard", | |
| "enableFreeTier": false, | |
| "publicNetworkAccess": "Enabled" | |
| }, | |
| "tags": { | |
| "CosmosAccountType": "Non-Production", | |
| "defaultExperience": "Core (SQL)" | |
| }, | |
| "type": "Microsoft.DocumentDB/databaseAccounts" | |
| }, | |
| { | |
| "apiVersion": "2016-08-01", | |
| "dependsOn": [ | |
| "isaacsuperwebapp-plan", | |
| "isaacsuperwebapp-ai" | |
| ], | |
| "kind": "app", | |
| "location": "northeurope", | |
| "name": "isaacsuperwebapp", | |
| "properties": { | |
| "httpsOnly": false, | |
| "serverFarmId": "isaacsuperwebapp-plan", | |
| "siteConfig": { | |
| "alwaysOn": false, | |
| "appSettings": [ | |
| { | |
| "name": "db_key", | |
| "value": "[listKeys(resourceId('Microsoft.DocumentDB/databaseAccounts', 'isaacsupercosmosdb-server'), providers('Microsoft.DocumentDB','databaseAccounts').apiVersions[0]).primaryMasterKey]" | |
| }, | |
| { | |
| "name": "endpoint", | |
| "value": "[reference(concat('Microsoft.DocumentDb/databaseAccounts/', 'isaacsupercosmosdb-server')).documentEndpoint]" | |
| }, | |
| { | |
| "name": "APPINSIGHTS_INSTRUMENTATIONKEY", | |
| "value": "[reference('Microsoft.Insights/components/isaacsuperwebapp-ai').InstrumentationKey]" | |
| }, | |
| { | |
| "name": "APPINSIGHTS_PROFILERFEATURE_VERSION", | |
| "value": "1.0.0" | |
| }, | |
| { | |
| "name": "APPINSIGHTS_SNAPSHOTFEATURE_VERSION", | |
| "value": "1.0.0" | |
| }, | |
| { | |
| "name": "ApplicationInsightsAgent_EXTENSION_VERSION", | |
| "value": "~2" | |
| }, | |
| { | |
| "name": "DiagnosticServices_EXTENSION_VERSION", | |
| "value": "~3" | |
| }, | |
| { | |
| "name": "InstrumentationEngine_EXTENSION_VERSION", | |
| "value": "~1" | |
| }, | |
| { | |
| "name": "SnapshotDebugger_EXTENSION_VERSION", | |
| "value": "~1" | |
| }, | |
| { | |
| "name": "XDT_MicrosoftApplicationInsights_BaseExtensions", | |
| "value": "~1" | |
| }, | |
| { | |
| "name": "XDT_MicrosoftApplicationInsights_Mode", | |
| "value": "recommended" | |
| } | |
| ], | |
| "metadata": [ | |
| { | |
| "name": "CURRENT_STACK", | |
| "value": "dotnetcore" | |
| } | |
| ] | |
| } | |
| }, | |
| "type": "Microsoft.Web/sites" | |
| }, | |
| { | |
| "apiVersion": "2014-04-01", | |
| "kind": "web", | |
| "location": "northeurope", | |
| "name": "isaacsuperwebapp-ai", | |
| "properties": { | |
| "ApplicationId": "isaacsuperwebapp", | |
| "Application_Type": "web", | |
| "name": "isaacsuperwebapp-ai" | |
| }, | |
| "tags": { | |
| "[concat('hidden-link:', resourceGroup().id, '/providers/Microsoft.Web/sites/', 'isaacsuperwebapp')]": "Resource", | |
| "displayName": "AppInsightsComponent" | |
| }, | |
| "type": "Microsoft.Insights/components" | |
| }, | |
| { | |
| "apiVersion": "2018-02-01", | |
| "location": "northeurope", | |
| "name": "isaacsuperwebapp-plan", | |
| "properties": { | |
| "name": "isaacsuperwebapp-plan", | |
| "perSiteScaling": false, | |
| "reserved": false | |
| }, | |
| "sku": { | |
| "capacity": 1, | |
| "name": "F1", | |
| "size": "0", | |
| "tier": "Free" | |
| }, | |
| "type": "Microsoft.Web/serverfarms" | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment