From 18edc519c993526a072b8ff14f95c51867b21f19 Mon Sep 17 00:00:00 2001 From: Jaime Polop <117489620+JaimePolop@users.noreply.github.com> Date: Fri, 13 Dec 2024 01:45:01 +0100 Subject: [PATCH] Update az-table-storage.md --- .../az-services/az-table-storage.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pentesting-cloud/azure-security/az-services/az-table-storage.md b/pentesting-cloud/azure-security/az-services/az-table-storage.md index 5290fdcde..1b7b3e923 100644 --- a/pentesting-cloud/azure-security/az-services/az-table-storage.md +++ b/pentesting-cloud/azure-security/az-services/az-table-storage.md @@ -41,6 +41,9 @@ There **isn't built-in backup mechanism** for table storage. ## Enumeration +{% tabs %} +{% tab title="az cli" %} +{% code overflow="wrap" %} ```bash # Get storage accounts az storage account list @@ -72,6 +75,20 @@ az storage entity merge \ --table-name mytable \ --entity PartitionKey=pk1 RowKey=rk1 Age=31 ``` +{% endcode %} +{% endtab %} +{% tab title="PowerShell" %} +{% code overflow="wrap" %} +```powershell +# Get storage accounts +Get-AzStorageAccount + +# List tables +Get-AzStorageTable -Context (Get-AzStorageAccount -Name -ResourceGroupName ).Context +``` +{% endcode %} +{% endtab %} +{% endtabs %} {% hint style="info" %} By default `az` cli will use an account key to sign a key and perform the action. To use the Entra ID principal privileges use the parameters `--auth-mode login`.