{
    "id": "DDOS",
    "title": "Azure DDoS Protection",
    "publisher": "Microsoft",
    "descriptionMarkdown": "Connect to Azure DDoS Protection Standard logs via Public IP Address Diagnostic Logs. In addition to the core DDoS protection in the platform, Azure DDoS Protection Standard provides advanced DDoS mitigation capabilities against network attacks. It's automatically tuned to protect your specific Azure resources. Protection is simple to enable during the creation of new virtual networks. It can also be done after creation and requires no application or resource changes. For more information, see the [Microsoft Sentinel documentation](https://go.microsoft.com/fwlink/p/?linkid=2219760&wt.mc_id=sentinel_dataconnectordocs_content_cnl_csasci).",
    "lastDataReceivedInfoBalloon": "If no new data has been received in the last 14 days, the connector will display as being \"not connected.\" When the connector will recive data , the \"connected\" status will return.",
    "graphQueries": [
        {
            "metricName": "Total data received",
            "legend": "AzureDiagnostics",
            "baseQuery": "AzureDiagnostics | where ResourceType == \"PUBLICIPADDRESSES\""
        }
    ],
    "sampleQueries": [
        {
            "description": "All logs",
            "query": "AzureDiagnostics | where ResourceType == \"PUBLICIPADDRESSES\"\n            | sort by TimeGenerated"
        },
        {
            "description": "DDoS Mitigation Reports",
            "query": "AzureDiagnostics | where ResourceType == \"PUBLICIPADDRESSES\"\n            | where Category == \"DDoSMitigationReports\""
        }
    ],
    "connectivityCriterias": [
        {
            "type": "IsConnectedQuery",
            "value": [
                "AzureDiagnostics | where ResourceType == \"PUBLICIPADDRESSES\"\n            | summarize LastLogReceived = max(TimeGenerated)\n            | project IsConnected = LastLogReceived > ago(7d)"
            ]
        }
    ],
    "dataTypes": [
        {
            "name": "AzureDiagnostics (Public IP Addresses)",
            "lastDataReceivedQuery": "AzureDiagnostics | where ResourceType == \"PUBLICIPADDRESSES\"\n            | summarize Time = max(TimeGenerated)\n            | where isnotempty(Time)"
        }
    ],
    "availability": {
        "status": 2,
        "featureFlag": {
            "feature": "DDOSConnector",
            "featureStates": {
                "1": 3,
                "2": 3,
                "3": 3,
                "4": 3,
                "5": 2,
                "6": 2,
                "7": 2
            }
        }
    },
    "permissions": {
        "resourceProvider": [
            {
                "provider": "Microsoft.OperationalInsights/workspaces",
                "permissionsDisplayText": "read and write permissions.",
                "providerDisplayName": "Workspace",
                "scope": "Workspace",
                "requiredPermissions": {
                    "read": true,
                    "write": true,
                    "delete": true
                }
            }
        ],
        "customs": [
            {
                "name": "Azure DDoS protection plan",
                "description": "A configured Azure DDoS Standard protection plan [read more about Azure DDoS protection plans](https://docs.microsoft.com/azure/virtual-network/manage-ddos-protection#create-a-ddos-protection-plan)."
            },
            {
                "name": "Enabled Azure DDoS for virtual network",
                "description": "A configured virtual network with Azure DDoS Standard enabled [read more about configuring virtual network with Azure DDoS](https://docs.microsoft.com/azure/virtual-network/manage-ddos-protection#enable-ddos-for-an-existing-virtual-network)."
            }
        ]
    },
    "instructionSteps": [
        {
            "title": "Connect Azure DDoS Protection to Microsoft Sentinel",
            "description": "Enable Diagnostic Logs on All Public IP Addresses.",
            "instructions": [
                {
                    "parameters": {
                        "linkType": "OpenMicrosoftAzureMonitoring"
                    },
                    "type": "InstallAgent"
                }
            ]
        },
        {
            "title": "Inside your Diagnostics settings portal, select your Public IP Address resource:",
            "description": "Inside your Public IP Address resource:\n    \n1.  Select **+ Add diagnostic setting.​**\n2.  In the **Diagnostic setting** blade:\n  -   Type a **Name**, within the **Diagnostics settings** name field.\n  -   Select **Send to Log Analytics**.\n  -   Choose the log destination workspace.\n  -   Select the categories that you want to analyze (recommended: DDoSProtectionNotifications, DDoSMitigationFlowLogs, DDoSMitigationReports)\n  -   Click **Save**."
        }
    ]
}
