Proposed Pull Request Change

title titleSuffix description author ms.service ms.topic ms.date ms.author modified_by modified_time
Create and manage an Azure Storage Discovery Workspace Azure Storage Discovery Learn how to create an Azure Storage Discovery workspace and enable or disable advanced capacity insights. fauhse azure-storage-discovery how-to 10/09/2025 fauhse pthippeswamy 10/16/2026
📄 Document Links
GitHub View on GitHub Microsoft Learn View on Microsoft Learn
⚠ Content Truncation Detected
The generated rewrite appears to be incomplete.
Original lines: -
Output lines: -
Ratio: -
Raw New Markdown
Generating updated version of doc...
Rendered New Markdown
Generating updated version of doc...
+0 -0
+0 -0
--- title: Create and manage an Azure Storage Discovery Workspace titleSuffix: Azure Storage Discovery description: Learn how to create an Azure Storage Discovery workspace and enable or disable advanced capacity insights. author: fauhse ms.service: azure-storage-discovery ms.topic: how-to ms.date: 10/09/2025 ms.author: fauhse modified_by: pthippeswamy modified_time: 10/16/2026 --- # Deploy the Azure Storage Discovery service To deploy the Azure Storage Discovery service, you need to create a Discovery workspace resource in one of your resource groups. With this resource, you define which storage resources you want to cover across your Microsoft Entra tenant and how you want to segment reporting for them. The workspace offers prebuilt reports in the Azure portal that you can use to retrieve the insights you need about your storage resources. ## Create a storage discovery workspace You can create a storage discovery workspace using the Azure portal, Azure PowerShell, or the Azure CLI. ### [Azure portal](#tab/portal) Create an Azure Storage Discovery Workspace resource in the Azure portal by selecting **Create** as shown in the following image. :::image source="media/create-workspace/create-resource-sml.png" alt-text="Screenshot of the Create workspace page." lightbox="media/create-workspace/create-resource.png"::: Choose the **Subscription** and **Resource group** in which to create the discovery workspace. The following table describes each element. | Element | Description | |----------------|-------------------------------------------------------------------| | `Name` | The name of the Discovery workspace resource. | | `Description` | Optional. Description of the Discovery workspace resource. | | `Region` | Azure region where the Discovery resource is created.<sup>1</sup> | | `Pricing plan` | Storage Discovery pricing plan.<sup>2</sup> | <sup>1</sup> For information on regions covered, see [Storage Discovery workspace regions](deployment-planning.md). <sup>2</sup> For information on Storage Discovery pricing plan, see [Understand Storage Discovery Pricing](pricing.md). ### Define workspaceRoots A workspaceRoot specifies the top-level Azure resource identifiers where Storage Discovery initiates its scan for storage accounts. These identifiers are typically subscriptions or resource groups, and serve as the root of the discovery process. WorkspaceRoots define the overall scope and boundaries of your Azure estate for analysis. Select the subscriptions and/or resource groups you want to include in the workspace. > [!NOTE] > - Ensure that the user or service principal deploying the workspace is granted at least **Reader** access to each specified root. > - Up to 100 resources - subscriptions and/or resource groups can be included in one workspace. > - The default limit of 100 resources per workspace can be increased. Reach out [Azure Support](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/overview). Provide the tenantID, SubscriptionID where you would want this limit to be increased. :::image source="media/create-workspace/workspace-roots-checks-sml.png" alt-text="Screenshot of the workspaceRoots." lightbox="media/create-workspace/workspace-roots-checks.png"::: After you add your subscriptions or resource groups to your workspace, the service runs an access check to verify that the user has `Microsoft.Storage/storageAccounts/read` on the added resources. The following image provides an example of an access check failure with the associated status message. :::image source="media/create-workspace/create-access-sml.png" alt-text="Screenshot of the access check on workspaceRoots." lightbox="media/create-workspace/create-access.png"::: If you don't have `Microsoft.Storage/storageAccounts/read` on any of the resources added, remove the resource from the workSpaceRoots to proceed with the creation of workspace or resolve the access issue and try again. ### Create a scope Scopes are logical groupings of storage accounts within the defined workspaceRoots. Scopes allow you to filter and organize data using tags and resource types, enabling targeted insights. For example, you can create scopes for individual departments, environments, or compliance zones. :::image source="media/create-workspace/create-scope-sml.png" alt-text="Screenshot of a scope." lightbox="media/create-workspace/create-scope.png"::: > [!IMPORTANT] > A **default Scope** is added automatically, which includes all storage accounts within subscriptions or resource groups added in the **workspaceRoots**. You can optionally add tags to this workspace resource. Then select **Review and Create**. If the access validation is still running, you can't create the workspace resource yet. Wait for this check to finish, correct any issues, then confirm by selecting **Create**. :::image source="media/create-workspace/access-check-sml.png" alt-text="Screenshot of access checks running." lightbox="media/create-workspace/access-check.png"::: > [!NOTE] > Discovery resource creation fails if the access checks on any subscription or resource group aren't successful. After the access checks complete successfully, the resource can be deployed as shown in the following sample image. :::image source="media/create-workspace/deploy-resource-sml.png" alt-text="Screenshot of the deployment complete." lightbox="media/create-workspace/deploy-resource.png"::: ### [Azure PowerShell](#tab/powershell) Create an Azure Storage Discovery workspace resource in the Azure portal by modifying the variables in the following PowerShell script to include your resource group, workspace name, and location. Verify that your values are correct, and then run the script in the Azure PowerShell console. ```powershell # First, set variables for the resources $resGroupName = "myResourceGroup" $workSpaceName = "myStorageDiscoveryWorkspace" $location = "East US" $DiscoveryScopeLevel1 = "myScopeLevel1" $DiscoveryScopeLevel2 = "myScopeLevel2" # Next, prepare a DiscoveryScope object $scope1 = New-AzStorageDiscoveryScopeObject -DisplayName "test1" ` -ResourceType "Microsoft.Storage/storageAccounts" ` -TagKeysOnly "e2etest1" -Tag @{"tag1" = "value1"; "tag2" = "value2" } $scope2 = New-AzStorageDiscoveryScopeObject -DisplayName "test2" ` -ResourceType "Microsoft.Storage/storageAccounts" ` -TagKeysOnly "e2etest2" -Tag @{"tag3" = "value3" } # Finally, create the discovery workspace New-AzStorageDiscoveryWorkspace -Name $workSpaceName -ResourceGroupName $resGroupName ` -Location $location -Description 123 -WorkspaceRoot $DiscoveryScopeLevel1 ` -Sku Standard -Scope $scope1 ``` ### [Azure CLI](#tab/cli) Create an Azure Storage Discovery workspace resource using CLI. ```cli az storage-discovery workspace create \ --resource-group <your-resource-group> \ --name <your-workspace-name> \ --location <azure-region> \ --workspace-roots "/subscriptions/<your-subscription-id>/resourceGroups/<your-resource-group>" \ --scopes '[{"displayName":"basic","resourceTypes":["Microsoft.Storage/storageAccounts"]}]' \ --sku Standard \ --description "Optional description" ``` #### Required parameters | Parameter | Description | |-----------|-------------| | resource-group | The resource group where the workspace is created. | | name | The name of the workspace. | | location | Azure region for deployment. | | workspace-roots | The workspace root designates the storage resources to get insights for. This `string[]` can contain a combination of subscription IDs and resource group IDs. You may mix and match these resource types. The identity under which you deploy the workspace [must have permissions](deployment-planning.md#permissions-to-your-storage-resources) to all resources you list at the time of deployment. | | scopes | You can create several scopes in a workspace. A scope allows you to filter the storage resources the workspace covers and obtain different reports for each of these scopes. Filtering is based on ARM resource tags on your storage resources. This property expects a `JSON` object containing sections for `tag key name` : `value` combinations or `tag key names` only. When your storage resources have matching ARM resource tags, they're included in this scope. | | sku | Pricing tier (Free or Standard). | #### Optional parameters | Parameter | Description | |-----------|-------------| | description | Optional metadata for the workspace. | --- > [!NOTE] > It can take up to 24 hours after scope creation for metrics to begin appearing in reports. ## Enable advanced capacity insights You can access advanced capacity insights through the **Capacity details** report. During preview, you can enable this feature only for existing workspaces on the Standard plan, not during workspace creation. Before you begin, review the [prerequisites and permissions](deployment-planning.md#prerequisites-for-advanced-capacity-insights), [regional availability](deployment-planning.md#regional-availability-for-advanced-capacity-insights), and [preview coverage limits](analyze-blob-capacity-details.md#preview-coverage). Ensure you have the **Contributor** or **Owner** role on the workspace. On each tenant, subscription, or resource group included in *workspaceRoots*, you also need the built-in [Storage Blob Data Reader](../role-based-access-control/built-in-roles/storage.md#storage-blob-data-reader) role. This role provides the `Microsoft.Storage/storageAccounts/blobServices/containers/read` and `Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read` permissions. You also need `Microsoft.Storage/storageAccounts/read` permission at each of these scopes, which must be granted separately. ### [Azure portal](#tab/enable-portal) 1. Open the [Azure portal](https://portal.azure.com). 1. Go to your Storage Discovery workspace. 1. On the workspace **Overview** page, find **Capacity details** in the **Essentials** section. 1. Select **Enable**. 1. If the workspace uses the Free plan, follow the prompt to upgrade to the **Standard** plan. 1. Complete the additional access checks. 1. Review any access-check failures and correct the reported permissions before you try again. :::image source="media/create-workspace/enable-capacity-details.png" alt-text="Screenshot of the enable capacity details." lightbox="media/create-workspace/enable-capacity-details.png"::: Start access checks to enable capacity details :::image source="media/create-workspace/access-enable.png" alt-text="Screenshot of the enable capacity details access details." lightbox="media/create-workspace/access-enable.png"::: ### [Azure PowerShell](#tab/enable-powershell) Install the preview [Az.StorageDiscovery 1.0.1-preview](https://www.powershellgallery.com/packages/Az.StorageDiscovery/1.0.1-preview) module, which adds the `-CapacityDetailStatus` parameter: ```powershell Install-Module -Name Az.StorageDiscovery -RequiredVersion 1.0.1-preview -AllowPrerelease -Scope CurrentUser ``` Enable **Capacity details** on an existing Standard workspace by modifying the variables in the following PowerShell script to include your subscription ID, resource group, and workspace name. Verify that your values are correct, and then run the script in the Azure PowerShell console. ```powershell # First, set variables for the resources $subscriptionId = "<your-subscription-id>" $resGroupName = "myResourceGroup" $workSpaceName = "myStorageDiscoveryWorkspace" # Next, connect to Azure and select the subscription Import-Module -Name Az.StorageDiscovery -RequiredVersion 1.0.1 -ErrorAction Stop Connect-AzAccount -ErrorAction Stop Set-AzContext -SubscriptionId $subscriptionId -ErrorAction Stop # Enable capacity details Update-AzStorageDiscoveryWorkspace -Name $workSpaceName -ResourceGroupName $resGroupName ` -CapacityDetailStatus Enabled -ErrorAction Stop # Finally, verify that capacity details are enabled Get-AzStorageDiscoveryWorkspace -Name $workSpaceName -ResourceGroupName $resGroupName ` -ErrorAction Stop | Select-Object Name, Sku, CapacityDetailStatus ``` Confirm that `CapacityDetailStatus` is `Enabled`. If the update fails because of an access check, correct the reported permissions and run the update command again. --- After you enable this feature, insights can take up to 48 hours to begin populating. To view the results, see [Open and filter the Capacity details report](analyze-blob-capacity-details.md#open-and-filter-the-report). ## Disable advanced capacity insights You can disable **Capacity details** from the workspace management experience. Before you confirm, review the portal warning for the effect on report history. When you disable advanced capacity insights: - Storage Discovery stops producing new advanced capacity insights. - The **Capacity details** report stops showing advanced insights. - Configured prefixes are retained, but aggregation for them stops. - You must complete the additional access checks again if you re-enable the capability. Changing the workspace to the Free plan also makes advanced capacity insights unavailable. If you later return to the Standard plan, [enable **Capacity details** again](#enable-advanced-capacity-insights) to resume aggregation. ## Next steps - [Analyze Blob capacity details](analyze-blob-capacity-details.md) - [Configure Blob prefixes for analysis](configure-blob-storage-prefixes.md) - [Understand the common structure of Storage Discovery reports](get-started-reports.md)
Success! Branch created successfully. Create Pull Request on GitHub
Error: