Skip to content

Commit 6adadfa

Browse files
committed
pitr
1 parent 1ed82b1 commit 6adadfa

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

articles/storage/blobs/point-in-time-restore-manage.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,34 +60,35 @@ Before you enable and configure point-in-time restore, enable its prerequisites:
6060
- [Enable and disable the change feed](storage-blob-change-feed.md#enable-and-disable-the-change-feed)
6161
- [Enable and manage blob versioning](versioning-enable.md)
6262
63-
To configure Azure point-in-time restore with PowerShell, call the Enable-AzStorageBlobRestorePolicy command. The following example enables soft delete and sets the soft-delete retention period, enables change feed, and then enables point-in-time restore. Note that the retention period for point-in-time restore must be less than that set for soft delete.
63+
To configure Azure point-in-time restore with PowerShell, call the Enable-AzStorageBlobRestorePolicy command. The following example enables soft delete and sets the soft-delete retention period, enables change feed, and then enables point-in-time restore. Before running the example, use the Azure portal or an Azure Resource Manager template to also enable blob versioning.
6464
6565
When running the example, remember to replace the values in angle brackets with your own values:
6666
6767
```powershell
68-
# Sign in to your Azure account
68+
# Sign in to your Azure account.
6969
Connect-AzAccount
7070
71-
# Set resource group and account variables
71+
# Set resource group and account variables.
7272
$rgName = "<resource-group>"
7373
$accountName = "<storage-account>"
7474
75-
# Enable soft delete with a retention of 6 days
75+
# Enable soft delete with a retention of 6 days.
7676
Enable-AzStorageBlobDeleteRetentionPolicy -ResourceGroupName $rgName `
7777
-StorageAccountName $accountName `
7878
-RetentionDays 6
7979
80-
# Enable change feed
80+
# Enable change feed.
8181
Update-AzStorageBlobServiceProperty -ResourceGroupName $rgName `
8282
-StorageAccountName $accountName `
8383
-EnableChangeFeed $true
8484
85-
# Enable point-in-time restore with a retention period of 5 days
85+
# Enable point-in-time restore with a retention period of 5 days.
86+
# The retention period for point-in-time restore must be at least one day less than that set for soft delete.
8687
Enable-AzStorageBlobRestorePolicy -ResourceGroupName $rgName `
8788
-StorageAccountName $accountName `
8889
-RestoreDays 5
8990
90-
# View the service settings
91+
# View the service settings.
9192
Get-AzStorageBlobServiceProperty -ResourceGroupName $rgName `
9293
-StorageAccountName $accountName
9394
```

articles/storage/blobs/point-in-time-restore-overview.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ Register-AzProviderFeature -FeatureName RestoreBlobRanges -ProviderNamespace Mic
9696
# Register for change feed (preview)
9797
Register-AzProviderFeature -FeatureName Changefeed -ProviderNamespace Microsoft.Storage
9898
99+
# Register for blob versioning (preview)
100+
Register-AzProviderFeature -ProviderNamespace Microsoft.Storage `
101+
-FeatureName Versioning
102+
99103
# Refresh the Azure Storage provider namespace
100104
Register-AzResourceProvider -ProviderNamespace Microsoft.Storage
101105
```
@@ -114,9 +118,9 @@ Get-AzProviderFeature -ProviderNamespace Microsoft.Storage `
114118

115119
## Pricing and billing
116120

117-
Billing for point-in-time restore depends on the quantity of data processed to perform the restore operation. The quantity of data processed is a function of the number of objects in the storage account and the number of changes that occurred between the restore point and the present moment. For example, assuming a relatively constant rate of change to block blob data in a storage account, a restore operation that goes back in time 1 day would cost 1/10th of a restore that goes back in time 10 days.
121+
Billing for point-in-time restore depends on the amount of data processed to perform the restore operation. The amount of data processed is based on the number of changes that occurred between the restore point and the present moment. For example, assuming a relatively constant rate of change to block blob data in a storage account, a restore operation that goes back in time 1 day would cost 1/10th of a restore that goes back in time 10 days.
118122

119-
To estimate the cost of a restore operation, review the change feed log to estimate the quantity of data modified during the restore period. For example, if the retention period for change feed is 30 days, and the size of the change feed is 10 MB, then restoring to a point 10 days earlier for a locally redundant (LRS) storage account would cost approximately one-third of the price listed for an LRS account in that region. Restoring to a point that is 27 days earlier would cost approximately nine-tenths of the price listed.
123+
To estimate the cost of a restore operation, review the change feed log to estimate the amount of data that was modified during the restore period. For example, if the retention period for change feed is 30 days, and the size of the change feed is 10 MB, then restoring to a point 10 days earlier would cost approximately one-third of the price listed for an LRS account in that region. Restoring to a point that is 27 days earlier would cost approximately nine-tenths of the price listed.
120124

121125
For more information about pricing for point-in-time restore, see [Block blob pricing](https://azure.microsoft.com/pricing/details/storage/blobs/).
122126

articles/storage/blobs/versioning-overview.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,10 @@ To enroll in the blob versioning preview, use PowerShell or Azure CLI to submit
221221
To register with PowerShell, call the [Get-AzProviderFeature](/powershell/module/az.resources/get-azproviderfeature) command.
222222

223223
```powershell
224+
# Register for blob versioning (preview)
224225
Register-AzProviderFeature -ProviderNamespace Microsoft.Storage `
225226
-FeatureName Versioning
226-
227+
227228
# Refresh the Azure Storage provider namespace
228229
Register-AzResourceProvider -ProviderNamespace Microsoft.Storage
229230
```

0 commit comments

Comments
 (0)