You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/storage/scripts/storage-blobs-container-calculate-size-powershell.md
+116-9Lines changed: 116 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,32 +1,138 @@
1
1
---
2
-
title: Calculate size of a blob container with PowerShell
2
+
title: Calculate the size of blob containers with PowerShell
3
3
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.
5
5
services: storage
6
-
author: stevenmatthew
6
+
author: normesta
7
7
8
8
ms.service: azure-storage
9
9
ms.devlang: powershell
10
10
ms.topic: sample
11
-
ms.date: 12/04/2019
12
-
ms.author: shaas
11
+
ms.date: 11/21/2023
12
+
ms.author: normesta
13
13
ms.custom: devx-track-azurepowershell
14
14
---
15
15
16
-
# Calculate the size of a blob container with PowerShell
16
+
# Calculate the size of blob containers with PowerShell
17
17
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.
> 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).
@@ -43,6 +149,7 @@ This script uses the following commands to calculate the size of the Blob storag
43
149
| Command | Notes |
44
150
|---|---|
45
151
|[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. |
152
+
|[Get-AzStorageContainer](/powershell/module/az.storage/get-azstoragecontainer)| Lists the storage containers. |
46
153
|[Get-AzStorageBlob](/powershell/module/az.storage/Get-AzStorageBlob)| Lists blobs in a container. |
0 commit comments