Skip to content

Commit ebb8784

Browse files
authored
Merge pull request #124119 from vandriot/main
Update soft-delete-container-enable.md
2 parents 63b6dfa + 852ee3f commit ebb8784

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

articles/storage/blobs/soft-delete-container-enable.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ Enable-AzStorageContainerDeleteRetentionPolicy -ResourceGroupName <resource-grou
4242
-RetentionDays 7
4343
```
4444

45+
To check the current settings for container soft delete, call the [Get-AzStorageBlobServiceProperty](/powershell/module/az.storage/get-azstorageblobserviceproperty) command:
46+
47+
```azurepowershell
48+
$properties = Get-AzStorageBlobServiceProperty -ResourceGroupName <resource-group> `
49+
-StorageAccountName <storage-account>
50+
$properties.ContainerDeleteRetentionPolicy.Enabled
51+
$properties.ContainerDeleteRetentionPolicy.Days
52+
```
53+
4554
To disable container soft delete, call the **Disable-AzStorageContainerDeleteRetentionPolicy** command.
4655

4756
# [Azure CLI](#tab/azure-cli)
@@ -56,6 +65,13 @@ az storage account blob-service-properties update \
5665
--resource-group <resource_group>
5766
```
5867

68+
To check the current settings for container soft delete, call the [az storage account blob-service-properties show](/cli/azure/storage/account/blob-service-properties#az-storage-account-blob-service-properties-show) command:
69+
70+
```azurecli-interactive
71+
az storage account blob-service-properties show --account-name <storage-account> \
72+
--resource-group <resource-group>
73+
```
74+
5975
To disable container soft delete, specify `false` for the `--enable-container-delete-retention` parameter.
6076

6177
# [Template](#tab/template)

0 commit comments

Comments
 (0)