Update az-table-storage.md

This commit is contained in:
Jaime Polop
2024-12-13 01:45:01 +01:00
committed by GitHub
parent 7a372d9414
commit 18edc519c9

View File

@@ -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`.