You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/backup/backup-blobs-storage-account-ps.md
+91-2Lines changed: 91 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Back up Azure blobs within a storage account using Azure PowerShell
3
3
description: Learn how to back up all Azure blobs within a storage account using Azure PowerShell.
4
4
ms.topic: how-to
5
5
ms.custom: devx-track-azurepowershell
6
-
ms.date: 11/27/2024
6
+
ms.date: 12/27/2024
7
7
author: AbhishekMallick-MS
8
8
ms.author: v-abhmallick
9
9
---
@@ -156,7 +156,96 @@ To update the backup instance, run the following cmdlets:
156
156
157
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
158
159
+
1. Update the policy or the new containers to existing backup items.
159
160
160
-
## Next steps
161
+
1. Create the storage account context by using the `New-AzStorageContext` cmdlet. Provide the `-UseConnectedAccount` parameter so that data operations are performed using your Microsoft Entra credentials. Learn more [about the storage account commands](/azure/storage/blobs/blob-containers-powershell#list-containers).
162
+
163
+
```azurepowershell
164
+
Create a context object using Azure AD credentials
1. Retrieve the storage containers using the `Get-AzStorageContainer` cmdlet. To retrieve a single container, provide the `-Name` parameter. To return a list of containers that begins with a given character string, specify a value for the `-Prefix` parameter.
170
+
171
+
The following example retrieves both an individual container and a list of container resources:
1. Fetch the backup policy with the name of vaulted-policy that you want to update in Backup Instance. You can also fetch the new policy that needs to be updated in Backup Instance.
0 commit comments