Skip to content

Instantly share code, notes, and snippets.

@lbugnion
Created December 16, 2019 20:53
Show Gist options
  • Save lbugnion/d745b8bc6130eb088b1d170c6c5a7d65 to your computer and use it in GitHub Desktop.
Save lbugnion/d745b8bc6130eb088b1d170c6c5a7d65 to your computer and use it in GitHub Desktop.
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"prefix": {
"type": "string",
"defaultValue": "",
"metadata": {
"description": "A unique prefix in lowercase"
}
}
},
"variables": {
"name": "[toLower(concat('mod20', parameters('prefix')))]",
"subscriptionId": "[subscription().id]",
"location": "[resourceGroup().location]",
"hostingEnvironment": "",
"hostingPlanName": "[concat(variables('name'), 'plan')]",
"serverFarmResourceGroup": "[resourceGroup().name]",
"alwaysOn": true,
"skuCode": "P1v2",
"currentStack": "dotnetcore",
"apiUrl": "/api/v1",
"apiUrlShoppingCart": "/api/v1",
"locationCode": "[toLower(replace(variables('location'), ' ', ''))]",
"appInsightsName": "[variables('name')]"
},
"resources": [
{
"apiVersion": "2018-02-01",
"name": "[variables('name')]",
"type": "Microsoft.Web/sites",
"location": "[variables('location')]",
"tags": {},
"dependsOn": [
"[concat('microsoft.insights/components/', variables('appInsightsName'))]",
"[concat('Microsoft.Web/serverfarms/', variables('hostingPlanName'))]"
],
"properties": {
"name": "[variables('name')]",
"siteConfig": {
"appSettings": [
{
"name": "APPINSIGHTS_INSTRUMENTATIONKEY",
"value": "[reference(concat('microsoft.insights/components/', variables('appInsightsName')), '2015-05-01').InstrumentationKey]"
},
{
"name": "ApplicationInsightsAgent_EXTENSION_VERSION",
"value": "~2"
},
{
"name": "XDT_MicrosoftApplicationInsights_Mode",
"value": "recommended"
},
{
"name": "DiagnosticServices_EXTENSION_VERSION",
"value": "~3"
},
{
"name": "APPINSIGHTS_PROFILERFEATURE_VERSION",
"value": "1.0.0"
},
{
"name": "APPINSIGHTS_SNAPSHOTFEATURE_VERSION",
"value": "1.0.0"
},
{
"name": "InstrumentationEngine_EXTENSION_VERSION",
"value": "~1"
},
{
"name": "SnapshotDebugger_EXTENSION_VERSION",
"value": "~1"
},
{
"name": "XDT_MicrosoftApplicationInsights_BaseExtensions",
"value": "~1"
},
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "10.15.2"
},
{
"name": "ApiUrl",
"value": "[variables('apiUrl')]"
},
{
"name": "ApiUrlShoppingCart",
"value": "[variables('apiUrlShoppingCart')]"
},
{
"name": "DebugInformation__ShowDebug",
"value": "true"
},
{
"name": "ProductImagesUrl",
"value": "https://raw.githubusercontent.com/microsoft/TailwindTraders-Backend/master/Source/Services/Tailwind.Traders.Product.Api/Setup/product-images/product-details"
}
],
"metadata": [
{
"name": "CURRENT_STACK",
"value": "[variables('currentStack')]"
}
],
"alwaysOn": "[variables('alwaysOn')]"
},
"serverFarmId": "[concat('/subscriptions/', variables('subscriptionId'),'/resourcegroups/', variables('serverFarmResourceGroup'), '/providers/Microsoft.Web/serverfarms/', variables('hostingPlanName'))]",
"hostingEnvironment": "[variables('hostingEnvironment')]",
"clientAffinityEnabled": true
},
"resources": [
{
"apiVersion": "2015-08-01",
"name": "web",
"type": "sourcecontrols",
"dependsOn": [
"[resourceId('Microsoft.Web/Sites', variables('name'))]"
],
"properties": {
"RepoUrl": "https://github.com/lbugnion/TailwindTraders-Website",
"branch": "master",
"IsManualIntegration": true
}
}
]
},
{
"apiVersion": "2018-02-01",
"name": "[variables('hostingPlanName')]",
"type": "Microsoft.Web/serverfarms",
"location": "[variables('location')]",
"tags": {},
"properties": {
"name": "[variables('hostingPlanName')]"
},
"sku": {
"Name": "[variables('skuCode')]"
}
},
{
"apiVersion": "2015-05-01",
"name": "[variables('appInsightsName')]",
"type": "microsoft.insights/components",
"location": "[variables('locationCode')]",
"tags": null,
"properties": {
"ApplicationId": "[variables('name')]",
"Request_Source": "IbizaWebAppExtensionCreate"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment