Skip to content

Commit 038d739

Browse files
authored
Merge pull request #185232 from v-amallick/master
SQL on-demand backup retention period - PS parameter update
2 parents 30e83d0 + 341f8b0 commit 038d739

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

articles/backup/backup-azure-sql-automation.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
title: SQL DB in Azure VM backup & restore via PowerShell
33
description: Back up and restore SQL Databases in Azure VMs using Azure Backup and PowerShell.
44
ms.topic: conceptual
5-
ms.date: 06/30/2021
5+
ms.date: 01/17/2022
66
ms.assetid: 57854626-91f9-4677-b6a2-5d12b6a866e1
77
ms.custom: devx-track-azurepowershell
8+
author: v-amallick
9+
ms.service: backup
10+
ms.author: v-amallick
811
---
912

1013
# Back up and restore SQL databases in Azure VMs with PowerShell
@@ -581,7 +584,7 @@ Once backup has been enabled for a DB, you can also trigger an on-demand backup
581584

582585
```powershell
583586
$bkpItem = Get-AzRecoveryServicesBackupItem -BackupManagementType AzureWorkload -WorkloadType MSSQL -Name "<backup item name>" -VaultId $testVault.ID
584-
$endDate = (Get-Date).AddDays(60).ToUniversalTime()
587+
$endDate = (Get-Date).AddDays(45).ToUniversalTime()
585588
Backup-AzRecoveryServicesBackupItem -Item $bkpItem -BackupType Full -EnableCompression -VaultId $testVault.ID -ExpiryDateTimeUTC $endDate
586589
```
587590

0 commit comments

Comments
 (0)