Skip to content

Commit 9c17b81

Browse files
Merge pull request #235745 from khdownie/kendownie042523
removing delete snapshots
2 parents d1506bc + e1ea88d commit 9c17b81

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

articles/storage/files/storage-snapshots-files.md

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ description: A share snapshot is a read-only version of an Azure file share that
44
author: khdownie
55
ms.service: storage
66
ms.topic: conceptual
7-
ms.date: 12/06/2022
7+
ms.date: 04/25/2023
88
ms.author: kendownie
99
ms.subservice: files
1010
---
1111

1212
# Overview of share snapshots for Azure Files
13-
Azure Files provides the capability to take share snapshots of SMB file shares. Share snapshots capture the share state at that point in time. This article describes the capabilities that file share snapshots provide and how you can take advantage of them in your custom use case.
13+
Azure Files provides the capability to take snapshots of file shares. Share snapshots capture the share state at that point in time. This article describes the capabilities that file share snapshots provide and how you can take advantage of them in your custom use case.
1414

1515
## Applies to
1616
| File share type | SMB | NFS |
@@ -69,7 +69,7 @@ Snapshots don't count towards the maximum share size limit, which is 100 TiB for
6969

7070
The maximum number of share snapshots that Azure Files allows today is 200 per share. After 200 share snapshots, you have to delete older share snapshots in order to create new ones.
7171

72-
There is no limit to the simultaneous calls for creating share snapshots. There is no limit to amount of space that share snapshots of a particular file share can consume.
72+
There's no limit to the simultaneous calls for creating share snapshots. There's no limit to amount of space that share snapshots of a particular file share can consume.
7373

7474
Taking snapshots of NFS Azure file shares isn't currently supported.
7575

@@ -93,23 +93,7 @@ Before you deploy the share snapshot scheduler, carefully consider your share sn
9393

9494
Share snapshots provide only file-level protection. Share snapshots don't prevent fat-finger deletions on a file share or storage account. To help protect a storage account from accidental deletions, you can either [enable soft delete](storage-files-prevent-file-share-deletion.md), or lock the storage account and/or the resource group.
9595

96-
## Delete multiple snapshots
97-
98-
Use the following PowerShell script to delete multiple file share snapshots. Be sure to replace **storageaccount_name**, **resource-GROUP**, and **sharename** with your own values.
99-
100-
```powerShell
101-
$storageAccount = "storageaccount_name" 
102-
$RG = "resource-GROUP" $sharename = "sharename"
103-
$sa = get-azstorageaccount -Name $storageAccount -ResourceGroupName $RG $items = "","","" 
104-
ForEach ($item in $items)
105-
{
106-
    $snapshotTime = "$item"
107-
    $snap = Get-AzStorageShare -Name $sharename -SnapshotTime "$snapshotTime" -Context $sa.Context
108-
    $lease = [Azure.Storage.Files.Shares.Specialized.ShareLeaseClient]::new($snap.ShareClient)
109-
    $l
110-
}
111-
```
112-
## Next steps
96+
## See also
11397
- Working with share snapshots in:
11498
- [Azure file share backup](../../backup/azure-file-share-backup-overview.md)
11599
- [Azure PowerShell](/powershell/module/az.storage/new-azrmstorageshare)

0 commit comments

Comments
 (0)