Skip to content

Commit 2fbdc12

Browse files
authored
Merge pull request #210799 from v-amallick/Sept-11-2022-SmartTier
Smart Tiering GA release - Doc updates
2 parents cbe65a1 + ed2f8b0 commit 2fbdc12

7 files changed

+118
-25
lines changed
99.8 KB
Loading
99.8 KB
Loading

articles/backup/use-archive-tier-support.md

Lines changed: 118 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Use Archive tier
33
description: Learn about using Archive tier Support for Azure Backup.
44
ms.topic: conceptual
5-
ms.date: 07/04/2022
5+
ms.date: 10/03/2022
66
ms.custom: devx-track-azurepowershell-azurecli, devx-track-azurecli
77
zone_pivot_groups: backup-client-portaltier-powershelltier-clitier
88
author: v-amallick
@@ -29,30 +29,9 @@ You can now view all the recovery points that are moved to archive.
2929

3030
:::image type="content" source="./media/use-archive-tier-support/view-recovery-points-list-inline.png" alt-text="Screenshot showing the list of recovery points." lightbox="./media/use-archive-tier-support/view-recovery-points-list-expanded.png":::
3131

32-
## Enable Smart Tiering to Vault-archive using a backup policy (preview)
32+
## Enable Smart Tiering to Vault-archive using a backup policy
3333

34-
You can automatically move all eligible/recommended recovery points to vault-archive by configuring the required settings in the backup policy.
35-
36-
>[!Note]
37-
>This feature is currently in preview. Enable your subscription to use this feature.
38-
39-
### Enable a subscription for Smart Tiering (preview)
40-
41-
To enable a subscription, follow these steps:
42-
43-
1. In the Azure portal, select the subscription you want to enable.
44-
45-
1. Select **Preview Features** in the left pane.
46-
47-
:::image type="content" source="./media/use-archive-tier-support/select-preview-feature-inline.png" alt-text="Screenshot showing to select the Preview Feature option." lightbox="./media/use-archive-tier-support/select-preview-feature-expanded.png":::
48-
49-
1. Select **Smart Tiering for Azure Backup**.
50-
51-
:::image type="content" source="./media/use-archive-tier-support/select-smart-tiering-for-archive-inline.png" alt-text="Screenshot showing to select Smart Tiering for Archive option." lightbox="./media/use-archive-tier-support/select-smart-tiering-for-archive-expanded.png":::
52-
53-
1. Select **Register**.
54-
55-
The subscription gets enabled for Smart Tiering in a few minutes.
34+
You can automatically move all eligible/recommended recovery points to Vault-archive by configuring the required settings in the backup policy.
5635

5736
### Enable Smart Tiering for Azure Virtual Machine
5837

@@ -347,10 +326,124 @@ You can perform the following operations using the sample scripts provided by Az
347326

348327
You can also write a script as per your requirements or modify the above sample scripts to fetch the required backup items.
349328

329+
## Enable Smart Tiering to Vault-archive using a backup policy.
330+
331+
You can automatically move all eligible/ recommended recovery points to vault-archive using a backup policy.
332+
333+
In the following sections, you'll learn how to enable Smart Tiering for eligible recovery points.
334+
335+
### Create a policy
336+
337+
To create and configure a policy, run the following cmdlets:
338+
339+
1. Fetch the vault name:
340+
341+
```azurepowershell
342+
$vault = Get-AzRecoveryServicesVault -ResourceGroupName "testRG" -Name "TestVault"
343+
```
344+
345+
1. Set the policy schedule:
346+
347+
```azurepowershell
348+
$schPol = Get-AzRecoveryServicesBackupSchedulePolicyObject -WorkloadType AzureVM -BackupManagementType AzureVM -PolicySubType Enhanced -ScheduleRunFrequency Weekly
349+
```
350+
351+
1. Set long-term retention point retention:
352+
353+
```azurepowershell
354+
$retPol = Get-AzRecoveryServicesBackupRetentionPolicyObject -WorkloadType AzureVM -BackupManagementType AzureVM -ScheduleRunFrequency Weekly
355+
```
356+
357+
### Configure Smart Tiering
358+
359+
You can now configure Smart Tiering to move recovery points to Vault-archive and retain them using the backup policy.
360+
361+
>[!Note]
362+
>After configuration, Smart Tiering is automatically enabled and moves the recovery points to Vault-archive.
363+
364+
#### Tier recommended recovery points for Azure Virtual Machines
365+
366+
To tier all recommended recovery points to Vault-archive, run the following cmdlet:
367+
368+
```azurepowershell
369+
$pol = New-AzRecoveryServicesBackupProtectionPolicy -Name TestPolicy -WorkloadType AzureVM -BackupManagementType AzureVM -RetentionPolicy $retPol -SchedulePolicy $schPol -VaultId $vault.ID -MoveToArchiveTier $true -TieringMode TierRecommended
370+
```
371+
372+
[Learn more](archive-tier-support.md#archive-recommendations-only-for-azure-virtual-machines) about archive recommendations for Azure VMs.
373+
374+
If the policy doesn't match the Vault-archive criteria, the following error appears:
375+
376+
```Output
377+
New-AzRecoveryServicesBackupProtectionPolicy: TierAfterDuration needs to be >= 3 months, at least one of monthly or yearly retention should be >= (TierAfterDuration + 6) months
378+
```
379+
>[!Note]
380+
>*Tier recommended* is supported for Azure Virtual Machines, and not for SQL Server in Azure Virtual Machines.
381+
382+
#### Tier all eligible Azure Virtual Machines backup items
383+
384+
To tier all eligible Azure VM recovery points to Vault-archive, specify the number of months after which you want to move the recovery points, and run the following cmdlet:
385+
386+
```azurepowershell
387+
$pol = New-AzRecoveryServicesBackupProtectionPolicy -Name hiagaVMArchiveTierAfter -WorkloadType AzureVM -BackupManagementType AzureVM -RetentionPolicy $retPol -SchedulePolicy $schPol -VaultId $vault.ID -MoveToArchiveTier $true -TieringMode TierAllEligible -TierAfterDuration 3 -TierAfterDurationType Months
388+
```
389+
390+
>[!Note]
391+
>- The number of months must range from *3* to *(Retention - 6)* months.
392+
>- Enabling Smart Tiering for eligible recovery points can increase your overall costs.
393+
394+
395+
#### Tier all eligible SQL Server in Azure VM backup items
396+
397+
To tier all eligible SQL Server in Azure VM recovery points to Vault-archive, specify the number of days after which you want to move the recovery points and run the following cmdlet:
398+
399+
```azurepowershell
400+
$pol = New-AzRecoveryServicesBackupProtectionPolicy -Name SQLArchivePolicy -WorkloadType MSSQL -BackupManagementType AzureWorkload -RetentionPolicy $retPol -SchedulePolicy $schPol -VaultId $vault.ID -MoveToArchiveTier $true -TieringMode TierAllEligible -TierAfterDuration 40 -TierAfterDurationType Days
401+
```
402+
403+
>[!Note]
404+
>The number of days must range from *45* to *(Retention – 180)* days.
405+
406+
If the policy isn't eligible for Vault-archive, the following error appears:
407+
408+
```Output
409+
New-AzRecoveryServicesBackupProtectionPolicy: TierAfterDuration needs to be >= 45 Days, at least one retention policy for full backup (daily / weekly / monthly / yearly) should be >= (TierAfter + 180) days
410+
```
411+
## Modify a policy
412+
413+
To modify an existing policy, run the following cmdlet:
414+
415+
```azurepowershell
416+
$pol = Get-AzRecoveryServicesBackupProtectionPolicy -VaultId $vault.ID | Where { $_.Name -match "Archive" }
417+
```
418+
419+
## Disable Smart Tiering
420+
421+
To disable Smart Tiering to archive recovery points, run the following cmdlet:
422+
423+
```azurepowershell
424+
Set-AzRecoveryServicesBackupProtectionPolicy -VaultId $vault.ID -Policy $pol[0] -MoveToArchiveTier $false
425+
```
426+
427+
### Enable Smart Tiering
428+
429+
To enable Smart Tiering after you've disable it, run the following cmdlet:
430+
431+
- **Azure Virtual Machine**
432+
433+
```azurepowershell
434+
Set-AzRecoveryServicesBackupProtectionPolicy -VaultId $vault.ID -Policy $pol[0] -MoveToArchiveTier $true -TieringMode TierRecommended
435+
```
436+
437+
- **Azure SQL Server in Azure VMs**
438+
439+
```azurepowershell
440+
Set-AzRecoveryServicesBackupProtectionPolicy -VaultId $vault.ID -Policy $pol[1] -MoveToArchiveTier $true -TieringMode TierAllEligible -TierAfterDuration 45 -TierAfterDurationType Days
441+
```
442+
350443
## Next steps
351444

352445
- Use Archive tier support via [Azure portal](?pivots=client-portaltier)/[CLI](?pivots=client-clitier).
353-
- [Troubleshoot Archive tier errors](troubleshoot-archive-tier.md)
446+
- [Troubleshoot Archive tier errors](troubleshoot-archive-tier.md).
354447

355448
::: zone-end
356449

0 commit comments

Comments
 (0)