Framework/Configurations/AlertMonitoring/AzSDK.AM.OMSSetup.App.json
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "omsWorkspaceLocation": { "type": "string", "defaultValue": "" }, "omsResourcegroup": { "type": "string", "defaultValue": "" }, "omsSubscriptionId": { "type": "string", "defaultValue": "" }, "omsWorkspaceName": { "type": "string", "defaultValue": "" }, "omsWorkspaceApiVersion": { "type": "string", "defaultValue": "" }, "alertEmailsPointOfContact": { "type": "array", "defaultValue": "" }, "appSubscriptionName": { "type": "string", "defaultValue": "" }, "appName": { "type": "string", "defaultValue": "" }, "appQuery": { "type": "string", "defaultValue": "" } }, "variables": { "SolutionVersion": "1.1", "SolutionPublisher": "NotUsed", "SolutionName": "NotUsedomssol99", "ViewName": "[concat('AZSDK-', parameters('appName'))]", "LogAnalyticsApiVersion": "2015-11-01-preview" }, "resources": [ { "apiVersion": "[parameters('omsWorkspaceApiVersion')]", "id": "[Concat('/subscriptions/', parameters('omsSubscriptionId'), '/resourceGroups/', parameters('omsResourcegroup'), '/providers/Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]", "location": "[parameters('omsWorkspaceLocation')]", "name": "[parameters('omsWorkspaceName')]", "resources": [ { "apiVersion": "2015-11-01-preview", "name": "[variables('ViewName')]", "type": "views", "location": "[parameters('omsWorkspaceLocation')]", "id": "[Concat('/subscriptions/', parameters('omsSubscriptionId'), '/resourceGroups/', parameters('omsResourcegroup'), '/providers/Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'),'/views/', variables('ViewName'))]", "dependson": [ "[Concat('/subscriptions/', parameters('omsSubscriptionId'), '/resourceGroups/', parameters('omsResourcegroup'), '/providers/Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspaceName'))]" ], "properties": { "DisplayName": "[variables('ViewName')]", "Id": "[variables('ViewName')]", "Name": "[variables('ViewName')]", "Author": "Microsoft", "Source": "Local", "Dashboard": [ { "Configuration": { "General": { "title": "Continuous Compliance Status", "newGroup": false, "icon": "", "useIcon": false }, "Header": { "Title": "Control Status by State", "Subtitle": "AzSDK Continuous Compliance Status" }, "Donut": { "Query": "[concat('Type:AzSDK_CL Source_s=CC ',' SubscriptionName_s=\"',parameters('appSubscriptionName'),'\" ', parameters('appQuery') , ' | Measure count() by ControlStatus_s')]", "CenterLegend": { "Text": "Total", "Operation": "Sum", "ArcsToSelect": [] }, "Options": { "colors": [ "#e81123", "#007233", "#fff100" ], "valueColorMapping": [] } }, "List": { "Query": "[concat('Type:AzSDK_CL Source_s=CC ',' SubscriptionName_s=\"',parameters('appSubscriptionName'),'\" ', parameters('appQuery') , ' | Measure count() by ControlId_s')]", "HideGraph": true, "enableSparklines": false, "operation": "Summary", "ColumnsTitle": { "Name": "ControlID", "Value": "Count" }, "Color": "#0072c6", "thresholds": { "isEnabled": false, "values": [ { "name": "Normal", "threshold": "Default", "color": "#009e49", "isDefault": true }, { "name": "Warning", "threshold": "60", "color": "#fcd116", "isDefault": false }, { "name": "Error", "threshold": "90", "color": "#ba141a", "isDefault": false } ] }, "NameDSVSeparator": "", "NavigationQuery": "{selected item}" } }, "Id": "SingleQueryDonutBuilderBladeV1", "Type": "Blade", "Version": 0 }, { "Id": "SingleQueryDonutBuilderBladeV1", "Type": "Blade", "Version": 0, "Configuration": { "General": { "title": "CICD Security Health", "newGroup": false, "icon": "", "useIcon": false }, "Header": { "Title": "Control Status by State", "Subtitle": "AzSDK CICD Security Verification Tests" }, "Donut": { "Query": "[concat('Type:AzSDK_CL Source_s=CICD ',' SubscriptionName_s=\"',parameters('appSubscriptionName'),'\" ', parameters('appQuery') , ' | Measure count() by ControlStatus_s')]", "CenterLegend": { "Text": "Total", "Operation": "Sum", "ArcsToSelect": [] }, "Options": { "colors": [ "#e81123", "#007233", "#fff100" ], "valueColorMapping": [] } }, "List": { "Query": "[concat('Type:AzSDK_CL Source_s=CICD ',' SubscriptionName_s=\"',parameters('appSubscriptionName'),'\" ', parameters('appQuery') , ' | Measure count() by ControlId_s')]", "HideGraph": false, "enableSparklines": false, "operation": "Summary", "ColumnsTitle": { "Name": "ControlID", "Value": "Count" }, "Color": "#0072c6", "thresholds": { "isEnabled": false, "values": [ { "name": "Normal", "threshold": "Default", "color": "#009e49", "isDefault": true }, { "name": "Warning", "threshold": "60", "color": "#fcd116", "isDefault": false }, { "name": "Error", "threshold": "90", "color": "#ba141a", "isDefault": false } ] }, "NameDSVSeparator": "", "NavigationQuery": "{selected item}" } } }, { "Id": "SingleQueryDonutBuilderBladeV1", "Type": "Blade", "Version": 0, "Configuration": { "General": { "title": "Adhoc Spot Security Checks", "newGroup": false, "icon": "", "useIcon": false }, "Header": { "Title": "Control Status by State", "Subtitle": "AzSDK CICD Security Verification Tests" }, "Donut": { "Query": "[concat('Type:AzSDK_CL Source_s=SDL ',' SubscriptionName_s=\"',parameters('appSubscriptionName'),'\" ', parameters('appQuery') , ' | Measure count() by ControlStatus_s')]", "CenterLegend": { "Text": "Total", "Operation": "Sum", "ArcsToSelect": [] }, "Options": { "colors": [ "#e81123", "#007233", "#fff100" ], "valueColorMapping": [] } }, "List": { "Query": "[concat('Type:AzSDK_CL Source_s=SDL ',' SubscriptionName_s=\"',parameters('appSubscriptionName'),'\" ', parameters('appQuery') , ' | Measure count() by ControlId_s')]", "HideGraph": false, "enableSparklines": false, "operation": "Summary", "ColumnsTitle": { "Name": "ControlID", "Value": "Count" }, "Color": "#0072c6", "thresholds": { "isEnabled": false, "values": [ { "name": "Normal", "threshold": "Default", "color": "#009e49", "isDefault": true }, { "name": "Warning", "threshold": "60", "color": "#fcd116", "isDefault": false }, { "name": "Error", "threshold": "90", "color": "#ba141a", "isDefault": false } ] }, "NameDSVSeparator": "", "NavigationQuery": "{selected item}" } } }, { "Id": "LineChartBuilderBlade", "Type": "Blade", "Version": 0, "Configuration": { "General": { "title": "Application Control Activity over time", "newGroup": false, "icon": "", "useIcon": false }, "Header": { "Title": "Activity over time", "Subtitle": "" }, "LineChart": { "Query": "[concat('Type=AzureActivity ', parameters('appQuery') ,'| measure count() by Type | display linechart')]", "yAxis": { "isLogarithmic": false, "units": { "baseUnitType": "", "baseUnit": "", "displayUnit": "" }, "customLabel": "" } }, "List": { "Query": "[concat('Type=AzureActivity ', parameters('appQuery') ,'| measure count() by Resource')]", "HideGraph": false, "enableSparklines": false, "operation": "Summary", "ColumnsTitle": { "Name": "ResourceName", "Value": "Count" }, "Color": "#0072c6", "thresholds": { "isEnabled": false, "values": [ { "name": "Normal", "threshold": "Default", "color": "#009e49", "isDefault": true }, { "name": "Warning", "threshold": "60", "color": "#fcd116", "isDefault": false }, { "name": "Error", "threshold": "90", "color": "#ba141a", "isDefault": false } ] }, "NameDSVSeparator": "", "NavigationQuery": "{selected item}" } } } ], "OverviewTile": { "Id": "SingleQueryDonutBuilderTileV1", "Type": "OverviewTile", "Version": 0, "Configuration": { "Donut": { "Query": "[concat('Type:AzSDK_CL Source_s=CC ControlStatus_s=Failed ',' SubscriptionName_s=\"',parameters('appSubscriptionName'),'\" ', parameters('appQuery') , ' | Measure count() by ControlStatus_s')]", "CenterLegend": { "Text": "Total", "Operation": "Sum", "ArcsToSelect": [] }, "Options": { "colors": [ "#e81123", "#ff8c00", "#6dc2e9" ], "valueColorMapping": [] } }, "Advanced": { "DataFlowVerification": { "Enabled": false, "Query": "*", "Message": "" } } } } } } ], "type": "Microsoft.OperationalInsights/workspaces" } ] } |