Skip to content

Commit 0417edc

Browse files
Blob backup - Configure backup CLI command update
1 parent 8430e4f commit 0417edc

File tree

1 file changed

+56
-25
lines changed

1 file changed

+56
-25
lines changed

includes/blob-backup-prepare-request-cli.md

Lines changed: 56 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: AbhishekMallick-MS
33
ms.service: azure-backup
44
ms.topic: include
5-
ms.date: 07/02/2024
5+
ms.date: 07/08/2025
66
ms.author: v-abhmallick
77
---
88

@@ -19,47 +19,78 @@ Once all the relevant permissions are set, configure the blob backup by running
1919
2020
```azurecli-interactive
2121
az dataprotection backup-instance create -g testBkpVaultRG --vault-name TestBkpVault --backup-instance backup_instance.json
22+
```
23+
2224
23-
The following JSON configures a blob backup for a specified storage account with specified policy and container list.
25+
```
2426
{
27+
2528
"backup_instance_name": "sample-backup-instance",
29+
2630
"properties": {
31+
2732
"data_source_info": {
33+
2834
"datasource_type": "Microsoft.Storage/storageAccounts/blobServices",
35+
2936
"object_type": "BlobBackupDatasourceParameters",
30-
"resource_id": "/subscriptions//resourceGroups//providers/Microsoft.Storage/storageAccounts/",
31-
"resource_location": "",
32-
"resource_name": "",
37+
38+
"resource_id": "/subscriptions/XXXX/resourceGroups/BCDR-RG/providers/Microsoft.Storage/storageAccounts/dptestoct23",
39+
40+
"resource_location": "eastus",
41+
42+
"resource_name": "dptestoct23",
43+
3344
"resource_type": "Microsoft.Storage/storageAccounts",
34-
"resource_uri": "/subscriptions//resourceGroups//providers/Microsoft.Storage/storageAccounts/"
45+
46+
"resource_uri": "/subscriptions/XXXX/resourceGroups/BCDR-RG/providers/Microsoft.Storage/storageAccounts/dptestoct23"
47+
3548
},
49+
3650
"data_source_set_info": null,
51+
3752
"datasource_auth_credentials": null,
38-
"friendly_name": "",
53+
54+
"friendly_name": "dptest23",
55+
3956
"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-
}
5557
58+
"policyInfo": {
5659
57-
{
60+
"policyId": "/subscriptions/XXXX/resourceGroups/BCDR-RG/providers/Microsoft.DataProtection/backupVaults/DPBCDR-BV-EastUS/backupPolicies/blobbackup-1",
5861
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":
62+
"policyVersion": "",
6063
61-
```
64+
"policyParameters": {
65+
66+
"backupDatasourceParametersList": [
67+
68+
{
69+
70+
"objectType": "BlobBackupDatasourceParameters",
71+
72+
"containersList": [
73+
74+
"cont1",
75+
76+
"cont2"
77+
78+
]
6279
80+
}
81+
82+
]
83+
84+
}
85+
86+
}
87+
88+
}
89+
90+
}
91+
92+
93+
```
6394
6495
> [!IMPORTANT]
6596
> 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

Comments
 (0)