---
title: Storage Management for Microsoft Azure Blob Storage
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Infrastructure > Storage Management > Storage Management for Microsoft
  Azure Blob Storage
---

# Storage Management for Microsoft Azure Blob Storage

{% callout %}
##### Join the Preview!

Storage Management is in Preview. Request access to start monitoring your object storage.

[Request Access](https://www.datadoghq.com/product-preview/storage-monitoring/)
{% /callout %}

## Setup{% #setup %}

{% alert level="info" %}
Azure Marketplace integration is not supported with Storage Management. You must use an [App Registration](https://docs.datadoghq.com/integrations/azure) to connect Azure to Datadog.
{% /alert %}

{% tab title="Azure CLI" %}

1. Go to **Storage Management** > **Azure Blob Storage** > [**Enable buckets**](https://app.datadoghq.com/storage-management?mConfigure=true&mView=azure).
1. Select the storage accounts you want to enable for Storage Management.
1. Run the CLI commands in your [Azure Cloud Shell](https://shell.azure.com) generated at the bottom of the table. Before running the script, set your shell environment to Bash.
1. After running the script, click **Confirm** and wait 24-48 hours for Storage Management metrics to become available.

{% /tab %}

{% tab title="Azure Portal" %}
For Each Storage Account you wish to monitor, follow all of the steps here:

### Create a blob inventory policy{% #create-a-blob-inventory-policy %}

1. In the Azure portal, navigate to your Storage Account.
1. Go to **Data management** > **Blob inventory**.
1. Click **Add**.
1. Configure the policy:
   - Name: **datadog-storage-monitoring**
   - Destination container:
     - Click **Create new**, and enter the name `datadog-storage-monitoring`.
   - Object type to inventory: **Blob**
   - Schedule: **Daily**
   - Blob types: Select **Block blobs**, **Append blobs**, and **Page blobs**.
   - Subtypes: Select **Include blob versions**
   - Schema fields: Select All, or ensure that at least the following are selected:
     - **Name**
     - **Access tier**
     - **Last modified**
     - **Content length**
     - **Server encrypted**
     - **Current version status**
     - **Version ID**
   - Exclude prefix: datadog-storage-monitoring
1. Click **Add**.

### Add the role assignment{% #add-the-role-assignment %}

1. In the Azure portal, navigate to your Storage Account.
1. Go to **Data storage** > **Containers**.
1. Click on the **datadog-storage-monitoring** container.
1. Click on **Access control (IAM)** in the left-hand menu.
1. Click **Add** > **Add role assignment**.
1. Fill out the role assignment:
   - Role: Select **Storage Blob Data Reader**. Click **Next**.
   - Assign access to: **User, group, or service principal**.
   - Members: Click **+ Select members** and search for your App Registration by its name and select it.
   - **Note**: This should be an App Registration set up in the Datadog Azure integration. Keep in mind the Client ID for later.
1. Click **Review + assign**.
1. Go to **Datadog** > **Storage Management** > **Azure Blob Storage** > [**Enable buckets**](https://app.datadoghq.com/storage-management?mConfigure=true&mView=azure). Select the storage accounts you enabled inventory on and click **Confirm**.

{% /tab %}

## Further reading{% #further-reading %}

- [Optimize and troubleshoot cloud storage at scale with Storage Monitoring](https://www.datadoghq.com/blog/datadog-storage-monitoring/)
- [Reduce cloud storage costs and improve operational efficiency with Datadog Storage Monitoring](https://www.datadoghq.com/blog/storage-monitoring-recommendations/)
