mirror of
https://github.com/HackTricks-wiki/hacktricks-cloud.git
synced 2025-12-12 15:50:19 -08:00
Update az-table-storage.md
This commit is contained in:
@@ -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 <mystorageaccount> -ResourceGroupName <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`.
|
||||
|
||||
Reference in New Issue
Block a user