Microsoft Sentinel
Cloud and workloads

Enable Network Security for Azure Storage Blob Connectors

In brief

The article adds an Overview section, guidance to create an inbound rule for required Scuba service IP ranges, and reorganized related links. Wording and metadata were also refreshed.

What Defender admins need to know

Administrators configuring this connector should add the documented inbound rule for the required Scuba service IP ranges.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Enable Network Security for Azure Storage blob connectors

Overview

This article provides step-by-step instructions on how to enable network security on the storage resources integrated with your Azure Storage connector. Azure network security perimeter (NSP) is an Azure-native feature that creates a logical isolation boundary for your PaaS resources. By associating resources like storage accounts or databases with an NSP, you can centrally manage network access using a simplified rule set. For more information, see Network security perimeter concepts.

Prerequisites

Before you begin, you must have the following Azure Storage connector resources already deployed and configured:

  • Azure Storage account: The storage account integrated with your Azure Storage connector.
  • Azure Storage queue: The queue that receives blob creation event notifications.
  • Event Grid system topic: The system topic on the storage account that streams blob creation events to the storage queue.

If you haven't created these resources yet, see Set up your Azure Storage Connector to stream logs to Microsoft Sentinel.

  1. Enter Name, for example storageblob-connectors-nsp

  2. Select a Region. The region must be the same region as the storage account.

  3. Enter a Profile name or accept the default. The profile defines the set of rules that are applied to associated resources. You can have multiple profiles within a single NSP to apply different rules to different resources if required.

  4. Select Review + create and, then select Create.

    :::image type="content" source="./media/enable-storage-network-security/create-network-security-perimeter.png" lightbox="./media/enable-storage-network-security/create-network-security-perimeter.png" alt-text="A screenshot showing the creation of a Network Security Perimeter in the Azure portal.":::

    :::image type="content" source="./media/enable-storage-network-security/select-event-system-topic.png" lightbox="./media/enable-storage-network-security/select-event-system-topic.png" alt-text="A screenshot showing the Event tab for Storage Accounts in the Azure portal.":::

  5. Select Identity.

  6. On the System assigned tab, set the Status to On.

  7. Select Save, then copy the managed identity's Object ID of the managed identity.. You need this Object ID when assigning the Storage Queue Data Message Sender role in the next section.

    :::image type="content" source="./media/enable-storage-network-security/create-system-assigned-identity.png" lightbox="./media/enable-storage-network-security/create-system-assigned-identity.png" alt-text="A screenshot showing the creation of a managed identity for an Event Grid System Topic in the Azure portal.":::

Grant RBAC permissions on the Storage Queue

To grant the Event Grid system topic managed identity permission to send messages to the storage queue, perform the following steps:

  1. Navigate to your Storage Account.

  2. Select Access Control (IAM).

  3. Select Add.

  4. Search for and select the Storage Queue Data Message Sender role (scope: the storage account).

  5. Select Review + assign to complete the role assignment. :::image type="content" source="./media/enable-storage-network-security/add-role-assignment.png" lightbox="./media/enable-storage-network-security/add-role-assignment.png" alt-text="A screenshot showing the assignment of the Storage Queue Data Message Sender role to a managed identity in the Azure portal.":::

Enable Managed Identity on the event subscription

To enable managed identity on the event subscription, perform the following steps:

  1. Open the Event Grid System Topic.

  2. Select the event subscription that targets the queue.

  3. Select the Additional settings tab.

  4. Set Managed identity type to System-assigned.

:::image type="content" source="./media/enable-storage-network-security/set-additional-features.png" lightbox="./media/enable-storage-network-security/set-additional-features.png" alt-text="A screenshot showing the enabling of managed identity for an Event Grid subscription in the Azure portal.":::

Configure Inbound Access rules on the Network Security Perimeter profile

The following rules are required to allow Event Grid to deliver messages to the storage account while blocking unauthorized access. Depending on the system sending data to the storage account or accessing the storage resources, you may need to add additional inbound rules. Review your scenario and traffic patterns to determine whether you need only the required Event Grid rules or additional inbound NSP rules, and allow time for rule propagation. Event Grid delivery doesn't originate from fixed public IPs. The NSP validates delivery using subscription identity.

  1. Navigate to Network Security Perimeter and select your NSP.

  2. Select Profiles and then select the profile associated with your storage account.

  3. Select Inbound access rules and then select Add.

    :::image type="content" source="./media/enable-storage-network-security/inbound-access-rules.png" lightbox="./media/enable-storage-network-security/inbound-access-rules.png" alt-text="A screenshot showing the Inbound access rules page in the Azure portal.":::

  4. Enter a Rule name,; for exampleexample, Allow-Subscription.

  5. Select Subscription from the Source type drop-down.

  6. Select your subscription from the Allowed Sources drop-down.

Rule 2: Allow Scuba service IP ranges

Create an inbound rule that allows the Scuba service IP ranges required for this scenario.

  1. Create a second Inbound access rules.

  2. Enter a Rule name; for example, Allow-Scuba.

  3. Select IP address ranges from the Source type drop-down.

  4. Open the Download Azure service tags JSON files page.

  5. Select your cloud,cloud; for exampleexample, Azure Public.

  6. Select the Download button and open the downloaded file to get the list of IP ranges.

  7. Find the Scuba service tag and copy the associated IPv4 ranges.

    :::image type="content" source="./media/enable-storage-network-security/scuba-ipv4-addresses.png" lightbox="./media/enable-storage-network-security/scuba-ipv4-addresses.png" alt-text="A screenshot showing a part of the ServiceTags_Public.json file with the Scuba service tag and IPv4 ranges highlighted.":::

Validate and enforce

After configuring the rules, monitor the diagnostic logs for the Network Security Perimeter to validate that legitimate traffic is allowed and there are no disruptions. Once you have confirmed that the rules are correctly allowing necessary traffic, you can switch from Transition mode to Enforced mode to block unauthorized access.

Apply Enforcement mode

Once validation is successful, set the access mode to Enforced as follows:

  1. From the Network Security Perimeter page, under Settings, select Associated resources.

  2. Select the storage account.

  3. Select Change access mode.

  4. Select Enforced and then Save. Setting the storage account to Secured by Perimeter ensures that all traffic to the storage account is evaluated against the Network Security Perimeter rules and blocks public network access.

  5. Navigate to your Storage Account.

  6. Under Security + networking, select Networking.

  7. Under Public network access, select Manage.

  8. Set Secured by Perimeter (Most restricted).

:::image type="content" source="./media/enable-storage-network-security/set-storage-networking.png" lightbox="./media/enable-storage-network-security/set-storage-networking.png" alt-text="A screenshot showing how to set a storage account to 'Secured by Perimeter' in the Azure portal.":::

Next stepsRelated content

In this article, you learned how to enable network security on the storage resources integrated with your Azure Storage connector. For more information, see the Network Security Perimeter articles.