Skip to content

Commit 65dac58

Browse files
Smaer Tiering GA release - Doc updates
1 parent d89749f commit 65dac58

File tree

1 file changed

+113
-4
lines changed

1 file changed

+113
-4
lines changed

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

Lines changed: 113 additions & 4 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: 09/12/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,14 +29,14 @@ 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

3434
You can automatically move all eligible/recommended recovery points to vault-archive by configuring the required settings in the backup policy.
3535

3636
>[!Note]
37-
>This feature is currently in preview. Enable your subscription to use this feature.
37+
>Enable your subscription to use this feature.
3838
39-
### Enable a subscription for Smart Tiering (preview)
39+
### Enable a subscription for Smart Tiering
4040

4141
To enable a subscription, follow these steps:
4242

@@ -347,6 +347,115 @@ You can perform the following operations using the sample scripts provided by Az
347347

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

350+
## Enable Smart Tiering to Vault-archive using a backup policy.
351+
352+
You can automatically move all eligible/ recommended recovery points to vault-archive using backup policy.
353+
354+
To enable Smart Tiering, see the following sections.
355+
356+
### Create a policy
357+
358+
To create and configure a policy, run the following cmdlets:
359+
360+
1. Fetch the vault name:
361+
362+
```azurepowershell
363+
$vault = Get-AzRecoveryServicesVault -ResourceGroupName "testRG" -Name "TestVault"
364+
```
365+
366+
1. Set the policy schedule:
367+
368+
```azurepowershell
369+
$schPol = Get-AzRecoveryServicesBackupSchedulePolicyObject -WorkloadType AzureVM -BackupManagementType AzureVM -PolicySubType Enhanced -ScheduleRunFrequency Weekly
370+
```
371+
372+
1. Set long-term retention point retention:
373+
374+
```azurepowershell
375+
$retPol = Get-AzRecoveryServicesBackupRetentionPolicyObject -WorkloadType AzureVM -BackupManagementType AzureVM -ScheduleRunFrequency Weekly
376+
```
377+
378+
### Configure Smart Tiering
379+
380+
You can now configure Smart Tiering to move recovery points to Vault-archive and retain them using the backup policy. To do so, see the following section:
381+
382+
#### Tier recommended recovery points for Azure Virtual Machines
383+
384+
To tier all recommended recovery points to Vault-archive, run the following cmdlet:
385+
386+
```azurepowershell
387+
$pol = New-AzRecoveryServicesBackupProtectionPolicy -Name TestPolicy -WorkloadType AzureVM -BackupManagementType AzureVM -RetentionPolicy $retPol -SchedulePolicy $schPol -VaultId $vault.ID -MoveToArchiveTier $true -TieringMode TierRecommended
388+
```
389+
[Learn more](archive-tier-support.md#archive-recommendations-only-for-azure-virtual-machines) about archive recommendations for Azure VMs.
390+
391+
If the policy doesn't match the Vault-Archive criteria, the following error appears:
392+
393+
```error
394+
New-AzRecoveryServicesBackupProtectionPolicy: TierAfterDuration needs to be >= 3 months, at least one of monthly or yearly retention should be >= (TierAfterDuration + 6) months
395+
```
396+
>[!Note]
397+
>Tier recommended is supported for Azure Virtual Machines only, and not for SQL Server in Azure Virtual Machines.
398+
399+
#### Tier all eligible Azure Virtual Machines backup item
400+
401+
To tier all your eligible recovery points to Vault-archive, specify the number of months after which you want to move the recovery points and run the following cmdlet:
402+
403+
```azurepowershell
404+
$pol = New-AzRecoveryServicesBackupProtectionPolicy -Name hiagaVMArchiveTierAfter -WorkloadType AzureVM -BackupManagementType AzureVM -RetentionPolicy $retPol -SchedulePolicy $schPol -VaultId $vault.ID -MoveToArchiveTier $true -TieringMode TierAllEligible -TierAfterDuration 3 -TierAfterDurationType Months
405+
```
406+
407+
>[!Note]
408+
>- The number of months must range from *3* to *( Retention - 6)* months.
409+
>- This can increase your overall costs.
410+
411+
412+
#### Tier all eligible for SQL Server in Azure VM backup item
413+
414+
This tier all your eligible recovery points to Vault-archive, specify the number of days after which you want to move your eligible recovery points and run the following cmdlet:
415+
416+
The number of days ranges from 45 to (Retention – 180 ) days.
417+
418+
```azurepowershell
419+
$pol = New-AzRecoveryServicesBackupProtectionPolicy -Name SQLArchivePolicy -WorkloadType MSSQL -BackupManagementType AzureWorkload -RetentionPolicy $retPol -SchedulePolicy $schPol -VaultId $vault.ID -MoveToArchiveTier $true -TieringMode TierAllEligible -TierAfterDuration 40 -TierAfterDurationType Days
420+
```
421+
422+
If the policy isn't eligible for Vault-archive, the following error appears:
423+
424+
```error
425+
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
426+
```
427+
## Modify a policy
428+
429+
To modify an existing policy, run the following cmdlet:
430+
431+
```azurepowershell
432+
$pol = Get-AzRecoveryServicesBackupProtectionPolicy -VaultId $vault.ID | Where { $_.Name -match "Archive" }
433+
```
434+
435+
## Disable Smart Tiering
436+
437+
To disable Smart Tiering to archive recovery point, run the following cmdlet:
438+
439+
```azurepowershell
440+
Set-AzRecoveryServicesBackupProtectionPolicy -VaultId $vault.ID -Policy $pol[0] -MoveToArchiveTier $false
441+
```
442+
443+
### Enable Smart Tiering
444+
445+
To enable Smart Tiering after disablement, run the required cmdlet:
446+
447+
**Azure Virtual Machine**
448+
449+
```azurepowershell
450+
Set-AzRecoveryServicesBackupProtectionPolicy -VaultId $vault.ID -Policy $pol[0] -MoveToArchiveTier $true -TieringMode TierRecommended
451+
```
452+
453+
**Azure SQL Server in Azure VMs**
454+
455+
```azurepowershell
456+
Set-AzRecoveryServicesBackupProtectionPolicy -VaultId $vault.ID -Policy $pol[1] -MoveToArchiveTier $true -TieringMode TierAllEligible -TierAfterDuration 45 -TierAfterDurationType Days
457+
```
458+
350459
## Next steps
351460

352461
- Use Archive tier support via [Azure portal](?pivots=client-portaltier)/[CLI](?pivots=client-clitier).

0 commit comments

Comments
 (0)