Skip to content

Commit 1c07bbf

Browse files
Merge pull request #263759 from AbhishekMallick-MS/Jan-20-2024-Freshness
Freshness - SQL backup
2 parents 6c111f7 + 4d2251c commit 1c07bbf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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: 07/15/2022
5+
ms.date: 01/21/2024
66
ms.assetid: 57854626-91f9-4677-b6a2-5d12b6a866e1
77
ms.custom: devx-track-azurepowershell
88
ms.service: backup
@@ -102,7 +102,7 @@ The Recovery Services vault is a Resource Manager resource, so you must place it
102102
3. Specify the type of redundancy to use for the vault storage.
103103
104104
* You can use [locally redundant storage](../storage/common/storage-redundancy.md#locally-redundant-storage), [geo-redundant storage](../storage/common/storage-redundancy.md#geo-redundant-storage) or [zone-redundant storage](../storage/common/storage-redundancy.md#zone-redundant-storage) .
105-
* The following example sets the **-BackupStorageRedundancy** option for the [Set-AzRecoveryServicesBackupProperty](/powershell/module/az.recoveryservices/set-azrecoveryservicesbackupproperty) cmd for **testvault** set to **GeoRedundant**.
105+
* The following example sets the `-BackupStorageRedundancy` option for the [Set-AzRecoveryServicesBackupProperty](/powershell/module/az.recoveryservices/set-azrecoveryservicesbackupproperty) cmd for `testvault` set to `GeoRedundant`.
106106
107107
```powershell
108108
$vault1 = Get-AzRecoveryServicesVault -Name "testvault"
@@ -136,7 +136,7 @@ Store the vault object in a variable, and set the vault context.
136136
* Many Azure Backup cmdlets require the Recovery Services vault object as an input, so it's convenient to store the vault object in a variable.
137137
* The vault context is the type of data protected in the vault. Set it with [Set-AzRecoveryServicesVaultContext](/powershell/module/az.recoveryservices/set-azrecoveryservicesvaultcontext). After the context is set, it applies to all subsequent cmdlets.
138138

139-
The following example sets the vault context for **testvault**.
139+
The following example sets the vault context for `testvault`
140140

141141
```powershell
142142
Get-AzRecoveryServicesVault -Name "testvault" | Set-AzRecoveryServicesVaultContext
@@ -226,7 +226,7 @@ Now that we have the required SQL DB and the policy with which it needs to be ba
226226
Enable-AzRecoveryServicesBackupProtection -ProtectableItem $SQLDB -Policy $NewSQLPolicy
227227
```
228228

229-
The command waits until the configure backup is completed and returns the following output.
229+
The command waits until the backup configuration is completed and returns the following output.
230230

231231
```output
232232
WorkloadName Operation Status StartTime EndTime JobID
@@ -330,7 +330,7 @@ The above output means that you can restore to any point-in-time between the dis
330330
331331
### Determine recovery configuration
332332

333-
In the case of a SQL DB restore, the following restore scenarios are supported.
333+
For a SQL DB restore, the following restore scenarios are supported.
334334

335335
* Overriding the backed-up SQL DB with data from another recovery point - OriginalWorkloadRestore
336336
* Restoring the SQL DB as a new DB in the same SQL instance - AlternateWorkloadRestore
@@ -539,7 +539,7 @@ $PairedRegionVault = Get-AzRecoveryServicesVault -ResourceGroupName SecondaryRG
539539
$secContainer = Get-AzRecoveryServicesBackupContainer -ContainerType AzureVMAppContainer -Status Registered -VaultId $PairedRegionVault.ID -FriendlyName "secondaryVM"
540540
```
541541

542-
Once the registered container is chosen, then we fetch the SQL instances within the container to which the DB should be restored to. Here we assume that there is 1 SQL instance within the "secondaryVM" and we fetch that instance.
542+
Once the registered container is chosen, then we fetch the SQL instances within the container to which the database should be restored. Here we assume that there's 1 SQL instance within the "secondaryVM" and we fetch that instance.
543543

544544
```powershell
545545
$secSQLInstance = Get-AzRecoveryServicesBackupProtectableItem -WorkloadType MSSQL -ItemType SQLInstance -VaultId $PairedRegionVault.ID -Container $secContainer
@@ -606,15 +606,15 @@ If the output is lost or if you want to get the relevant Job ID, [get the list o
606606

607607
### Change policy for backup items
608608

609-
You can change the policy of the backed-up item from *Policy1* to *Policy2*. To switch policies for a backed-up item, fetch the relevant policy and back up item and use the [Enable-AzRecoveryServices](/powershell/module/az.recoveryservices/enable-azrecoveryservicesbackupprotection) command with backup item as the parameter.
609+
You can change the policy of the backed-up item from `Policy1` to `Policy2`. To switch policies for a backed-up item, fetch the relevant policy and back up item and use the [Enable-AzRecoveryServices](/powershell/module/az.recoveryservices/enable-azrecoveryservicesbackupprotection) command with backup item as the parameter.
610610

611611
```powershell
612612
$TargetPol1 = Get-AzRecoveryServicesBackupProtectionPolicy -Name <PolicyName>
613613
$anotherBkpItem = Get-AzRecoveryServicesBackupItem -WorkloadType MSSQL -BackupManagementType AzureWorkload -Name "<BackupItemName>"
614614
Enable-AzRecoveryServicesBackupProtection -Item $anotherBkpItem -Policy $TargetPol1
615615
```
616616

617-
The command waits until the configure backup is completed and returns the following output.
617+
The command waits until the backup configuration is completed and returns the following output.
618618

619619
```output
620620
WorkloadName Operation Status StartTime EndTime JobID

0 commit comments

Comments
 (0)