From 62f6647e808d6d44cadd03af39e79f65a0886212 Mon Sep 17 00:00:00 2001 From: v-amolpatil Date: Fri, 20 Oct 2023 10:24:20 +0530 Subject: [PATCH] updated code as per review comments --- Solutions/PrismaCloudCompute/Data Connectors/DCR.json | 4 ++-- .../Data Connectors/connectorDefinition.json | 1 + .../Data Connectors/dataConnectorPoller.json | 6 +++--- Solutions/PrismaCloudCompute/Data Connectors/table.json | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Solutions/PrismaCloudCompute/Data Connectors/DCR.json b/Solutions/PrismaCloudCompute/Data Connectors/DCR.json index 0195df58f85..e3f2fe8f478 100644 --- a/Solutions/PrismaCloudCompute/Data Connectors/DCR.json +++ b/Solutions/PrismaCloudCompute/Data Connectors/DCR.json @@ -1,4 +1,4 @@ -{ +[{ "name": "PrismaCloudComputeDCR", "apiVersion": "2021-09-01-preview", "type": "Microsoft.Insights/dataCollectionRules", @@ -120,4 +120,4 @@ } ] } -} \ No newline at end of file +}] \ No newline at end of file diff --git a/Solutions/PrismaCloudCompute/Data Connectors/connectorDefinition.json b/Solutions/PrismaCloudCompute/Data Connectors/connectorDefinition.json index 0f6f907f720..1553f7ddda9 100644 --- a/Solutions/PrismaCloudCompute/Data Connectors/connectorDefinition.json +++ b/Solutions/PrismaCloudCompute/Data Connectors/connectorDefinition.json @@ -5,6 +5,7 @@ "kind": "Customizable", "properties": { "connectorUiConfig": { + "id": "PrismaCloudComputeDefinition1", "title": "Prisma Cloud Compute CWPP (using REST API)", "publisher": "Microsoft", "descriptionMarkdown": "The [Prisma Cloud Compute CWPP](https://prisma.pan.dev/api/cloud/cwpp/audits/#operation/get-audits-incidents) data connector allows you to connect to your Prisma Cloud CWPP instance and ingesting alerts into Microsoft Sentinel. The data connector is built on Microsoft Sentinel’s Codeless Connector Platform and uses the Prisma Cloud API to fetch security events and supports DCR-based [ingestion time transformations](https://docs.microsoft.com/azure/azure-monitor/logs/custom-logs-overview) that parses the received security event data into a custom columns so that queries don't need to parse it again, thus resulting in better performance.", diff --git a/Solutions/PrismaCloudCompute/Data Connectors/dataConnectorPoller.json b/Solutions/PrismaCloudCompute/Data Connectors/dataConnectorPoller.json index ed42927fbca..af2ad564a6b 100644 --- a/Solutions/PrismaCloudCompute/Data Connectors/dataConnectorPoller.json +++ b/Solutions/PrismaCloudCompute/Data Connectors/dataConnectorPoller.json @@ -1,10 +1,10 @@ -{ +[{ "type": "Microsoft.SecurityInsights/dataConnectors", "apiVersion": "2022-10-01-preview", "name": "apiRequest", "kind": "RestApiPoller", "properties": { - "connectorDefinitionName": "connectorDefinitionName", + "connectorDefinitionName": "PrismaCloudComputeDefinition1", "dataType": "PrismaCloudCompute_CL", "dcrConfig": { "streamName": "Custom-PrismaCloudCompute_IncidentsApi", @@ -45,4 +45,4 @@ ] } } -} \ No newline at end of file +}] \ No newline at end of file diff --git a/Solutions/PrismaCloudCompute/Data Connectors/table.json b/Solutions/PrismaCloudCompute/Data Connectors/table.json index 4cb576cc3c3..6c230f9e665 100644 --- a/Solutions/PrismaCloudCompute/Data Connectors/table.json +++ b/Solutions/PrismaCloudCompute/Data Connectors/table.json @@ -1,4 +1,4 @@ -{ +[{ "name": "PrismaCloudCompute_CL", "type": "Microsoft.OperationalInsights/workspaces/tables", "apiVersion": "2021-03-01-privatepreview", @@ -101,4 +101,4 @@ ] } } -} \ No newline at end of file +}] \ No newline at end of file