Skip to content

Instantly share code, notes, and snippets.

@isaacabraham
Created November 22, 2019 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacabraham/b3164fc8b9cfa2bd603317f31c956120 to your computer and use it in GitHub Desktop.
Save isaacabraham/b3164fc8b9cfa2bd603317f31c956120 to your computer and use it in GitHub Desktop.
Invalid ARM template for app service on linux
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"outputs": {},
"parameters": {},
"resources": [
{
"apiVersion": "2016-08-01",
"dependsOn": [
"mysuperwebappisaac-plan",
"mysuperwebappisaac-ai"
],
"kind": "app",
"location": "northeurope",
"name": "mysuperwebappisaac",
"properties": {
"serverFarmId": "mysuperwebappisaac-plan",
"siteConfig": {
"alwaysOn": false,
"appSettings": [
{
"name": "APPINSIGHTS_INSTRUMENTATIONKEY",
"value": "[reference('Microsoft.Insights/components/mysuperwebappisaac-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"
}
],
"linuxFxVersion": "DOTNETCORE|2.2",
"metadata": []
}
},
"resources": [
{
"apiVersion": "2016-08-01",
"dependsOn": [
"mysuperwebappisaac"
],
"name": "Microsoft.ApplicationInsights.AzureWebSites",
"properties": {},
"type": "siteextensions"
}
],
"type": "Microsoft.Web/sites"
},
{
"apiVersion": "2018-02-01",
"kind": "linux",
"location": "northeurope",
"name": "mysuperwebappisaac-plan",
"properties": {
"name": "mysuperwebappisaac-plan",
"perSiteScaling": false,
"reserved": false
},
"sku": {
"capacity": 1,
"name": "F1",
"size": "0",
"tier": "Free"
},
"type": "Microsoft.Web/serverfarms"
},
{
"apiVersion": "2014-04-01",
"kind": "web",
"location": "northeurope",
"name": "mysuperwebappisaac-ai",
"properties": {
"ApplicationId": "mysuperwebappisaac",
"Application_Type": "web",
"name": "mysuperwebappisaac-ai"
},
"tags": {
"[concat('hidden-link:', resourceGroup().id, '/providers/Microsoft.Web/sites/', 'mysuperwebappisaac')]": "Resource",
"displayName": "AppInsightsComponent"
},
"type": "Microsoft.Insights/components"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment