Azure Blob Streaming Configuration
This document provides information on how to configure Azure Blob connection with real-time events monitoring and data streaming.
Last updated
Was this helpful?
This document provides information on how to configure Azure Blob connection with real-time events monitoring and data streaming.
Last updated
Was this helpful?
To enable DDR (Streaming) for an existing Azure Blob scan, follow these steps:
Existing Azure Blob connection: An Azure Blob scan configuration must already exist.
If an Azure Blob scan has not yet been created, follow this guide to and ensure the necessary credentials are configured.
Go to the Scan configurations page in the product UI.
Find the existing Azure Blob scan configuration and select Edit Configuration from the options menu.
Within the Edit Azure Blob Scan Configuration page, toggle Data Streaming to ON.
Copy the Webhook URL provided, as you will use it later in the Azure Portal.
Select one of the connector from the Storage Accounts
In the left-hand menu, select Events and click Create Event Subscription.tor menu
In Create Event Subscription Window fill in the details:
Give it a Name
Select endpoint type Web Hook
Set configure an endpoint
Use the Webhook URL provided at the step 2 to Subscriber endpoint and Confirm selection.
Go to Filters Menu on top
In the Subject Filters section, enter the correct path format for the subscription:
Use the following pattern:
/blobServices/default/containers/{connectionDetails.ContainerName}/blobs/{connectionDetails.FolderPath}
For example, if the container is mycontainer
and the folder path is accuracy test/repository1
, the path will look like:
/blobServices/default/containers/mycontainer/blobs/accuracy test/repository1
Make sure to replace {connectionDetails.ContainerName}
and {connectionDetails.FolderPath}
with the actual container name and folder path from the scan configuration.
Click Create to complete the Event Subscription setup.
Ensure the following permissions are assigned to the Azure Storage Account:
EventGrid Data Contributor
EventGrid EventSubscription Contributor
EventGrid TopicSpaces Publisher
In Create Namespace Window fill in the details
Give it a Name
Select your subscription and resource group
Select location
Pricing tier - standard
Throughput Units - 1
Click on Review + Create and then Create after validation
After namespace is created, click on + Event Hub button
In Create Event Hub Window fill in name and click Create + Review and Create after validation. Save the name of the Event Hub you created in this step, as it will be used later in step 9 to replace {eventHubName}
.
Configure access policy
In the event hubs namespace window click on Settings/Shared access policies and then +Add button
Fill in the details in the new tab, set LogicAppsListenerPolicy as name, select Listen policy, and click Save.
Click on the newly created policy, then copy and save the Connection string–primary key. This will be needed later in step 8b.
Select needed account from the Storage Accounts
In the left-hand menu, select Monitoring/Diagnostic settings and click blob
In Diagnostic settings Window click on "+ Add diagnostic setting" button
In Create Diagnostic setting Window fill in the details:
Give it a Name
Select Category groups allLogs
Select Destination details Stream to an event hub and select newly created Event Hub Namespace and Event Hub
Click Save.
In Create Logic App Window select Workflow Service Plan
In Create Logic App (Workflow Service Plan) Window fill in the details and click "Create + Review":
Select your subscription and resource group
Give logic app name
Select region
Pricing plan should be WS1
In the monitoring tab select No for the application insights
Click Review + create button
Click Create after validation
In newly created logic app click on Workflows/Workflows and then +Add button
In new workflow tab fill in name, select State type: Stateful and click Create
In created workflow go to Developer/Designer and click on Add a trigger, then in search type "Event hub" and select "When events are available in Event Hub"
Configure API connection
Click on the trigger, set "Temp" for Event Hub Name and then click on Change connection.
Then click Add New and fill in the details. Enter any name for the connection name and use the connection string {Connection string–primary key}
from step 3.6.c.
On the Change Connection tab, click Details and copy the Name from the connection details. Save this Name, as it will be used later in step 9 to replace {connectionName}
.
Click save on workflow designer window
In workflow navigation tab go to Developer/Code and set the provided code, then click save:
If you experience any issues with the configuration, ensure that:
The Webhook URL is correct and matches the configuration in Azure.
Steps 5.8 and 5.9 properly executed and all the variables are replaced with real values.
You can also check if the trigger was unsuccessful by navigating to your configured in previos steps Logic App, then Workflow and Trigger History. If you see any failed triggers, you can inspect the error details to identify the issue.
After configuring the event subscription:
Documents may be uploaded to the configured path.
The events triggered by these uploads will be processed by the Data Streaming setup, and the results will appear in the Getvisibility dashboard.
If there any issues with the configuration, ensure that:
The Webhook URL is correct and matches the configuration in Azure.
The required Azure permissions are correctly assigned.
Steps 5.8 and 5.9 properly executed and all the variables are replaced with real values.
You can also check if the trigger was unsuccessful by navigating to your configured in previos steps Logic App, then Workflow and Trigger History. If you see any failed triggers, you can inspect the error details to identify the issue.
Navigate to and open the Storage Account.
For details on assigning these roles, refer to .
Navigate to and click Create
Navigate to and open your Storage Account.
Go to and click "Add" button
Replace with a path to the streaming folder. For ex., you want to get events from the folder "StreamingFolder" which is located in file share with the name "DocumentsShare" and in the folder with the name "Personal". In this case, the path should be "DocumentsShare/Personal/StreamingFolder"
Replace with webhook url provided in the application in the scan configuration window
Replace with azure event hub name that was created previously
Replace with connection name from previouse step