Skip to content

Commit cd54a4d

Browse files
author
David Curwin
committed
some changes
1 parent e1fa125 commit cd54a4d

File tree

3 files changed

+5
-20
lines changed

3 files changed

+5
-20
lines changed

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -268,19 +268,6 @@ On-demand backups can be used to retain your snapshots for 10 years. Schedulers
268268

269269
If you are looking for sample scripts, you can refer to the sample script on GitHub (<https://github.com/Azure-Samples/Use-PowerShell-for-long-term-retention-of-Azure-Files-Backup>) using Azure Automation runbook that enables you to schedule backups on a periodic basis and retain them even up to 10 years.
270270

271-
### Modify the protection policy
272-
273-
To change the policy used for backing up the Azure file share, use [Enable-AzRecoveryServicesBackupProtection](https://docs.microsoft.com/powershell/module/az.recoveryservices/enable-azrecoveryservicesbackupprotection?view=azps-1.4.0). Specify the relevant backup item and the new backup policy.
274-
275-
The following example changes the **testAzureFS** protection policy from **dailyafs** to **monthlyafs**.
276-
277-
```powershell
278-
$monthlyafsPol = Get-AzRecoveryServicesBackupProtectionPolicy -Name "monthlyafs"
279-
$afsContainer = Get-AzRecoveryServicesBackupContainer -FriendlyName "testStorageAcct" -ContainerType AzureStorage
280-
$afsBkpItem = Get-AzRecoveryServicesBackupItem -Container $afsContainer -WorkloadType AzureFiles -Name "testAzureFS"
281-
Enable-AzRecoveryServicesBackupProtection -Item $afsBkpItem -Policy $monthlyafsPol
282-
```
283-
284271
## Next steps
285272

286273
[Learn about](backup-afs.md) backing up Azure Files in the Azure portal.

articles/backup/manage-afs-powershell.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ $job.ErrorDetails
5252
1073871825 Microsoft Azure Backup encountered an internal error. Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.
5353
```
5454

55-
## Manage Azure File Shares backup
56-
57-
### Stop Protection on a file share
55+
## Stop protection on a file share
5856

5957
There are two ways to stop protecting Azure file shares:
6058

@@ -63,7 +61,7 @@ There are two ways to stop protecting Azure file shares:
6361

6462
There may be a cost associated with leaving the recovery points in storage, as the underlying snapshots created by Azure Backup will be retained. However, the benefit of leaving the recovery points is you can restore the file share later, if desired. For information about the cost of leaving the recovery points, see the [pricing details](https://azure.microsoft.com/pricing/details/storage/files/). If you choose to delete all recovery points, you can't restore the file share.
6563

66-
#### Stop Protection and retain recovery points
64+
## Stop protection and retain recovery points
6765

6866
To stop protection while retaining data, use the [Disable-AzRecoveryServicesBackupProtection](https://docs.microsoft.com/powershell/module/az.recoveryservices/disable-azrecoveryservicesbackupprotection?view=azps-3.3.0) cmdlet.
6967

@@ -83,7 +81,7 @@ afsfileshare DisableBackup Completed 1/26/2020 2:43:59 PM 1/26
8381

8482
The Job ID attribute in the output corresponds to the Job ID of the job that is created by the backup service for your “stop protection” operation. To track the status of the job, use the [Get-AzRecoveryServicesBackupJob](https://docs.microsoft.com/powershell/module/az.recoveryservices/get-azrecoveryservicesbackupjob?view=azps-3.3.0) cmdlet.
8583

86-
#### Stop Protection without retaining recovery points
84+
## Stop protection without retaining recovery points
8785

8886
To stop protection without retaining recovery points, use the [Disable-AzRecoveryServicesBackupProtection](https://docs.microsoft.com/powershell/module/az.recoveryservices/disable-azrecoveryservicesbackupprotection?view=azps-3.3.0) cmdlet and add the **-RemoveRecoveryPoints** parameter.
8987

@@ -92,7 +90,7 @@ The following example stops protection for the *afsfileshare* file share without
9290
```powershell
9391
$vaultID = Get-AzRecoveryServicesVault -ResourceGroupName "afstesting" -Name "afstest" | select -ExpandProperty ID
9492
$bkpItem = Get-AzRecoveryServicesBackupItem -BackupManagementType AzureStorage -WorkloadType AzureFiles -Name "afsfileshare" -VaultId $vaultID
95-
Disable-AzRecoveryServicesBackupProtection -Item $bkpItem -VaultId $vaultID -RemoveRecoveryPoints
93+
Disable-AzRecoveryServicesBackupProtection -Item $bkpItem -VaultId $vaultID -RemoveRecoveryPoints
9694
```
9795

9896
```output

articles/backup/restore-afs-powershell.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.date: 1/27/2020
77

88
# Restore Azure Files with PowerShell
99

10-
This article describes how to use Azure PowerShell to back up and recover an Azure Files file share using an [Azure Backup](backup-overview.md) Recovery Services vault.
10+
This article explains how to restore an entire file share, or specific files, from a restore point created by the [Azure Backup](backup-overview.md) service using Azure Powershell.
1111

1212
You can restore an entire file share or specific files on the share. You can restore to the original location, or to an alternate location.
1313

0 commit comments

Comments
 (0)