Skip to content

Commit 05a101d

Browse files
Merge pull request #237446 from AbhishekMallick01/May-9-2023-QS
QS - Freshness - Article updates
2 parents fa92db2 + 88e6778 commit 05a101d

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

articles/backup/backup-azure-dataprotection-use-rest-api-create-update-disk-policy.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
---
22
title: Create backup policies for disks using data protection REST API
33
description: In this article, you'll learn how to create and manage backup policies for disks using REST API.
4-
ms.topic: conceptual
5-
ms.date: 10/06/2021
4+
ms.topic: how-to
5+
ms.date: 05/10/2023
66
ms.assetid: ecc107c0-311c-42d0-a094-654d7ee30443
77
ms.service: backup
88
author: jyothisuri
99
ms.author: jsuri
10+
ms.custom: engagement-fy23
1011
---
1112

1213
# Create Azure Data Protection backup policies for disks using REST API
1314

14-
A backup policy governs the retention and schedule of your backups. Azure Disk Backup offers multiple backups per day.
15+
This article describes how to create a backup policy via REST API.
1516

16-
You can reuse the backup policy to configure backup for multiple Azure Disks to a vault or [create a backup policy for an Azure Recovery Services vault using REST API](/rest/api/dataprotection/backup-policies/create-or-update).
17+
Azure Disk Backup offers a turnkey solution that provides snapshot lifecycle management for managed disks by automating periodic creation of snapshots and retaining it for configured duration using backup policy. You can manage the disk snapshots with zero infrastructure cost and without the need for custom scripting or any management overhead. This is a crash-consistent backup solution that takes point-in-time backup of a managed disk using incremental snapshots with support for multiple backups per day. It's also an agent-less solution and doesn't impact production application performance. It supports backup and restore of both OS and data disks (including shared disks), whether or not they're currently attached to a running Azure virtual machine.
18+
19+
The backup policy helps to govern the retention and schedule of your backups. The backup policy offers multiple backups per day. You can reuse the backup policy to configure backup for multiple Azure Disks to a vault or [create a backup policy for an Azure Recovery Services vault using REST API](/rest/api/dataprotection/backup-policies/create-or-update).
1720

1821
To create a policy for backing up disks, perform the following actions:
1922

2023
## Create a policy
2124

22-
>[!IMPORTANT]
23-
>Currently, updating or modifying an existing policy isn't supported. Alternatively, you can create a new policy with the required details and assign it to the relevant backup instance.
24-
2525
To create an Azure Backup policy, use the following *PUT* operation:
2626

2727
```http
@@ -30,7 +30,10 @@ PUT https://management.azure.com/Subscriptions/{subscriptionId}/resourceGroups/{
3030

3131
The `{policyName}` and `{vaultName}` are provided in the URI. Additional information is provided in the request body.
3232

33-
## Create the request body
33+
>[!IMPORTANT]
34+
>Currently, updating or modifying an existing policy isn't supported. Alternatively, you can create a new policy with the required details and assign it to the relevant backup instance.
35+
36+
### Create the request body
3437

3538
For example, to create a policy for Disk backup, the request body needs the following components:
3639

@@ -40,7 +43,7 @@ For example, to create a policy for Disk backup, the request body needs the foll
4043

4144
For the complete list of definitions in the request body, refer to the [backup policy REST API document](/rest/api/dataprotection/backup-policies/create-or-update).
4245

43-
### Example request body
46+
**Example request body**
4447

4548
The policy says:
4649

@@ -116,15 +119,15 @@ The time required for completing the backup operation depends on various factors
116119

117120
To know more details about policy creation, refer to the [Azure Disk Backup policy](backup-managed-disks.md#create-backup-policy) document.
118121

119-
## Responses
122+
### Responses
120123

121124
The backup policy creation/update is a synchronous operation and returns OK once the operation is successful.
122125

123126
|Name |Type |Description |
124127
|---------|---------|---------|
125128
|200 OK | [BaseBackupPolicyResource](/rest/api/dataprotection/backup-policies/create-or-update#basebackuppolicyresource) | OK |
126129

127-
### Example responses
130+
**Example responses**
128131

129132
Once the operation completes, it returns 200 (OK) with the policy content in the response body.
130133

0 commit comments

Comments
 (0)