Skip to content

Commit d524735

Browse files
committed
Adjusting content in advance of script sample
1 parent 354b378 commit d524735

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

articles/storage/scripts/storage-blobs-container-calculate-size-powershell.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
---
2-
title: Calculate size of a blob container with PowerShell
2+
title: Calculate the size of blob containers with PowerShell
33
titleSuffix: Azure Storage
4-
description: Calculate the size of a container in Azure Blob Storage by totaling the size of each of its blobs.
4+
description: Calculate the size of all Azure Blob Storage containers in a storage account.
55
services: storage
6-
author: stevenmatthew
6+
author: normesta
77

88
ms.service: azure-storage
99
ms.devlang: powershell
1010
ms.topic: sample
11-
ms.date: 12/04/2019
12-
ms.author: shaas
11+
ms.date: 11/21/2023
12+
ms.author: normesta
1313
ms.custom: devx-track-azurepowershell
1414
---
1515

16-
# Calculate the size of a blob container with PowerShell
16+
# Calculate the size of blob containers with PowerShell
1717

18-
This script calculates the size of a container in Azure Blob Storage. It first displays the total number of bytes used by the blobs within the container, then displays their individual names and lengths.
18+
This script calculates the size of all Azure Blob Storage containers in a storage account.
1919

2020
[!INCLUDE [sample-powershell-install](../../../includes/sample-powershell-install-no-ssh-az.md)]
2121

2222
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
2323

2424
> [!IMPORTANT]
25-
> This PowerShell script provides an estimated size for the container and should not be used for billing calculations. For a script that calculates container size for billing purposes, see [Calculate the size of a Blob storage container for billing purposes](../scripts/storage-blobs-container-calculate-billing-size-powershell.md).
25+
> This PowerShell script provides an estimated size for the containers in an account and should not be used for billing calculations. For a script that calculates container size for billing purposes, see [Calculate the size of a Blob storage container for billing purposes](../scripts/storage-blobs-container-calculate-billing-size-powershell.md).
2626
2727
## Sample script
2828

@@ -43,6 +43,7 @@ This script uses the following commands to calculate the size of the Blob storag
4343
| Command | Notes |
4444
|---|---|
4545
| [Get-AzStorageAccount](/powershell/module/az.storage/get-azstorageaccount) | Gets a specified Storage account or all of the Storage accounts in a resource group or the subscription. |
46+
| [Get-AzStorageContainer](/powershell/module/az.storage/get-azstoragecontainer) | Lists the storage containers. |
4647
| [Get-AzStorageBlob](/powershell/module/az.storage/Get-AzStorageBlob) | Lists blobs in a container. |
4748

4849
## Next steps

0 commit comments

Comments
 (0)