|
2 | 2 | author: AbhishekMallick-MS
|
3 | 3 | ms.service: azure-backup
|
4 | 4 | ms.topic: include
|
5 |
| -ms.date: 07/02/2024 |
| 5 | +ms.date: 07/08/2025 |
6 | 6 | ms.author: v-abhmallick
|
7 | 7 | ---
|
8 | 8 |
|
9 | 9 | Once all the relevant permissions are set, configure the blob backup by running the following commands:
|
10 | 10 |
|
11 |
| -1. Prepare the relevant request by using the relevant vault, policy, storage account using the [az dataprotection backup-instance initialize](/cli/azure/dataprotection/backup-instance#az-dataprotection-backup-instance-initialize) command. |
| 11 | +1. Prepare the relevant request by using the relevant vault, policy, storage account using the [`az dataprotection backup-instance initialize`](/cli/azure/dataprotection/backup-instance#az-dataprotection-backup-instance-initialize) command. |
12 | 12 |
|
13 | 13 |
|
14 | 14 | ```azurecli-interactive
|
15 | 15 | az dataprotection backup-instance initialize --datasource-type AzureBlob -l southeastasia --policy-id "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/backupPolicies/BlobBackup-Policy" --datasource-id "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourcegroups/blobrg/providers/Microsoft.Storage/storageAccounts/CLITestSA" > backup_instance.json
|
16 | 16 | ```
|
17 | 17 |
|
18 |
| -2. Submit the request using the [az dataprotection backup-instance create](/cli/azure/dataprotection/backup-instance#az-dataprotection-backup-instance-create) command. |
| 18 | +2. Submit the request using the [`az dataprotection backup-instance create`](/cli/azure/dataprotection/backup-instance#az-dataprotection-backup-instance-create) command. |
19 | 19 |
|
20 | 20 | ```azurecli-interactive
|
21 | 21 | az dataprotection backup-instance create -g testBkpVaultRG --vault-name TestBkpVault --backup-instance backup_instance.json
|
| 22 | + ``` |
| 23 | +
|
| 24 | + The following JSON configures a blob backup for a specified storage account with specified policy and container list. |
22 | 25 |
|
23 |
| - The following JSON configures a blob backup for a specified storage account with specified policy and container list. |
| 26 | + ```JSON |
24 | 27 | {
|
| 28 | +
|
25 | 29 | "backup_instance_name": "sample-backup-instance",
|
| 30 | +
|
26 | 31 | "properties": {
|
| 32 | +
|
27 | 33 | "data_source_info": {
|
| 34 | +
|
28 | 35 | "datasource_type": "Microsoft.Storage/storageAccounts/blobServices",
|
| 36 | +
|
29 | 37 | "object_type": "BlobBackupDatasourceParameters",
|
30 |
| - "resource_id": "/subscriptions//resourceGroups//providers/Microsoft.Storage/storageAccounts/", |
31 |
| - "resource_location": "", |
32 |
| - "resource_name": "", |
| 38 | +
|
| 39 | + "resource_id": "/subscriptions/XXXX/resourceGroups/BCDR-RG/providers/Microsoft.Storage/storageAccounts/dptestoct23", |
| 40 | +
|
| 41 | + "resource_location": "eastus", |
| 42 | +
|
| 43 | + "resource_name": "dptestoct23", |
| 44 | +
|
33 | 45 | "resource_type": "Microsoft.Storage/storageAccounts",
|
34 |
| - "resource_uri": "/subscriptions//resourceGroups//providers/Microsoft.Storage/storageAccounts/" |
| 46 | +
|
| 47 | + "resource_uri": "/subscriptions/XXXX/resourceGroups/BCDR-RG/providers/Microsoft.Storage/storageAccounts/dptestoct23" |
| 48 | +
|
35 | 49 | },
|
| 50 | +
|
36 | 51 | "data_source_set_info": null,
|
| 52 | +
|
37 | 53 | "datasource_auth_credentials": null,
|
38 |
| - "friendly_name": "", |
| 54 | +
|
| 55 | + "friendly_name": "dptest23", |
| 56 | +
|
39 | 57 | "object_type": "BackupInstance",
|
40 |
| - "policy_info": { |
41 |
| - "policyId": "/subscriptions//resourceGroups//providers/Microsoft.DataProtection/backupVaults//backupPolicies/", |
42 |
| - "policyParameters": { |
43 |
| - "backupDatasourceParametersList": [ |
44 |
| - { |
45 |
| - "objectType": "BlobBackupDatasourceParameters", |
46 |
| - "containersList": [ |
47 |
| - "" |
48 |
| - ] |
49 |
| - } |
50 |
| - ] |
51 |
| - } |
52 |
| - } |
53 |
| - } |
54 |
| - } |
55 | 58 |
|
| 59 | + "policyInfo": { |
56 | 60 |
|
57 |
| - { |
| 61 | + "policyId": "/subscriptions/XXXX/resourceGroups/BCDR-RG/providers/Microsoft.DataProtection/backupVaults/DPBCDR-BV-EastUS/backupPolicies/blobbackup-1", |
58 | 62 |
|
59 |
| - "id": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/backupInstances/CLITestSA-CLITestSA-aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e", "name": "CLITestSA-CLITestSA-aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e", "properties": |
| 63 | + "policyVersion": "", |
60 | 64 |
|
61 |
| - ``` |
| 65 | + "policyParameters": { |
| 66 | +
|
| 67 | + "backupDatasourceParametersList": [ |
| 68 | +
|
| 69 | + { |
| 70 | +
|
| 71 | + "objectType": "BlobBackupDatasourceParameters", |
| 72 | +
|
| 73 | + "containersList": [ |
| 74 | +
|
| 75 | + "cont1", |
| 76 | +
|
| 77 | + "cont2" |
| 78 | +
|
| 79 | + ] |
62 | 80 |
|
| 81 | + } |
| 82 | +
|
| 83 | + ] |
| 84 | +
|
| 85 | + } |
| 86 | +
|
| 87 | + } |
| 88 | +
|
| 89 | + } |
| 90 | +
|
| 91 | + } |
| 92 | +
|
| 93 | + |
| 94 | + ``` |
63 | 95 |
|
64 | 96 | > [!IMPORTANT]
|
65 | 97 | > Once a storage account is configured for blobs backup, a few capabilities, such as change feed and delete lock are affected. [Learn more](../articles/backup/blob-backup-configure-manage.md?tabs=vaulted-backup#effects-on-backed-up-storage-accounts).
|
0 commit comments