{
  "name": "StratoSecurePush",
  "apiVersion": "2022-09-01-preview",
  "type": "Microsoft.SecurityInsights/dataConnectorDefinitions",
  "location": "{{location}}",
  "kind": "Customizable",
  "properties": {
    "connectorUiConfig": {
      "id": "StratoSecurePush",
      "title": "StratoSecure Security Platform",
      "publisher": "Soluciones Etech Corp",
      "descriptionMarkdown": "The StratoSecure Security Platform connector ingests ASPM findings, API inventory, remediation, scan summary and exception data pushed from the StratoSecure platform into Microsoft Sentinel via the Logs Ingestion API.",
      "graphQueries": [
        {
          "metricName": "Total StratoSecure_ApiInventory_CL events received",
          "legend": "StratoSecure_ApiInventory_CL",
          "baseQuery": "StratoSecure_ApiInventory_CL"
        },
        {
          "metricName": "Total StratoSecure_Exception_CL events received",
          "legend": "StratoSecure_Exception_CL",
          "baseQuery": "StratoSecure_Exception_CL"
        },
        {
          "metricName": "Total StratoSecure_Findings_CL events received",
          "legend": "StratoSecure_Findings_CL",
          "baseQuery": "StratoSecure_Findings_CL"
        },
        {
          "metricName": "Total StratoSecure_Remediation_CL events received",
          "legend": "StratoSecure_Remediation_CL",
          "baseQuery": "StratoSecure_Remediation_CL"
        },
        {
          "metricName": "Total StratoSecure_ScanSummary_CL events received",
          "legend": "StratoSecure_ScanSummary_CL",
          "baseQuery": "StratoSecure_ScanSummary_CL"
        }
      ],
      "graphQueriesTableName": "StratoSecure_Findings_CL",
      "sampleQueries": [
        {
          "description": "Get sample StratoSecure_ApiInventory_CL events",
          "query": "StratoSecure_ApiInventory_CL\n | take 10"
        },
        {
          "description": "Get sample StratoSecure_Exception_CL events",
          "query": "StratoSecure_Exception_CL\n | take 10"
        },
        {
          "description": "Get sample StratoSecure_Findings_CL events",
          "query": "StratoSecure_Findings_CL\n | take 10"
        },
        {
          "description": "Get sample StratoSecure_Remediation_CL events",
          "query": "StratoSecure_Remediation_CL\n | take 10"
        },
        {
          "description": "Get sample StratoSecure_ScanSummary_CL events",
          "query": "StratoSecure_ScanSummary_CL\n | take 10"
        }
      ],
      "dataTypes": [
        {
          "name": "StratoSecure_ApiInventory_CL",
          "lastDataReceivedQuery": "StratoSecure_ApiInventory_CL\n | summarize Time = max(TimeGenerated)\n | where isnotempty(Time)"
        },
        {
          "name": "StratoSecure_Exception_CL",
          "lastDataReceivedQuery": "StratoSecure_Exception_CL\n | summarize Time = max(TimeGenerated)\n | where isnotempty(Time)"
        },
        {
          "name": "StratoSecure_Findings_CL",
          "lastDataReceivedQuery": "StratoSecure_Findings_CL\n | summarize Time = max(TimeGenerated)\n | where isnotempty(Time)"
        },
        {
          "name": "StratoSecure_Remediation_CL",
          "lastDataReceivedQuery": "StratoSecure_Remediation_CL\n | summarize Time = max(TimeGenerated)\n | where isnotempty(Time)"
        },
        {
          "name": "StratoSecure_ScanSummary_CL",
          "lastDataReceivedQuery": "StratoSecure_ScanSummary_CL\n | summarize Time = max(TimeGenerated)\n | where isnotempty(Time)"
        }
      ],
      "connectivityCriteria": [
        {
          "type": "IsConnectedQuery",
          "value": [
            "StratoSecure_Findings_CL\n | summarize LastLogReceived = max(TimeGenerated)\n | project IsConnected = LastLogReceived > ago(7d)"
          ]
        }
      ],
      "availability": {
        "status": 1
      },
      "permissions": {
        "resourceProvider": [
          {
            "provider": "Microsoft.OperationalInsights/workspaces",
            "permissionsDisplayText": "read and write permissions are required.",
            "providerDisplayName": "Workspace",
            "scope": "Workspace",
            "requiredPermissions": {
              "write": true,
              "read": true,
              "delete": true
            }
          }
        ],
        "customs": [
          {
            "name": "Microsoft Entra",
            "description": "Permission to create an app registration in Microsoft Entra ID. Typically requires Entra ID Application Developer role or higher."
          },
          {
            "name": "Microsoft Azure",
            "description": "Permission to assign Monitoring Metrics Publisher role on data collection rule (DCR). Typically requires Azure RBAC Owner or User Access Administrator role."
          }
        ]
      },
      "instructionSteps": [
        {
          "title": "1. Create ARM Resources and Provide the Required Permissions",
          "description": "This connector enables your StratoSecure platform to push ASPM findings, API inventory, remediation, scan summary and exception data directly to Microsoft Sentinel via the Azure Monitor Ingestion API.",
          "instructions": [
            {
              "type": "Markdown",
              "parameters": {
                "content": "#### Automated Configuration and Secure Data Ingestion with Entra Application \nClicking on \"Deploy\" will trigger the creation of Log Analytics tables and a Data Collection Rule (DCR). \nIt will then create an Entra application, link the DCR to it, and set the entered secret in the application. This setup enables data to be sent securely to the DCR using an Entra token."
              }
            },
            {
              "parameters": {
                "label": "Deploy StratoSecure connector resources",
                "applicationDisplayName": "StratoSecure Connector Application"
              },
              "type": "DeployPushConnectorButton"
            }
          ]
        },
        {
          "title": "2. Configure Your StratoSecure Platform",
          "description": "Use the following parameters to configure your StratoSecure platform to push data to the workspace.",
          "instructions": [
            {
              "parameters": {
                "label": "Tenant ID (Directory ID)",
                "fillWith": [
                  "TenantId"
                ]
              },
              "type": "CopyableLabel"
            },
            {
              "parameters": {
                "label": "Entra App Registration Application ID",
                "fillWith": [
                  "ApplicationId"
                ],
                "placeholder": "Deploy push connector to get the App Registration Application ID"
              },
              "type": "CopyableLabel"
            },
            {
              "parameters": {
                "label": "Entra App Registration Secret",
                "fillWith": [
                  "ApplicationSecret"
                ],
                "placeholder": "Deploy push connector to get the App Registration Secret"
              },
              "type": "CopyableLabel"
            },
            {
              "parameters": {
                "label": "Data Collection Endpoint Uri",
                "fillWith": [
                  "DataCollectionEndpoint"
                ],
                "placeholder": "Deploy push connector to get the Data Collection Endpoint Uri"
              },
              "type": "CopyableLabel"
            },
            {
              "parameters": {
                "label": "Data Collection Rule Immutable ID",
                "fillWith": [
                  "DataCollectionRuleId"
                ],
                "placeholder": "Deploy push connector to get the Data Collection Rule Immutable ID"
              },
              "type": "CopyableLabel"
            },
            {
              "parameters": {
                "label": "Findings Stream Name",
                "value": "Custom-StratoSecure_Findings_CL"
              },
              "type": "CopyableLabel"
            },
            {
              "parameters": {
                "label": "API Inventory Stream Name",
                "value": "Custom-StratoSecure_ApiInventory_CL"
              },
              "type": "CopyableLabel"
            },
            {
              "parameters": {
                "label": "Exception Stream Name",
                "value": "Custom-StratoSecure_Exception_CL"
              },
              "type": "CopyableLabel"
            },
            {
              "parameters": {
                "label": "Remediation Stream Name",
                "value": "Custom-StratoSecure_Remediation_CL"
              },
              "type": "CopyableLabel"
            },
            {
              "parameters": {
                "label": "Scan Summary Stream Name",
                "value": "Custom-StratoSecure_ScanSummary_CL"
              },
              "type": "CopyableLabel"
            }
          ]
        }
      ]
    }
  }
}
