Framework/Configurations/AlertMonitoring/AzSDK.AM.OMS.SampleView.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": "2015-11-01-preview" }, "appName": { "type": "string", "defaultValue": "" }, "query": { "type": "string", "defaultValue": "" }, "applicationSubscriptionName": { "type": "string", "defaultValue": "" } }, "variables": { "ViewName": "[concat('AZSDK-', parameters('appName'))]", }, "resources": [ { "apiVersion": "[parameters('omsWorkspaceApiVersion')]", "name": "[parameters('omsWorkspaceName')]", "type": "Microsoft.OperationalInsights/workspaces", "location": "[parameters('omsWorkspaceLocation')]", "id": "[Concat('/subscriptions/', parameters('omsSubscriptionId'), '/resourceGroups/', parameters('omsResourcegroup'), '/providers/Microsoft.OperationalInsights/workspaces/', 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", "Version": 1, "Dashboard": [ { "Id": "SingleQueryDonutBuilderBladeV1", "Type": "Blade", "Version": 0, "Configuration": { "General": { "title": "Subscription Security", "newGroup": true, "icon": "", "useIcon": false }, "Header": { "Title": "Control Status by State", "Subtitle": "AzSDK Subscription Compliance" }, "Donut": { "Query": "[concat('Type=AzSDK_CL (ControlStatus_s=Failed OR ControlStatus_s=Passed OR ControlStatus_s=RiskAck OR ControlStatus_s=Verify) SubscriptionName_s=\"',parameters('applicationSubscriptionName'),'\" FeatureName_s=SubscriptionCore | measure count() by ControlStatus_s')]", "CenterLegend": { "Text": "Total", "Operation": "Sum", "ArcsToSelect": [] }, "Options": { "colors": [ "#e81123", "#007233", "#fff100" ], "valueColorMapping": [ { "value": "Passed", "color": "#007233" }, { "value": "RiskAck", "color": "#fcd116" }, { "value": "Verify", "color": "#ff8c00" }, { "value": "Failed", "color": "#ba141a" } ] } }, "List": { "Query": "[concat('Type=AzSDK_CL ControlStatus_s=Failed SubscriptionName_s=\"',parameters('applicationSubscriptionName'),'\" FeatureName_s=SubscriptionCore | measure count() by ControlSeverity_s')]", "HideGraph": false, "enableSparklines": false, "operation": "Summary", "ColumnsTitle": { "Name": "Severity of Failed Controls", "Value": "# of Failures" }, "Color": "#0072c6", "thresholds": { "isEnabled": true, "values": [ { "name": "Normal", "threshold": "Default", "color": "#009e49", "isDefault": true }, { "name": "Warning", "threshold": "0", "color": "#fcd116", "isDefault": false }, { "name": "Error", "threshold": "5", "color": "#ba141a", "isDefault": false } ] }, "NameDSVSeparator": "", "NavigationQuery": "{selected item}" } } }, { "Id": "SingleQueryDonutBuilderBladeV1", "Type": "Blade", "Version": 0, "Configuration": { "General": { "title": "ExpressRoute (ER) VNet Security", "newGroup": true, "icon": "", "useIcon": false }, "Header": { "Title": "Control Status by State", "Subtitle": "AzSDK ER Security Compliance" }, "Donut": { "Query": "[concat('Type=AzSDK_CL (ControlStatus_s=Failed OR ControlStatus_s=Passed OR ControlStatus_s=RiskAck OR ControlStatus_s=Verify) SubscriptionName_s=\"',parameters('applicationSubscriptionName'),'\" FeatureName_s=ERvNet | measure count() by ControlStatus_s')]", "CenterLegend": { "Text": "Total", "Operation": "Sum", "ArcsToSelect": [] }, "Options": { "colors": [ "#e81123", "#007233", "#fff100" ], "valueColorMapping": [ { "value": "Passed", "color": "#007233" }, { "value": "RiskAck", "color": "#fff100" }, { "value": "Verify", "color": "#ff8c00" }, { "value": "Failed", "color": "#ba141a" } ] } }, "List": { "Query": "[concat('Type=AzSDK_CL (ControlStatus_s=Failed OR ControlStatus_s=Passed OR ControlStatus_s=RiskAck OR ControlStatus_s=Verify) SubscriptionName_s=\"',parameters('applicationSubscriptionName'),'\" FeatureName_s=ERvNet | measure count() by ControlSeverity_s')]", "HideGraph": false, "enableSparklines": false, "operation": "Summary", "ColumnsTitle": { "Name": "Severity Of Failed Controls", "Value": "# Of Failures" }, "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": "Application Security", "newGroup": true, "icon": "", "useIcon": false }, "Header": { "Title": "Control Status by State", "Subtitle": "AzSDK Application Compliance" }, "Donut": { "Query": "[concat('Type=AzSDK_CL (ControlStatus_s=Failed OR ControlStatus_s=Passed OR ControlStatus_s=RiskAck OR ControlStatus_s=Verify) (',parameters('query'),') SubscriptionName_s=\"',parameters('applicationSubscriptionName'),'\" | measure count() by ControlStatus_s')]", "CenterLegend": { "Text": "Total", "Operation": "Sum", "ArcsToSelect": [] }, "Options": { "colors": [ "#e81123", "#007233", "#fff100" ], "valueColorMapping": [ { "value": "Passed", "color": "#007233" }, { "value": "RiskAck", "color": "#fff100" }, { "value": "Verify", "color": "#ff8c00" }, { "value": "Failed", "color": "#ba141a" } ] } }, "List": { "Query": "[concat('Type=AzSDK_CL ControlStatus_s=Failed (',parameters('query'),') SubscriptionName_s=\"',parameters('applicationSubscriptionName'),'\" | measure count() by ResourceGroup')]", "HideGraph": false, "enableSparklines": false, "operation": "Summary", "ColumnsTitle": { "Name": "Application Resource Groups", "Value": "# Of Failures" }, "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": "Application Security", "newGroup": false, "icon": "", "useIcon": false }, "Header": { "Title": "Control Status by Severity", "Subtitle": "AzSDK Application Security Verification Tests" }, "Donut": { "Query": "[concat('Type=AzSDK_CL (ControlStatus_s=Failed OR ControlStatus_s=Passed OR ControlStatus_s=RiskAck OR ControlStatus_s=Verify) (',parameters('query'),') SubscriptionName_s=\"',parameters('applicationSubscriptionName'),'\" | measure count() by ControlSeverity_s')]", "CenterLegend": { "Text": "Total", "Operation": "Sum", "ArcsToSelect": [] }, "Options": { "colors": [ "#e81123", "#007233", "#fff100" ], "valueColorMapping": [ { "value": "Critical", "color": "#ba141a" }, { "value": "High", "color": "#ba141a" }, { "value": "Medium", "color": "#ff8c00" }, { "value": "Low", "color": "#e2e584" } ] } }, "List": { "Query": "[concat('Type=AzSDK_CL ControlStatus_s=Failed (',parameters('query'),') SubscriptionName_s=\"',parameters('applicationSubscriptionName'),'\" | measure count() by ResourceName_s')]", "HideGraph": false, "enableSparklines": false, "operation": "Summary", "ColumnsTitle": { "Name": "Application Resources", "Value": "# Of Failures" }, "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('query'),') | measure count() by Type | display linechart')]", "yAxis": { "isLogarithmic": false, "units": { "baseUnitType": "", "baseUnit": "", "displayUnit": "" }, "customLabel": "" } }, "List": { "Query": "[concat('Type=AzureActivity (',parameters('query'),') | 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": "DoubleNumberBuilderTile", "Type": "OverviewTile", "Version": 0, "Configuration": { "TileOne": { "Legend": "Critical Severity Failures", "Query": "[concat('Type=AzSDK_CL ControlStatus_s=Failed ControlSeverity_s=Critical SubscriptionName_s=\"',parameters('applicationSubscriptionName'),'\" (',parameters('query'),' OR FeatureName_s=SubscriptionCore) | measure count() by ControlSeverity_s')]" }, "TileTwo": { "Legend": "High Severity Failures", "Query": "[concat('Type=AzSDK_CL ControlStatus_s=Failed ControlSeverity_s=High SubscriptionName_s=\"',parameters('applicationSubscriptionName'),'\" (',parameters('query'),' OR FeatureName_s=SubscriptionCore) | measure count() by ControlSeverity_s')]" }, "Advanced": { "DataFlowVerification": { "Enabled": false, "Query": "*", "Message": "" } } } } } } ] } ] } |