Automation, Azure, Professional

New App Service Template Publicly Available

Check out the new template I submitted to Azure Quickstarts. This template is to support the breaking change coming to the new version of App Insights, API 2020-02-02-preview .

This template will build a:

  • App Service Plan
  • App Service
  • Log Analytics Workspace
  • Application Inisghts

It will hook your application insights to the new created Log Analytics Workspace. This is done via the updates to the microsoft.insights/components endpoint like:

{
            "type": "microsoft.insights/components",
            "apiVersion": "2020-02-02-preview",
            "name": "[variables('appInsightName')]",
            "location": "[parameters('location')]",
            "kind": "string",
            "dependsOn": [
                "[resourceId('Microsoft.Web/Sites', variables('WebsiteName'))]",
                "[resourceId('Microsoft.OperationalInsights/workspaces', variables('logAnalyticsName'))]"
            ],
            "tags": {
                "displayName": "AppInsight",
                "ProjectName": "[parameters('appName')]"
            },
            "properties": {
                "Application_Type": "web",
                "applicationId": "[variables('appInsightName')]",
                "WorkspaceResourceId": "[resourceId('Microsoft.OperationalInsights/workspaces', variables('logAnalyticsName'))]"
            }
        }

The important update is to the “WorkspaceResourceId” that is being referenced. Previous version did not require this but going forward this property will be reauired.

Here is a detail review from Microsoft on this functionality