Skip to content

Commit 04c96b3

Browse files
committed
Incorporating review comments
1 parent 59b9df4 commit 04c96b3

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

articles/backup/backup-azure-arm-userestapi-updatersvaultproperties.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,35 @@ ms.assetid: 9aafa5a0-1e57-4644-bf79-97124db27aa2
77
---
88
# Update Azure Recovery Services Vault configurations using REST API
99

10+
This article describes how to update backup related configurations in Azure Recovery Services vault using REST API.
11+
1012
## Soft delete state
1113

12-
Deleting backups of a protected item is significant operation that has to be monitored. To protect against accidental deletions, Azure Recovery services vault has a soft-delete capability. This capability allows customers to restore deleted backups, if necessary, within a time period after the deletion.
14+
Deleting backups of a protected item is a significant operation that has to be monitored. To protect against accidental deletions, Azure Recovery Services vault has a soft-delete capability. This capability allows customers to restore deleted backups, if necessary, within a time period after the deletion.
1315

14-
But there are scenarios in which this capability is not required. A Recovery Services vault cannot be deleted if there are backup items within it, even soft-deleted ones. This may pose a problem if the vault needs to be immediately deleted. For for example: often, deployment operations clean up the created resources in the same workflow. A deployment can create a vault, configure backups for an item, do a test restore and then proceed to delete the backup items and the vault. If the vault deletion fails, the entire deployment might fail. Disabling soft-delete is the only way to guarantee immediate deletion.
16+
But there are scenarios in which this capability is not required. An Azure Recovery Services vault cannot be deleted if there are backup items within it, even soft-deleted ones. This may pose a problem if the vault needs to be immediately deleted. For for example: deployment operations often clean up the created resources in the same workflow. A deployment can create a vault, configure backups for an item, do a test restore and then proceed to delete the backup items and the vault. If the vault deletion fails, the entire deployment might fail. Disabling soft-delete is the only way to guarantee immediate deletion.
1517

1618
Hence, the customer needs to carefully choose whether or not to disable soft-delete for a particular vault depending on the scenario. For more information, see the [soft-delete article](backup-azure-security-feature-cloud.md#soft-delete).
1719

1820
### Fetch soft delete state using REST API
1921

20-
By default, the soft-delete state will be enabled for any newly created Recovery services vault. To fetch/update the state of soft-delete for a vault, use the backup vault's config related [REST API document](https://docs.microsoft.com/rest/api/backup/backupresourcevaultconfigs)
22+
By default, the soft-delete state will be enabled for any newly created Recovery Services vault. To fetch/update the state of soft-delete for a vault, use the backup vault's config related [REST API document](https://docs.microsoft.com/rest/api/backup/backupresourcevaultconfigs)
2123

2224
To fetch the current state of soft-delete for a vault, use the following *GET* operation
2325

2426
```http
2527
GET https://management.azure.com/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig?api-version=2019-05-13
2628
```
2729

28-
The GET URI has `{subscriptionId}`, `{vaultName}`, `{vaultresourceGroupName}` parameters. Let us take an example, `{vaultName}` is "testVault" and `{vaultresourceGroupName}` is "testVaultRG". As all the required parameters are given in the URI, there is no need for a separate request body.
30+
The GET URI has `{subscriptionId}`, `{vaultName}`, `{vaultresourceGroupName}` parameters. In this example, `{vaultName}` is "testVault" and `{vaultresourceGroupName}` is "testVaultRG". As all the required parameters are given in the URI, there is no need for a separate request body.
2931

3032
```http
3133
GET https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testVaultRG/providers/Microsoft.RecoveryServices/vaults/testVault/backupconfig/vaultconfig?api-version=2019-05-13
3234
```
3335

3436
#### Responses
3537

36-
The successful responses for the 'GET' operation is shown below:
38+
The successful response for the 'GET' operation is shown below:
3739

3840
|Name |Type |Description |
3941
|---------|---------|---------|
@@ -63,7 +65,7 @@ To update the soft-delete state of the recovery services vault using REST API, u
6365
PATCH https://management.azure.com/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig?api-version=2019-05-13
6466
```
6567

66-
The PATCH URI has `{subscriptionId}`, `{vaultName}`, `{vaultresourceGroupName}` parameters. Let us take an example, `{vaultName}` is "testVault" and `{vaultresourceGroupName}` is "testVaultRG". If we replace the URI with above values, then the URI will look like this.
68+
The PATCH URI has `{subscriptionId}`, `{vaultName}`, `{vaultresourceGroupName}` parameters. In this example, `{vaultName}` is "testVault" and `{vaultresourceGroupName}` is "testVaultRG". If we replace the URI with the values above, then the URI will look like this.
6769

6870
```http
6971
PATCH https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testVaultRG/providers/Microsoft.RecoveryServices/vaults/testVault/backupconfig/vaultconfig?api-version=2019-05-13
@@ -97,7 +99,7 @@ The following example is used to update the soft-delete sate to 'disabled'.
9799

98100
#### Responses
99101

100-
The successful responses for the 'PATCH' operation is shown below:
102+
The successful response for the 'PATCH' operation is shown below:
101103

102104
|Name |Type |Description |
103105
|---------|---------|---------|

0 commit comments

Comments
 (0)