Skip to content

Commit dec6bed

Browse files
authored
Merge pull request #291077 from AbhishekMallick-MS/Nov-26-2024-Blob
Blobs backup - Update Backup instance updates
2 parents 9f85cb8 + 77e75e0 commit dec6bed

File tree

5 files changed

+43
-2
lines changed

5 files changed

+43
-2
lines changed

articles/backup/backup-blobs-storage-account-cli.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Back up Azure Blobs using Azure CLI
33
description: Learn how to back up Azure Blobs using Azure CLI.
44
ms.topic: how-to
55
ms.custom: devx-track-azurecli
6-
ms.date: 07/24/2024
6+
ms.date: 11/26/2024
77
author: AbhishekMallick-MS
88
ms.author: v-abhmallick
99
---
@@ -241,6 +241,16 @@ Once all the relevant permissions are set, configure the backup by running the f
241241
> [!IMPORTANT]
242242
> Once a storage account is configured for blobs backup, a few capabilities such as change feed and delete lock are affected. [Learn more](blob-backup-configure-manage.md#effects-on-backed-up-storage-accounts).
243243
244+
## Update a backup instance
245+
246+
After you have configured the backup, you can change the associated policy with a backup instance. For vaulted backups, you can also change the containers selected for backup.
247+
248+
To update the backup instance, run the following command:
249+
250+
1. Validate if the backup instance is ready for configuring backup by using the [az dataprotection backup-instance validate-for-backup](/cli/azure/dataprotection/backup-instance?view=azure-cli-latest&preserve-view=true#az-dataprotection-backup-instance-validate-for-backup) command . The command fails if the backup instance isn't ready.
251+
1. Change the Backup policy used for backing up the Azure Blobs by using the [az dataprotection backup-instance update](/cli/azure/dataprotection/backup-instance?view=azure-cli-latest&preserve-view=true#az-dataprotection-backup-instance-update-policy). Specify the relevant backup item and the new backup policy.
252+
253+
244254
## Next steps
245255
246256
[Restore Azure Blobs using Azure CLI](restore-blobs-storage-account-cli.md)

articles/backup/backup-blobs-storage-account-ps.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Back up Azure blobs within a storage account using Azure PowerShell
33
description: Learn how to back up all Azure blobs within a storage account using Azure PowerShell.
44
ms.topic: how-to
55
ms.custom: devx-track-azurepowershell
6-
ms.date: 07/24/2024
6+
ms.date: 11/27/2024
77
author: AbhishekMallick-MS
88
ms.author: v-abhmallick
99
---
@@ -144,6 +144,19 @@ blobrg-PSTestSA-3df6ac08-9496-4839-8fb5-8b78e594f166 Microsoft.DataProtection/ba
144144

145145
---
146146

147+
## Update a backup instance
148+
149+
After you have configured the backup, you can change the associated policy with a backup instance. For vaulted backups, you can also change the containers selected for backup.
150+
151+
To update the backup instance, run the following cmdlets:
152+
153+
1. Validate if the backup instance is ready for configuring backup using the [Test-AzDataProtectionBackupInstanceReadiness](/powershell/module/az.dataprotection/test-azdataprotectionbackupinstancereadiness?view=azps-13.0.0&preserve-view=true) command. The command fails if the backup instance is not ready.
154+
155+
You can also use this command to check if the backup vault has all the necessary permissions to configure backup.
156+
157+
1. Change the policy used for backing up the Azure Blobs by using the [Update-AzDataProtectionBackupInstance](/powershell/module/az.dataprotection/update-azdataprotectionbackupinstance?view=azps-13.0.0&preserve-view=true). Specify the relevant backup item and the new backup policy.
158+
159+
147160
## Next steps
148161

149162
[Restore Azure blobs using Azure PowerShell](restore-blobs-storage-account-ps.md)

articles/backup/blob-backup-configure-manage.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,24 @@ To stop backup for a storage account, follow these steps:
186186

187187
After stopping backup, you can disable other storage data protection capabilities (enabled for configuring backups) from the data protection blade of the storage account.
188188

189+
## Update the backup instance
190+
191+
After you have configured the backup, you can change the associated policy with a backup instance. For vaulted backups, you can even change the containers selected for backup.
192+
To update the backup instance, follow these steps:
193+
194+
1. Go to the **Backup vault** dashboard.
195+
1. On the **Backup Items** tile, select **Azure Blobs (Azure Storage)** as the datasource type.
196+
1. On the **Backup instance** blade, select the backup instance for which you want to change the Backup policy, and then select **Edit backup instance**.
197+
198+
:::image type="content" source="./media/blob-backup-configure-manage/edit-backup-instance.png" alt-text="Screenshot shows how to edit a backup instance." lightbox="./media/blob-backup-configure-manage/edit-backup-instance.png":::
199+
200+
1. Select the new policy that you want to apply to the storage account blobs.
201+
202+
:::image type="content" source="./media/blob-backup-configure-manage/change-backup-policy.png" alt-text="Screenshot shows how to change a backup policy." lightbox="./media/blob-backup-configure-manage/change-backup-policy.png":::
203+
204+
1. Select **Save**.
205+
206+
189207

190208
## Next steps
191209

36.2 KB
Loading
79.7 KB
Loading

0 commit comments

Comments
 (0)